gree_leran/apis/videos.js

23 lines
390 B
JavaScript
Raw Normal View History

2024-06-20 15:36:19 +00:00
import {http} from "../utils/http.js"
export const getVideosList= () => {
return http({
url:"/api/videos/list",
method:"GET"
})
}
export const getVideosInfo= (id) => {
return http({
url:"/api/videos/"+id,
method:"GET"
})
}
/**
* datatitlevideoUrldescription
*/
export const saveVideosInfo=(data)=>{
return http({
url:'/api/videos',
method:'POST',
data,
})
}