1- import { Result } from '@/request/Result'
1+ import { Result } from '@/request/Result'
22import {
33 get ,
44 post ,
@@ -10,14 +10,15 @@ import {
1010 download ,
1111 exportFile ,
1212} from '@/request/index'
13- import type { pageRequest } from '@/api/type/common'
14- import type { ApplicationFormType } from '@/api/type/application'
15- import { type Ref } from 'vue'
13+ import type { pageRequest } from '@/api/type/common'
14+ import type { ApplicationFormType } from '@/api/type/application'
15+ import { type Ref } from 'vue'
1616import useStore from '@/stores'
17- const prefix : any = { _value : '/workspace/' }
17+
18+ const prefix : any = { _value : '/workspace/' }
1819Object . defineProperty ( prefix , 'value' , {
1920 get : function ( ) {
20- const { user } = useStore ( )
21+ const { user} = useStore ( )
2122 return this . _value + user . getWorkspaceId ( ) + '/application'
2223 } ,
2324} )
@@ -42,9 +43,9 @@ const postChatLogAddKnowledge: (
4243 * @param 参数
4344 * application_id
4445 * param {
45- "start_time": "string",
46- "end_time": "string",
47- }
46+ "start_time": "string",
47+ "end_time": "string",
48+ }
4849 */
4950const getChatLog : (
5051 application_id : String ,
@@ -73,33 +74,29 @@ const getChatRecordLog: (
7374) => Promise < Result < any > > = ( application_id , chart_id , page , loading , order_asc ) => {
7475 return get (
7576 `${ prefix . value } /${ application_id } /chat/${ chart_id } /chat_record/${ page . current_page } /${ page . page_size } ` ,
76- { order_asc : order_asc !== undefined ? order_asc : true } ,
77+ { order_asc : order_asc !== undefined ? order_asc : true } ,
7778 loading ,
7879 )
7980}
8081
8182/**
8283 * 获取标注段落列表信息
8384 * @param 参数
84- * application_id, chart_id, chart_record_id, knowledge_id, document_id
85+ * application_id, chart_id, chart_record_id
8586 */
8687const getMarkChatRecord : (
87- application_id : String ,
88- chart_id : String ,
89- chart_record_id : String ,
90- knowledge_id : String ,
91- document_id : String ,
88+ application_id : string ,
89+ chart_id : string ,
90+ chart_record_id : string ,
9291 loading ?: Ref < boolean > ,
9392) => Promise < Result < any > > = (
9493 application_id ,
9594 chart_id ,
9695 chart_record_id ,
97- knowledge_id ,
98- document_id ,
9996 loading ,
10097) => {
10198 return get (
102- `${ prefix . value } /${ application_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /knowledge/ ${ knowledge_id } /document/ ${ document_id } / improve` ,
99+ `${ prefix . value } /${ application_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /improve` ,
103100 undefined ,
104101 loading ,
105102 )
@@ -110,10 +107,10 @@ const getMarkChatRecord: (
110107 * @param 参数
111108 * application_id, chart_id, chart_record_id, knowledge_id, document_id
112109 * data {
113- "title": "string",
114- "content": "string",
115- "problem_text": "string"
116- }
110+ "title": "string",
111+ "content": "string",
112+ "problem_text": "string"
113+ }
117114 */
118115const putChatRecordLog : (
119116 application_id : String ,
@@ -175,9 +172,9 @@ const delMarkChatRecord: (
175172 * @param 参数
176173 * application_id
177174 * param {
178- "start_time": "string",
179- "end_time": "string",
180- }
175+ "start_time": "string",
176+ "end_time": "string",
177+ }
181178 */
182179const postExportChatLog : (
183180 application_id : string ,
0 commit comments