admin-vue3/src/api/submit/common/common.ts

28 lines
569 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import request from '@/config/axios'
/**
* 项目通用API详情和评论
*/
// 查询上报详情
export const getMyReportDetail = (id: string) => {
return request.get({
url: `/submit/myReporting/get`,
params: { id }
})
}
// 保存评论
export const saveComment = (reportingId: string, commentVO: any) => {
return request.post({
url: `/submit/comment/${reportingId}`,
data: commentVO
})
}
// 删除评论
export const deleteComment = (commentId: string) => {
return request.delete({
url: `/submit/comment/${commentId}`
})
}