init
This commit is contained in:
44
src/api/cai/anchor.js
Normal file
44
src/api/cai/anchor.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询女神列表列表
|
||||
export function listAnchor(query) {
|
||||
return request({
|
||||
url: '/cai/anchor/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询女神列表详细
|
||||
export function getAnchor(id) {
|
||||
return request({
|
||||
url: '/cai/anchor/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增女神列表
|
||||
export function addAnchor(data) {
|
||||
return request({
|
||||
url: '/cai/anchor',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改女神列表
|
||||
export function updateAnchor(data) {
|
||||
return request({
|
||||
url: '/cai/anchor',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除女神列表
|
||||
export function delAnchor(id) {
|
||||
return request({
|
||||
url: '/cai/anchor/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user