You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.0 KiB
59 lines
1.0 KiB
10 months ago
|
import request from "../request";
|
||
|
|
||
|
// 查询我的工具列表
|
||
|
export function jobList(id, params) {
|
||
|
return request({
|
||
|
url: '/job/myIssueJob/' + id,
|
||
|
method: 'get',
|
||
|
params
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 发布
|
||
|
export function fbStatus(id) {
|
||
|
return request({
|
||
|
url: '/job/issue/' + id,
|
||
|
method: 'post',
|
||
|
})
|
||
|
}
|
||
|
// 取消发布
|
||
|
export function qxfbStatus(id) {
|
||
|
return request({
|
||
|
url: '/job/cancelIssue/' + id,
|
||
|
method: 'post',
|
||
|
})
|
||
|
}
|
||
|
// 新增
|
||
|
export function addJob(data) {
|
||
|
return request({
|
||
|
url: '/job/addJob',
|
||
|
method: 'post',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
// 修改
|
||
|
export function editJob(data) {
|
||
|
return request({
|
||
|
url: '/job/editJob',
|
||
|
method: 'post',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
// 删除
|
||
|
export function deleteJob(id) {
|
||
|
return request({
|
||
|
url: '/job/' + id,
|
||
|
method: 'delete',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查看详情
|
||
|
export function jobDetailById(id) {
|
||
|
return request({
|
||
|
url: '/job/detail/' + id,
|
||
|
method: 'get',
|
||
|
headers: {
|
||
|
isToken: false
|
||
|
}
|
||
|
})
|
||
|
}
|