import { requestClient } from '#/api/request';
enum Api {
  basecomment = '/commComments/comments',
  querycomment = '/commComments/comments/list',
}
//获取评论列表
export function querycomment({ targetId, targetType }: any) {
  return requestClient.get(`${Api.querycomment}?targetId=${targetId}&targetType=${targetType}`, {
    isTransformResponse: false,
  });
}
//新增评论
export function addComment(data: any) {
  return requestClient.post(Api.basecomment, data, {
    successMessageMode: 'message',
  });
}
// //修改知识库分类
// export function editKnowledgeCategory(data: any) {
//   return requestClient.put(Api.baseknowledgeCategory, data, {
//     successMessageMode: 'message',
//   });
// }
// //删除知识库分类
// export function deleteKnowledgeCategory(roleId: any) {
//   return requestClient.delete(`${Api.baseknowledgeCategory}/${roleId}`, {
//     successMessageMode: 'message',
//   });
// }
