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.
30 lines
637 B
30 lines
637 B
![]()
3 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
// 创建
|
||
|
export const createComment = (data) => {
|
||
|
return request.post({
|
||
|
url: '/admin-api/okr/comments/create',
|
||
|
data,
|
||
|
isSubmitForm: true,
|
||
|
headers: { 'instance-id': 1016 }
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 分页
|
||
|
export const getCommentPage = (params) => {
|
||
|
return request.get({
|
||
|
url: '/admin-api/okr/comments/page',
|
||
|
params,
|
||
|
headers: { 'instance-id': 1016 }
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获取评论类型
|
||
|
export const getCommentTypeOptions = () => {
|
||
|
return request.get({
|
||
|
url: '/admin-api/okr/dict-data/get-by-type',
|
||
|
params: { dictType: 'comment_type' }
|
||
|
// headers: { 'instance-id': 1016 }
|
||
|
})
|
||
|
}
|