feat:增加编辑直播 编辑外链

This commit is contained in:
songwc
2022-11-02 18:23:24 +08:00
parent cbad8c7124
commit a7ca14143f
3 changed files with 109 additions and 16 deletions

View File

@@ -1,19 +1,39 @@
import http from "./config";
//创建外链接口
export const createExternalChain = (obj) => http.post('/link/createLinks', obj)
export const createExternalChain = (obj) => http.post('/link/createLinks', obj, {
headers: {
'token': '123'
}
})
//外链信息删除接口
export const deleteLink = (obj) => http.post('/link/deleteLink', { params: obj })
export const deleteLink = (obj) => http.post('/link/deleteLink', { params: obj }, {
headers: {
'token': '123'
}
})
//获取外链详细信息接口
export const getLink = (obj) => http.post('/link/getOne', { params: obj })
// 更新外链数据
export const updateLinks = (obj) => http.post('/link/updateLinks', obj)
export const updateLinks = (obj) => http.post('/link/updateLinks', obj, {
headers: {
'token': '123'
}
})
//修改为必修的接口
export const updateToCompulsory = (obj) => http.post('/link/updateToCompulsory', { params: obj })
export const updateToCompulsory = (obj) => http.post('/link/updateToCompulsory', { params: obj }, {
headers: {
'token': '123'
}
})
//修改为选修的接口
export const updateToElective = (obj) => http.post('/link/updateToElective', { params: obj })
export const updateToElective = (obj) => http.post('/link/updateToElective', { params: obj }, {
headers: {
'token': '123'
}
})