This commit is contained in:
张良(004796)
2024-03-28 17:41:21 +08:00
parent a47a4849eb
commit 254d02c762
8 changed files with 627 additions and 2 deletions

53
src/api/cai/anchorTop.js Normal file
View File

@@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询主播限时置顶列表
export function listAnchorTop(query) {
return request({
url: '/cai/anchorTop/list',
method: 'get',
params: query
})
}
// 查询主播限时置顶详细
export function getAnchorTop(id) {
return request({
url: '/cai/anchorTop/' + id,
method: 'get'
})
}
export function getAnchorTopByUserCode(usercode) {
return request({
url: '/cai/anchorTop/getAnchorTopByUserCode',
method: 'get',
params: {'usercode': usercode}
})
}
// 新增主播限时置顶
export function addAnchorTop(data) {
return request({
url: '/cai/anchorTop',
method: 'post',
data: data
})
}
// 修改主播限时置顶
export function updateAnchorTop(data) {
return request({
url: '/cai/anchorTop',
method: 'put',
data: data
})
}
// 删除主播限时置顶
export function delAnchorTop(id) {
return request({
url: '/cai/anchorTop/' + id,
method: 'delete'
})
}