@@ -6,7 +6,7 @@ import { type Ref } from 'vue'
66const prefix = '/application'
77/**
88 * 对话日志
9- * @param 参数
9+ * @param 参数
1010 * application_id, history_day
1111 * page {
1212 "current_page": "string",
@@ -18,37 +18,37 @@ const prefix = '/application'
1818 }
1919 */
2020const getChatLog : (
21- applicaiton_id : String ,
21+ application_id : String ,
2222 page : pageRequest ,
2323 param : any ,
2424 loading ?: Ref < boolean >
25- ) => Promise < Result < any > > = ( applicaiton_id , page , param , loading ) => {
25+ ) => Promise < Result < any > > = ( application_id , page , param , loading ) => {
2626 return get (
27- `${ prefix } /${ applicaiton_id } /chat/${ page . current_page } /${ page . page_size } ` ,
27+ `${ prefix } /${ application_id } /chat/${ page . current_page } /${ page . page_size } ` ,
2828 param ,
2929 loading
3030 )
3131}
3232
3333const exportChatLog : (
34- applicaiton_id : string ,
35- applicantion_name : string ,
34+ application_id : string ,
35+ application_name : string ,
3636 param : any ,
3737 loading ?: Ref < boolean >
38- ) => void = ( applicaiton_id , applicantion_name , param , loading ) => {
39- exportExcel ( applicantion_name , `${ prefix } /${ applicaiton_id } /chat/export` , param , loading )
38+ ) => void = ( application_id , application_name , param , loading ) => {
39+ exportExcel ( application_name , `${ prefix } /${ application_id } /chat/export` , param , loading )
4040}
4141
4242/**
4343 * 删除日志
44- * @param 参数 applicaiton_id , chat_id,
44+ * @param 参数 application_id , chat_id,
4545 */
4646const delChatLog : (
47- applicaiton_id : string ,
47+ application_id : string ,
4848 chat_id : string ,
4949 loading ?: Ref < boolean >
50- ) => Promise < Result < boolean > > = ( applicaiton_id , chat_id , loading ) => {
51- return del ( `${ prefix } /${ applicaiton_id } /chat/${ chat_id } ` , undefined , { } , loading )
50+ ) => Promise < Result < boolean > > = ( application_id , chat_id , loading ) => {
51+ return del ( `${ prefix } /${ application_id } /chat/${ chat_id } ` , undefined , { } , loading )
5252}
5353
5454/**
@@ -61,13 +61,13 @@ const delChatLog: (
6161 }
6262 */
6363const getChatRecordLog : (
64- applicaiton_id : String ,
64+ application_id : String ,
6565 chart_id : String ,
6666 page : pageRequest ,
6767 loading ?: Ref < boolean >
68- ) => Promise < Result < any > > = ( applicaiton_id , chart_id , page , loading ) => {
68+ ) => Promise < Result < any > > = ( application_id , chart_id , page , loading ) => {
6969 return get (
70- `${ prefix } /${ applicaiton_id } /chat/${ chart_id } /chat_record/${ page . current_page } /${ page . page_size } ` ,
70+ `${ prefix } /${ application_id } /chat/${ chart_id } /chat_record/${ page . current_page } /${ page . page_size } ` ,
7171 undefined ,
7272 loading
7373 )
@@ -83,15 +83,15 @@ const getChatRecordLog: (
8383 }
8484 */
8585const putChatRecordLog : (
86- applicaiton_id : String ,
86+ application_id : String ,
8787 chart_id : String ,
8888 chart_record_id : String ,
8989 dataset_id : String ,
9090 document_id : String ,
9191 data : any ,
9292 loading ?: Ref < boolean >
9393) => Promise < Result < any > > = (
94- applicaiton_id ,
94+ application_id ,
9595 chart_id ,
9696 chart_record_id ,
9797 dataset_id ,
@@ -100,7 +100,7 @@ const putChatRecordLog: (
100100 loading
101101) => {
102102 return put (
103- `${ prefix } /${ applicaiton_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /dataset/${ dataset_id } /document_id/${ document_id } /improve` ,
103+ `${ prefix } /${ application_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /dataset/${ dataset_id } /document_id/${ document_id } /improve` ,
104104 data ,
105105 undefined ,
106106 loading
@@ -113,13 +113,13 @@ const putChatRecordLog: (
113113 * application_id, chart_id, chart_record_id
114114 */
115115const getMarkRecord : (
116- applicaiton_id : String ,
116+ application_id : String ,
117117 chart_id : String ,
118118 chart_record_id : String ,
119119 loading ?: Ref < boolean >
120- ) => Promise < Result < any > > = ( applicaiton_id , chart_id , chart_record_id , loading ) => {
120+ ) => Promise < Result < any > > = ( application_id , chart_id , chart_record_id , loading ) => {
121121 return get (
122- `${ prefix } /${ applicaiton_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /improve` ,
122+ `${ prefix } /${ application_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /improve` ,
123123 undefined ,
124124 loading
125125 )
@@ -131,15 +131,15 @@ const getMarkRecord: (
131131 * application_id, chart_id, chart_record_id, dataset_id, document_id,paragraph_id
132132 */
133133const delMarkRecord : (
134- applicaiton_id : String ,
134+ application_id : String ,
135135 chart_id : String ,
136136 chart_record_id : String ,
137137 dataset_id : String ,
138138 document_id : String ,
139139 paragraph_id : String ,
140140 loading ?: Ref < boolean >
141141) => Promise < Result < any > > = (
142- applicaiton_id ,
142+ application_id ,
143143 chart_id ,
144144 chart_record_id ,
145145 dataset_id ,
@@ -148,7 +148,7 @@ const delMarkRecord: (
148148 loading
149149) => {
150150 return del (
151- `${ prefix } /${ applicaiton_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /dataset/${ dataset_id } /document_id/${ document_id } /improve/${ paragraph_id } ` ,
151+ `${ prefix } /${ application_id } /chat/${ chart_id } /chat_record/${ chart_record_id } /dataset/${ dataset_id } /document_id/${ document_id } /improve/${ paragraph_id } ` ,
152152 undefined ,
153153 { } ,
154154 loading
@@ -161,13 +161,13 @@ const delMarkRecord: (
161161 * application_id, chart_id, chart_record_id
162162 */
163163const getRecordDetail : (
164- applicaiton_id : String ,
164+ application_id : String ,
165165 chart_id : String ,
166166 chart_record_id : String ,
167167 loading ?: Ref < boolean >
168- ) => Promise < Result < any > > = ( applicaiton_id , chart_id , chart_record_id , loading ) => {
168+ ) => Promise < Result < any > > = ( application_id , chart_id , chart_record_id , loading ) => {
169169 return get (
170- `${ prefix } /${ applicaiton_id } /chat/${ chart_id } /chat_record/${ chart_record_id } ` ,
170+ `${ prefix } /${ application_id } /chat/${ chart_id } /chat_record/${ chart_record_id } ` ,
171171 undefined ,
172172 loading
173173 )
0 commit comments