45 lines
783 B
JavaScript
45 lines
783 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询签到任务列表
|
||
|
export function listCheckTask(query) {
|
||
|
return request({
|
||
|
url: '/checktask/task/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询签到任务详细
|
||
|
export function getCheckTask(id) {
|
||
|
return request({
|
||
|
url: '/checktask/task/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增签到任务
|
||
|
export function addCheckTask(data) {
|
||
|
return request({
|
||
|
url: '/checktask/task',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改签到任务
|
||
|
export function updateCheckTask(data) {
|
||
|
return request({
|
||
|
url: '/checktask/task',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除签到任务
|
||
|
export function delCheckTask(id) {
|
||
|
return request({
|
||
|
url: '/checktask/task/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|