@@ -49,70 +49,70 @@ const postApplication: (
4949
5050 */
5151const putApplication : (
52- applicaiton_id : String ,
52+ application_id : String ,
5353 data : ApplicationFormType ,
5454 loading ?: Ref < boolean >
55- ) => Promise < Result < any > > = ( applicaiton_id , data , loading ) => {
56- return put ( `${ prefix } /${ applicaiton_id } ` , data , undefined , loading )
55+ ) => Promise < Result < any > > = ( application_id , data , loading ) => {
56+ return put ( `${ prefix } /${ application_id } ` , data , undefined , loading )
5757}
5858
5959/**
6060 * 删除应用
61- * @param 参数 applicaiton_id
61+ * @param 参数 application_id
6262 */
6363const delApplication : (
64- applicaiton_id : String ,
64+ application_id : String ,
6565 loading ?: Ref < boolean >
66- ) => Promise < Result < boolean > > = ( applicaiton_id , loading ) => {
67- return del ( `${ prefix } /${ applicaiton_id } ` , undefined , { } , loading )
66+ ) => Promise < Result < boolean > > = ( application_id , loading ) => {
67+ return del ( `${ prefix } /${ application_id } ` , undefined , { } , loading )
6868}
6969
7070/**
7171 * 应用详情
72- * @param 参数 applicaiton_id
72+ * @param 参数 application_id
7373 */
7474const getApplicationDetail : (
75- applicaiton_id : string ,
75+ application_id : string ,
7676 loading ?: Ref < boolean >
77- ) => Promise < Result < any > > = ( applicaiton_id , loading ) => {
78- return get ( `${ prefix } /${ applicaiton_id } ` , undefined , loading )
77+ ) => Promise < Result < any > > = ( application_id , loading ) => {
78+ return get ( `${ prefix } /${ application_id } ` , undefined , loading )
7979}
8080
8181/**
8282 * 获得当前应用可使用的知识库
83- * @param 参数 applicaiton_id
83+ * @param 参数 application_id
8484 */
8585const getApplicationDataset : (
86- applicaiton_id : string ,
86+ application_id : string ,
8787 loading ?: Ref < boolean >
88- ) => Promise < Result < any > > = ( applicaiton_id , loading ) => {
89- return get ( `${ prefix } /${ applicaiton_id } /list_dataset` , undefined , loading )
88+ ) => Promise < Result < any > > = ( application_id , loading ) => {
89+ return get ( `${ prefix } /${ application_id } /list_dataset` , undefined , loading )
9090}
9191
9292/**
9393 * 获取AccessToken
94- * @param 参数 applicaiton_id
94+ * @param 参数 application_id
9595 */
96- const getAccessToken : ( applicaiton_id : string , loading ?: Ref < boolean > ) => Promise < Result < any > > = (
97- applicaiton_id ,
96+ const getAccessToken : ( application_id : string , loading ?: Ref < boolean > ) => Promise < Result < any > > = (
97+ application_id ,
9898 loading
9999) => {
100- return get ( `${ prefix } /${ applicaiton_id } /access_token` , undefined , loading )
100+ return get ( `${ prefix } /${ application_id } /access_token` , undefined , loading )
101101}
102102
103103/**
104104 * 修改AccessToken
105- * @param 参数 applicaiton_id
105+ * @param 参数 application_id
106106 * data {
107107 * "is_active": true
108108 * }
109109 */
110110const putAccessToken : (
111- applicaiton_id : string ,
111+ application_id : string ,
112112 data : any ,
113113 loading ?: Ref < boolean >
114- ) => Promise < Result < any > > = ( applicaiton_id , data , loading ) => {
115- return put ( `${ prefix } /${ applicaiton_id } /access_token` , data , undefined , loading )
114+ ) => Promise < Result < any > > = ( application_id , data , loading ) => {
115+ return put ( `${ prefix } /${ application_id } /access_token` , data , undefined , loading )
116116}
117117
118118/**
@@ -161,8 +161,8 @@ const postChatOpen: (data: ApplicationFormType) => Promise<Result<any>> = (data)
161161 ]
162162}
163163 */
164- const getChatOpen : ( applicaiton_id : String ) => Promise < Result < any > > = ( applicaiton_id ) => {
165- return get ( `${ prefix } /${ applicaiton_id } /chat/open` )
164+ const getChatOpen : ( application_id : String ) => Promise < Result < any > > = ( application_id ) => {
165+ return get ( `${ prefix } /${ application_id } /chat/open` )
166166}
167167/**
168168 * 对话
0 commit comments