19 lines
678 B
TypeScript
19 lines
678 B
TypeScript
import http from '@/api'
|
|
import type { ResourceManage } from '@/api/resourceManage/interface'
|
|
|
|
export const getResourceManageList = (params: ResourceManage.ReqResourceManageParams) => {
|
|
return http.post<ResourceManage.ResResourceManagePage>('/resourceManage/list', params)
|
|
}
|
|
|
|
export const addResourceManage = (params: FormData) => {
|
|
return http.upload('/resourceManage/add', params)
|
|
}
|
|
|
|
export const updateResourceManage = (params: ResourceManage.ReqUpdateResourceManage) => {
|
|
return http.post('/resourceManage/update', params)
|
|
}
|
|
|
|
export const getResourceManagePlayUrl = (id: string) => {
|
|
return http.get<ResourceManage.PlayVO>(`/resourceManage/play?id=${id}`)
|
|
}
|