我的申请,我的收藏,浏览记录联调

This commit is contained in:
zxy
2024-02-21 17:18:40 +08:00
parent 06b6fe4140
commit 8314a2232e
11 changed files with 657 additions and 18 deletions

View File

@@ -109,6 +109,32 @@ export const myMission = (current, size, status) => {
})
}
/*我的收藏*/
export const myCollection = (current, size, status) => {
return request({
url: '/api/jobslink-api/works/jkworkscollect/getCollectListByUserId',
method: 'get',
params: {
current,
size,
status
}
})
}
/*浏览记录*/
export const myBrowing = (current, size, status) => {
return request({
url: '/api/jobslink-api/user/useraction/getListByUserId',
method: 'get',
params: {
current,
size,
status
}
})
}
/*任务详情*/
export const missionDetail = (missionNo) => {
return request({
@@ -133,24 +159,26 @@ export const workDetail = (workId) => {
}
/*获取收藏状态*/
export const getCollectState = (workId) => {
export const getCollectState = (workId, type) => {
return request({
url: '/api/jobslink-api/works/jkworkscollect/getCollectStatus',
method: 'get',
params: {
workId
workId,
type
}
})
}
/*收藏和取消收藏接口*/
export const updateCollectStatus = (workId, status) => {
export const updateCollectStatus = (workId, status, type) => {
return request({
url: '/api/jobslink-api/works/jkworkscollect/updateCollectStatus',
method: 'get',
params: {
workId,
status
status,
type
}
})
}