|
| 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 | + DomainAIEmployee, |
| 16 | + DomainCreateAIEmployeeReq, |
| 17 | + DomainListAIEmployeeResp, |
| 18 | + DomainUUIDReq, |
| 19 | + DomainUpdateAIEmployeeReq, |
| 20 | + GetUserAiemployeeInfoParams, |
| 21 | + GetUserAiemployeeListParams, |
| 22 | + WebResp, |
| 23 | +} from "./types"; |
| 24 | + |
| 25 | +/** |
| 26 | + * @description 获取AI员工列表 |
| 27 | + * |
| 28 | + * @tags User AIEmployee |
| 29 | + * @name GetUserAiemployeeList |
| 30 | + * @summary 获取AI员工列表 |
| 31 | + * @request GET:/api/v1/user/aiemployee |
| 32 | + * @response `200` `(WebResp & { |
| 33 | + data?: DomainListAIEmployeeResp, |
| 34 | +
|
| 35 | +})` OK |
| 36 | + */ |
| 37 | + |
| 38 | +export const getUserAiemployeeList = ( |
| 39 | + query: GetUserAiemployeeListParams, |
| 40 | + params: RequestParams = {}, |
| 41 | +) => |
| 42 | + request< |
| 43 | + WebResp & { |
| 44 | + data?: DomainListAIEmployeeResp; |
| 45 | + } |
| 46 | + >({ |
| 47 | + path: `/api/v1/user/aiemployee`, |
| 48 | + method: "GET", |
| 49 | + query: query, |
| 50 | + type: ContentType.Json, |
| 51 | + format: "json", |
| 52 | + ...params, |
| 53 | + }); |
| 54 | + |
| 55 | +/** |
| 56 | + * @description 更新AI员工 |
| 57 | + * |
| 58 | + * @tags User AIEmployee |
| 59 | + * @name PutUserAiemployeeUpdate |
| 60 | + * @summary 更新AI员工 |
| 61 | + * @request PUT:/api/v1/user/aiemployee |
| 62 | + * @response `200` `(WebResp & { |
| 63 | + data?: DomainAIEmployee, |
| 64 | +
|
| 65 | +})` OK |
| 66 | + */ |
| 67 | + |
| 68 | +export const putUserAiemployeeUpdate = ( |
| 69 | + param: DomainUpdateAIEmployeeReq, |
| 70 | + params: RequestParams = {}, |
| 71 | +) => |
| 72 | + request< |
| 73 | + WebResp & { |
| 74 | + data?: DomainAIEmployee; |
| 75 | + } |
| 76 | + >({ |
| 77 | + path: `/api/v1/user/aiemployee`, |
| 78 | + method: "PUT", |
| 79 | + body: param, |
| 80 | + type: ContentType.Json, |
| 81 | + format: "json", |
| 82 | + ...params, |
| 83 | + }); |
| 84 | + |
| 85 | +/** |
| 86 | + * @description 创建AI员工 |
| 87 | + * |
| 88 | + * @tags User AIEmployee |
| 89 | + * @name PostUserAiemployeeCreate |
| 90 | + * @summary 创建AI员工 |
| 91 | + * @request POST:/api/v1/user/aiemployee |
| 92 | + * @response `200` `(WebResp & { |
| 93 | + data?: DomainAIEmployee, |
| 94 | +
|
| 95 | +})` OK |
| 96 | + */ |
| 97 | + |
| 98 | +export const postUserAiemployeeCreate = ( |
| 99 | + param: DomainCreateAIEmployeeReq, |
| 100 | + params: RequestParams = {}, |
| 101 | +) => |
| 102 | + request< |
| 103 | + WebResp & { |
| 104 | + data?: DomainAIEmployee; |
| 105 | + } |
| 106 | + >({ |
| 107 | + path: `/api/v1/user/aiemployee`, |
| 108 | + method: "POST", |
| 109 | + body: param, |
| 110 | + type: ContentType.Json, |
| 111 | + format: "json", |
| 112 | + ...params, |
| 113 | + }); |
| 114 | + |
| 115 | +/** |
| 116 | + * @description 删除AI员工 |
| 117 | + * |
| 118 | + * @tags User AIEmployee |
| 119 | + * @name DeleteUserAiemployeeDelete |
| 120 | + * @summary 删除AI员工 |
| 121 | + * @request DELETE:/api/v1/user/aiemployee |
| 122 | + * @response `200` `WebResp` OK |
| 123 | + */ |
| 124 | + |
| 125 | +export const deleteUserAiemployeeDelete = ( |
| 126 | + param: DomainUUIDReq, |
| 127 | + params: RequestParams = {}, |
| 128 | +) => |
| 129 | + request<WebResp>({ |
| 130 | + path: `/api/v1/user/aiemployee`, |
| 131 | + method: "DELETE", |
| 132 | + body: param, |
| 133 | + type: ContentType.Json, |
| 134 | + format: "json", |
| 135 | + ...params, |
| 136 | + }); |
| 137 | + |
| 138 | +/** |
| 139 | + * @description 获取AI员工详情 |
| 140 | + * |
| 141 | + * @tags User AIEmployee |
| 142 | + * @name GetUserAiemployeeInfo |
| 143 | + * @summary 获取AI员工详情 |
| 144 | + * @request GET:/api/v1/user/aiemployee/info |
| 145 | + * @response `200` `(WebResp & { |
| 146 | + data?: DomainAIEmployee, |
| 147 | +
|
| 148 | +})` OK |
| 149 | + */ |
| 150 | + |
| 151 | +export const getUserAiemployeeInfo = ( |
| 152 | + query: GetUserAiemployeeInfoParams, |
| 153 | + params: RequestParams = {}, |
| 154 | +) => |
| 155 | + request< |
| 156 | + WebResp & { |
| 157 | + data?: DomainAIEmployee; |
| 158 | + } |
| 159 | + >({ |
| 160 | + path: `/api/v1/user/aiemployee/info`, |
| 161 | + method: "GET", |
| 162 | + query: query, |
| 163 | + type: ContentType.Json, |
| 164 | + format: "json", |
| 165 | + ...params, |
| 166 | + }); |
0 commit comments