15 lines
530 B
TypeScript
15 lines
530 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 getResourceManagePlayUrl = (id: string) => {
|
||
|
|
return http.get<ResourceManage.PlayVO>(`/resourceManage/play?id=${id}`)
|
||
|
|
}
|