23 lines
381 B
JavaScript
23 lines
381 B
JavaScript
import {http} from "../utils/http.js"
|
||
export const getCaseList= () => {
|
||
return http({
|
||
url:"/api/case/list",
|
||
method:"GET"
|
||
})
|
||
}
|
||
export const getCastInfo=(id)=>{
|
||
return http({
|
||
url:"/api/case/"+id,
|
||
method:"GET"
|
||
})
|
||
}
|
||
/**
|
||
* data:title,description,content,imgeurl
|
||
*/
|
||
export const saveCaseInfo=(data)=>{
|
||
return http({
|
||
url:"/api/case",
|
||
data,
|
||
method:"POST"
|
||
})
|
||
} |