|
| 1 | +/* eslint-disable */ |
| 2 | +/* tslint:disable */ |
| 3 | +// @ts-nocheck |
| 4 | +/* |
| 5 | + * --------------------------------------------------------------- |
| 6 | + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## |
| 7 | + * ## ## |
| 8 | + * ## AUTHOR: acacode ## |
| 9 | + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## |
| 10 | + * --------------------------------------------------------------- |
| 11 | + */ |
| 12 | + |
| 13 | +import request, { ContentType, RequestParams } from "./httpClient"; |
| 14 | +import { |
| 15 | + DomainChatInfo, |
| 16 | + DomainCompletionInfo, |
| 17 | + DomainListChatRecordResp, |
| 18 | + DomainListCompletionRecordResp, |
| 19 | + GetUserChatInfoParams, |
| 20 | + GetUserCompletionInfoParams, |
| 21 | + GetUserListChatRecordParams, |
| 22 | + GetUserListCompletionRecordParams, |
| 23 | + WebResp, |
| 24 | +} from "./types"; |
| 25 | + |
| 26 | +/** |
| 27 | + * @description 获取对话内容 |
| 28 | + * |
| 29 | + * @tags User Record |
| 30 | + * @name GetUserChatInfo |
| 31 | + * @summary 获取对话内容 |
| 32 | + * @request GET:/api/v1/user/chat/info |
| 33 | + * @response `200` `(WebResp & { |
| 34 | + data?: DomainChatInfo, |
| 35 | +
|
| 36 | +})` OK |
| 37 | + * @response `401` `string` Unauthorized |
| 38 | + */ |
| 39 | + |
| 40 | +export const getUserChatInfo = ( |
| 41 | + query: GetUserChatInfoParams, |
| 42 | + params: RequestParams = {}, |
| 43 | +) => |
| 44 | + request< |
| 45 | + WebResp & { |
| 46 | + data?: DomainChatInfo; |
| 47 | + } |
| 48 | + >({ |
| 49 | + path: `/api/v1/user/chat/info`, |
| 50 | + method: "GET", |
| 51 | + query: query, |
| 52 | + type: ContentType.Json, |
| 53 | + format: "json", |
| 54 | + ...params, |
| 55 | + }); |
| 56 | + |
| 57 | +/** |
| 58 | + * @description 获取用户对话记录 |
| 59 | + * |
| 60 | + * @tags User Record |
| 61 | + * @name GetUserListChatRecord |
| 62 | + * @summary 获取用户对话记录 |
| 63 | + * @request GET:/api/v1/user/chat/record |
| 64 | + * @response `200` `(WebResp & { |
| 65 | + data?: DomainListChatRecordResp, |
| 66 | +
|
| 67 | +})` OK |
| 68 | + * @response `401` `string` Unauthorized |
| 69 | + */ |
| 70 | + |
| 71 | +export const getUserListChatRecord = ( |
| 72 | + query: GetUserListChatRecordParams, |
| 73 | + params: RequestParams = {}, |
| 74 | +) => |
| 75 | + request< |
| 76 | + WebResp & { |
| 77 | + data?: DomainListChatRecordResp; |
| 78 | + } |
| 79 | + >({ |
| 80 | + path: `/api/v1/user/chat/record`, |
| 81 | + method: "GET", |
| 82 | + query: query, |
| 83 | + type: ContentType.Json, |
| 84 | + format: "json", |
| 85 | + ...params, |
| 86 | + }); |
| 87 | + |
| 88 | +/** |
| 89 | + * @description 获取补全内容 |
| 90 | + * |
| 91 | + * @tags User Record |
| 92 | + * @name GetUserCompletionInfo |
| 93 | + * @summary 获取补全内容 |
| 94 | + * @request GET:/api/v1/user/completion/info |
| 95 | + * @response `200` `(WebResp & { |
| 96 | + data?: DomainCompletionInfo, |
| 97 | +
|
| 98 | +})` OK |
| 99 | + * @response `401` `string` Unauthorized |
| 100 | + */ |
| 101 | + |
| 102 | +export const getUserCompletionInfo = ( |
| 103 | + query: GetUserCompletionInfoParams, |
| 104 | + params: RequestParams = {}, |
| 105 | +) => |
| 106 | + request< |
| 107 | + WebResp & { |
| 108 | + data?: DomainCompletionInfo; |
| 109 | + } |
| 110 | + >({ |
| 111 | + path: `/api/v1/user/completion/info`, |
| 112 | + method: "GET", |
| 113 | + query: query, |
| 114 | + type: ContentType.Json, |
| 115 | + format: "json", |
| 116 | + ...params, |
| 117 | + }); |
| 118 | + |
| 119 | +/** |
| 120 | + * @description 获取补全记录 |
| 121 | + * |
| 122 | + * @tags User Record |
| 123 | + * @name GetUserListCompletionRecord |
| 124 | + * @summary 获取补全记录 |
| 125 | + * @request GET:/api/v1/user/completion/record |
| 126 | + * @response `200` `(WebResp & { |
| 127 | + data?: DomainListCompletionRecordResp, |
| 128 | +
|
| 129 | +})` OK |
| 130 | + * @response `401` `string` Unauthorized |
| 131 | + */ |
| 132 | + |
| 133 | +export const getUserListCompletionRecord = ( |
| 134 | + query: GetUserListCompletionRecordParams, |
| 135 | + params: RequestParams = {}, |
| 136 | +) => |
| 137 | + request< |
| 138 | + WebResp & { |
| 139 | + data?: DomainListCompletionRecordResp; |
| 140 | + } |
| 141 | + >({ |
| 142 | + path: `/api/v1/user/completion/record`, |
| 143 | + method: "GET", |
| 144 | + query: query, |
| 145 | + type: ContentType.Json, |
| 146 | + format: "json", |
| 147 | + ...params, |
| 148 | + }); |
0 commit comments