|
@@ -1,15 +1,20 @@
|
|
|
import { service } from '@/utils/request'
|
|
|
-import { AddQuestionReportDataReq, PageQuestionReportDataReq, QuestionDetailRes, QuestionListRes } from './types'
|
|
|
+import { AddQuestionReportDataReq, PageQuestionReportDataReq, QuestionDetailRes, QuestionListRes, QuestionType, QuestionTypeListRes } from './types'
|
|
|
import { ApiResponse, PageReq, PageResp } from '../types'
|
|
|
export enum questionApi {
|
|
|
/** 新增上报问题 */
|
|
|
- ADD_QUESTION_REPORT_DATA = '/questionReport/addQuestionReportData',
|
|
|
+ ADD_QUESTION_REPORT_DATA = '/ystlbusinessservice/questionReport/addQuestionReportData',
|
|
|
/** 上报问题列表 */
|
|
|
- QUESTION_REPORT_LIST = '/questionReport/pageQuestionReportData',
|
|
|
+ QUESTION_REPORT_LIST = '/ystlbusinessservice/questionReport/pageQuestionReportData',
|
|
|
/** 上报问题详情
|
|
|
* /questionReport/detailsQuestionReportData/{uuid}
|
|
|
*/
|
|
|
- QUESTION_REPORT_DETAIL = '/questionReport/detailsQuestionReportData',
|
|
|
+ QUESTION_REPORT_DETAIL = '/ystlbusinessservice/questionReport/detailsQuestionReportData',
|
|
|
+ /**
|
|
|
+ * 类型查询列表
|
|
|
+ * 1知识库 2投诉 3建议 4问题 5服务
|
|
|
+ */
|
|
|
+ QUESTION_TYPE_LIST = '/ystlbusinessservice/bTKnowledgeTypes/getPage',
|
|
|
}
|
|
|
|
|
|
/** 新增上报问题 */
|
|
@@ -26,4 +31,8 @@ export const pageQuestionReportData = (params: PageQuestionReportDataReq) => {
|
|
|
/** 上报问题详情 */
|
|
|
export const getQuestionReportDetail = (id: string) => {
|
|
|
return service.get<ApiResponse<QuestionDetailRes>>(questionApi.QUESTION_REPORT_DETAIL + '/' + id)
|
|
|
+}
|
|
|
+
|
|
|
+export const getQuestionTypeList = (params: {page:number,limit:number,category:QuestionType}) => {
|
|
|
+ return service.get<ApiResponse<PageResp<QuestionTypeListRes>>>(questionApi.QUESTION_TYPE_LIST,{params})
|
|
|
}
|