sys-tenant-config-api.ts 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Admin.NET 通用权限开发平台
  5. * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
  6. *
  7. * OpenAPI spec version: 1.0.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by the swagger code generator program.
  11. * https://github.com/swagger-api/swagger-codegen.git
  12. * Do not edit the class manually.
  13. */
  14. import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
  15. import { Configuration } from '../configuration';
  16. // Some imports not used depending on template conditions
  17. // @ts-ignore
  18. import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
  19. import { AddConfigInput } from '../models';
  20. import { AdminResultListString } from '../models';
  21. import { AdminResultListSysConfig } from '../models';
  22. import { AdminResultSqlSugarPagedListSysConfig } from '../models';
  23. import { AdminResultString } from '../models';
  24. import { AdminResultSysConfig } from '../models';
  25. import { BatchConfigInput } from '../models';
  26. import { DeleteConfigInput } from '../models';
  27. import { PageConfigInput } from '../models';
  28. import { UpdateConfigInput } from '../models';
  29. /**
  30. * SysTenantConfigApi - axios parameter creator
  31. * @export
  32. */
  33. export const SysTenantConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  34. return {
  35. /**
  36. *
  37. * @summary 增加配置参数 🔖
  38. * @param {AddConfigInput} [body]
  39. * @param {*} [options] Override http request option.
  40. * @throws {RequiredError}
  41. */
  42. apiSysTenantConfigAddPost: async (body?: AddConfigInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  43. const localVarPath = `/api/sysTenantConfig/add`;
  44. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  45. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  46. let baseOptions;
  47. if (configuration) {
  48. baseOptions = configuration.baseOptions;
  49. }
  50. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  51. const localVarHeaderParameter = {} as any;
  52. const localVarQueryParameter = {} as any;
  53. // authentication Bearer required
  54. // http bearer authentication required
  55. if (configuration && configuration.accessToken) {
  56. const accessToken = typeof configuration.accessToken === 'function'
  57. ? await configuration.accessToken()
  58. : await configuration.accessToken;
  59. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  60. }
  61. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  62. const query = new URLSearchParams(localVarUrlObj.search);
  63. for (const key in localVarQueryParameter) {
  64. query.set(key, localVarQueryParameter[key]);
  65. }
  66. for (const key in options.params) {
  67. query.set(key, options.params[key]);
  68. }
  69. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  70. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  71. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  72. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  73. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  74. return {
  75. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  76. options: localVarRequestOptions,
  77. };
  78. },
  79. /**
  80. *
  81. * @summary 批量删除配置参数 🔖
  82. * @param {Array<number>} [body]
  83. * @param {*} [options] Override http request option.
  84. * @throws {RequiredError}
  85. */
  86. apiSysTenantConfigBatchDeletePost: async (body?: Array<number>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  87. const localVarPath = `/api/sysTenantConfig/batchDelete`;
  88. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  89. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  90. let baseOptions;
  91. if (configuration) {
  92. baseOptions = configuration.baseOptions;
  93. }
  94. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  95. const localVarHeaderParameter = {} as any;
  96. const localVarQueryParameter = {} as any;
  97. // authentication Bearer required
  98. // http bearer authentication required
  99. if (configuration && configuration.accessToken) {
  100. const accessToken = typeof configuration.accessToken === 'function'
  101. ? await configuration.accessToken()
  102. : await configuration.accessToken;
  103. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  104. }
  105. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  106. const query = new URLSearchParams(localVarUrlObj.search);
  107. for (const key in localVarQueryParameter) {
  108. query.set(key, localVarQueryParameter[key]);
  109. }
  110. for (const key in options.params) {
  111. query.set(key, options.params[key]);
  112. }
  113. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  114. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  115. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  116. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  117. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  118. return {
  119. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  120. options: localVarRequestOptions,
  121. };
  122. },
  123. /**
  124. *
  125. * @summary 批量更新配置参数值 🔖
  126. * @param {Array<BatchConfigInput>} [body]
  127. * @param {*} [options] Override http request option.
  128. * @throws {RequiredError}
  129. */
  130. apiSysTenantConfigBatchUpdatePost: async (body?: Array<BatchConfigInput>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  131. const localVarPath = `/api/sysTenantConfig/batchUpdate`;
  132. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  133. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  134. let baseOptions;
  135. if (configuration) {
  136. baseOptions = configuration.baseOptions;
  137. }
  138. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  139. const localVarHeaderParameter = {} as any;
  140. const localVarQueryParameter = {} as any;
  141. // authentication Bearer required
  142. // http bearer authentication required
  143. if (configuration && configuration.accessToken) {
  144. const accessToken = typeof configuration.accessToken === 'function'
  145. ? await configuration.accessToken()
  146. : await configuration.accessToken;
  147. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  148. }
  149. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  150. const query = new URLSearchParams(localVarUrlObj.search);
  151. for (const key in localVarQueryParameter) {
  152. query.set(key, localVarQueryParameter[key]);
  153. }
  154. for (const key in options.params) {
  155. query.set(key, options.params[key]);
  156. }
  157. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  158. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  159. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  160. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  161. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  162. return {
  163. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  164. options: localVarRequestOptions,
  165. };
  166. },
  167. /**
  168. *
  169. * @summary 根据Code获取配置参数值 🔖
  170. * @param {string} code
  171. * @param {*} [options] Override http request option.
  172. * @throws {RequiredError}
  173. */
  174. apiSysTenantConfigConfigValueByCodeCodeGet: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  175. // verify required parameter 'code' is not null or undefined
  176. if (code === null || code === undefined) {
  177. throw new RequiredError('code','Required parameter code was null or undefined when calling apiSysTenantConfigConfigValueByCodeCodeGet.');
  178. }
  179. const localVarPath = `/api/sysTenantConfig/configValueByCode/{code}`
  180. .replace(`{${"code"}}`, encodeURIComponent(String(code)));
  181. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  182. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  183. let baseOptions;
  184. if (configuration) {
  185. baseOptions = configuration.baseOptions;
  186. }
  187. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  188. const localVarHeaderParameter = {} as any;
  189. const localVarQueryParameter = {} as any;
  190. // authentication Bearer required
  191. // http bearer authentication required
  192. if (configuration && configuration.accessToken) {
  193. const accessToken = typeof configuration.accessToken === 'function'
  194. ? await configuration.accessToken()
  195. : await configuration.accessToken;
  196. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  197. }
  198. const query = new URLSearchParams(localVarUrlObj.search);
  199. for (const key in localVarQueryParameter) {
  200. query.set(key, localVarQueryParameter[key]);
  201. }
  202. for (const key in options.params) {
  203. query.set(key, options.params[key]);
  204. }
  205. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  206. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  207. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  208. return {
  209. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  210. options: localVarRequestOptions,
  211. };
  212. },
  213. /**
  214. *
  215. * @summary 删除配置参数 🔖
  216. * @param {DeleteConfigInput} [body]
  217. * @param {*} [options] Override http request option.
  218. * @throws {RequiredError}
  219. */
  220. apiSysTenantConfigDeletePost: async (body?: DeleteConfigInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  221. const localVarPath = `/api/sysTenantConfig/delete`;
  222. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  223. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  224. let baseOptions;
  225. if (configuration) {
  226. baseOptions = configuration.baseOptions;
  227. }
  228. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  229. const localVarHeaderParameter = {} as any;
  230. const localVarQueryParameter = {} as any;
  231. // authentication Bearer required
  232. // http bearer authentication required
  233. if (configuration && configuration.accessToken) {
  234. const accessToken = typeof configuration.accessToken === 'function'
  235. ? await configuration.accessToken()
  236. : await configuration.accessToken;
  237. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  238. }
  239. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  240. const query = new URLSearchParams(localVarUrlObj.search);
  241. for (const key in localVarQueryParameter) {
  242. query.set(key, localVarQueryParameter[key]);
  243. }
  244. for (const key in options.params) {
  245. query.set(key, options.params[key]);
  246. }
  247. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  248. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  249. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  250. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  251. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  252. return {
  253. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  254. options: localVarRequestOptions,
  255. };
  256. },
  257. /**
  258. *
  259. * @summary 获取配置参数详情 🔖
  260. * @param {number} id 主键Id
  261. * @param {*} [options] Override http request option.
  262. * @throws {RequiredError}
  263. */
  264. apiSysTenantConfigDetailGet: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  265. // verify required parameter 'id' is not null or undefined
  266. if (id === null || id === undefined) {
  267. throw new RequiredError('id','Required parameter id was null or undefined when calling apiSysTenantConfigDetailGet.');
  268. }
  269. const localVarPath = `/api/sysTenantConfig/detail`;
  270. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  271. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  272. let baseOptions;
  273. if (configuration) {
  274. baseOptions = configuration.baseOptions;
  275. }
  276. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  277. const localVarHeaderParameter = {} as any;
  278. const localVarQueryParameter = {} as any;
  279. // authentication Bearer required
  280. // http bearer authentication required
  281. if (configuration && configuration.accessToken) {
  282. const accessToken = typeof configuration.accessToken === 'function'
  283. ? await configuration.accessToken()
  284. : await configuration.accessToken;
  285. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  286. }
  287. if (id !== undefined) {
  288. localVarQueryParameter['Id'] = id;
  289. }
  290. const query = new URLSearchParams(localVarUrlObj.search);
  291. for (const key in localVarQueryParameter) {
  292. query.set(key, localVarQueryParameter[key]);
  293. }
  294. for (const key in options.params) {
  295. query.set(key, options.params[key]);
  296. }
  297. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  298. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  299. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  300. return {
  301. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  302. options: localVarRequestOptions,
  303. };
  304. },
  305. /**
  306. *
  307. * @summary 获取分组列表 🔖
  308. * @param {*} [options] Override http request option.
  309. * @throws {RequiredError}
  310. */
  311. apiSysTenantConfigGroupListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  312. const localVarPath = `/api/sysTenantConfig/groupList`;
  313. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  314. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  315. let baseOptions;
  316. if (configuration) {
  317. baseOptions = configuration.baseOptions;
  318. }
  319. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  320. const localVarHeaderParameter = {} as any;
  321. const localVarQueryParameter = {} as any;
  322. // authentication Bearer required
  323. // http bearer authentication required
  324. if (configuration && configuration.accessToken) {
  325. const accessToken = typeof configuration.accessToken === 'function'
  326. ? await configuration.accessToken()
  327. : await configuration.accessToken;
  328. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  329. }
  330. const query = new URLSearchParams(localVarUrlObj.search);
  331. for (const key in localVarQueryParameter) {
  332. query.set(key, localVarQueryParameter[key]);
  333. }
  334. for (const key in options.params) {
  335. query.set(key, options.params[key]);
  336. }
  337. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  338. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  339. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  340. return {
  341. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  342. options: localVarRequestOptions,
  343. };
  344. },
  345. /**
  346. *
  347. * @summary 获取配置参数列表 🔖
  348. * @param {PageConfigInput} [body]
  349. * @param {*} [options] Override http request option.
  350. * @throws {RequiredError}
  351. */
  352. apiSysTenantConfigListPost: async (body?: PageConfigInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  353. const localVarPath = `/api/sysTenantConfig/list`;
  354. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  355. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  356. let baseOptions;
  357. if (configuration) {
  358. baseOptions = configuration.baseOptions;
  359. }
  360. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  361. const localVarHeaderParameter = {} as any;
  362. const localVarQueryParameter = {} as any;
  363. // authentication Bearer required
  364. // http bearer authentication required
  365. if (configuration && configuration.accessToken) {
  366. const accessToken = typeof configuration.accessToken === 'function'
  367. ? await configuration.accessToken()
  368. : await configuration.accessToken;
  369. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  370. }
  371. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  372. const query = new URLSearchParams(localVarUrlObj.search);
  373. for (const key in localVarQueryParameter) {
  374. query.set(key, localVarQueryParameter[key]);
  375. }
  376. for (const key in options.params) {
  377. query.set(key, options.params[key]);
  378. }
  379. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  380. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  381. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  382. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  383. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  384. return {
  385. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  386. options: localVarRequestOptions,
  387. };
  388. },
  389. /**
  390. *
  391. * @summary 获取配置参数分页列表 🔖
  392. * @param {PageConfigInput} [body]
  393. * @param {*} [options] Override http request option.
  394. * @throws {RequiredError}
  395. */
  396. apiSysTenantConfigPagePost: async (body?: PageConfigInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  397. const localVarPath = `/api/sysTenantConfig/page`;
  398. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  399. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  400. let baseOptions;
  401. if (configuration) {
  402. baseOptions = configuration.baseOptions;
  403. }
  404. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  405. const localVarHeaderParameter = {} as any;
  406. const localVarQueryParameter = {} as any;
  407. // authentication Bearer required
  408. // http bearer authentication required
  409. if (configuration && configuration.accessToken) {
  410. const accessToken = typeof configuration.accessToken === 'function'
  411. ? await configuration.accessToken()
  412. : await configuration.accessToken;
  413. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  414. }
  415. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  416. const query = new URLSearchParams(localVarUrlObj.search);
  417. for (const key in localVarQueryParameter) {
  418. query.set(key, localVarQueryParameter[key]);
  419. }
  420. for (const key in options.params) {
  421. query.set(key, options.params[key]);
  422. }
  423. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  424. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  425. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  426. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  427. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  428. return {
  429. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  430. options: localVarRequestOptions,
  431. };
  432. },
  433. /**
  434. *
  435. * @summary 更新配置参数 🔖
  436. * @param {UpdateConfigInput} [body]
  437. * @param {*} [options] Override http request option.
  438. * @throws {RequiredError}
  439. */
  440. apiSysTenantConfigUpdatePost: async (body?: UpdateConfigInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  441. const localVarPath = `/api/sysTenantConfig/update`;
  442. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  443. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  444. let baseOptions;
  445. if (configuration) {
  446. baseOptions = configuration.baseOptions;
  447. }
  448. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  449. const localVarHeaderParameter = {} as any;
  450. const localVarQueryParameter = {} as any;
  451. // authentication Bearer required
  452. // http bearer authentication required
  453. if (configuration && configuration.accessToken) {
  454. const accessToken = typeof configuration.accessToken === 'function'
  455. ? await configuration.accessToken()
  456. : await configuration.accessToken;
  457. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  458. }
  459. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  460. const query = new URLSearchParams(localVarUrlObj.search);
  461. for (const key in localVarQueryParameter) {
  462. query.set(key, localVarQueryParameter[key]);
  463. }
  464. for (const key in options.params) {
  465. query.set(key, options.params[key]);
  466. }
  467. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  468. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  469. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  470. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  471. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  472. return {
  473. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  474. options: localVarRequestOptions,
  475. };
  476. },
  477. }
  478. };
  479. /**
  480. * SysTenantConfigApi - functional programming interface
  481. * @export
  482. */
  483. export const SysTenantConfigApiFp = function(configuration?: Configuration) {
  484. return {
  485. /**
  486. *
  487. * @summary 增加配置参数 🔖
  488. * @param {AddConfigInput} [body]
  489. * @param {*} [options] Override http request option.
  490. * @throws {RequiredError}
  491. */
  492. async apiSysTenantConfigAddPost(body?: AddConfigInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  493. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigAddPost(body, options);
  494. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  495. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  496. return axios.request(axiosRequestArgs);
  497. };
  498. },
  499. /**
  500. *
  501. * @summary 批量删除配置参数 🔖
  502. * @param {Array<number>} [body]
  503. * @param {*} [options] Override http request option.
  504. * @throws {RequiredError}
  505. */
  506. async apiSysTenantConfigBatchDeletePost(body?: Array<number>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  507. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigBatchDeletePost(body, options);
  508. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  509. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  510. return axios.request(axiosRequestArgs);
  511. };
  512. },
  513. /**
  514. *
  515. * @summary 批量更新配置参数值 🔖
  516. * @param {Array<BatchConfigInput>} [body]
  517. * @param {*} [options] Override http request option.
  518. * @throws {RequiredError}
  519. */
  520. async apiSysTenantConfigBatchUpdatePost(body?: Array<BatchConfigInput>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  521. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigBatchUpdatePost(body, options);
  522. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  523. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  524. return axios.request(axiosRequestArgs);
  525. };
  526. },
  527. /**
  528. *
  529. * @summary 根据Code获取配置参数值 🔖
  530. * @param {string} code
  531. * @param {*} [options] Override http request option.
  532. * @throws {RequiredError}
  533. */
  534. async apiSysTenantConfigConfigValueByCodeCodeGet(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultString>>> {
  535. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigConfigValueByCodeCodeGet(code, options);
  536. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  537. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  538. return axios.request(axiosRequestArgs);
  539. };
  540. },
  541. /**
  542. *
  543. * @summary 删除配置参数 🔖
  544. * @param {DeleteConfigInput} [body]
  545. * @param {*} [options] Override http request option.
  546. * @throws {RequiredError}
  547. */
  548. async apiSysTenantConfigDeletePost(body?: DeleteConfigInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  549. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigDeletePost(body, options);
  550. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  551. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  552. return axios.request(axiosRequestArgs);
  553. };
  554. },
  555. /**
  556. *
  557. * @summary 获取配置参数详情 🔖
  558. * @param {number} id 主键Id
  559. * @param {*} [options] Override http request option.
  560. * @throws {RequiredError}
  561. */
  562. async apiSysTenantConfigDetailGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysConfig>>> {
  563. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigDetailGet(id, options);
  564. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  565. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  566. return axios.request(axiosRequestArgs);
  567. };
  568. },
  569. /**
  570. *
  571. * @summary 获取分组列表 🔖
  572. * @param {*} [options] Override http request option.
  573. * @throws {RequiredError}
  574. */
  575. async apiSysTenantConfigGroupListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListString>>> {
  576. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigGroupListGet(options);
  577. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  578. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  579. return axios.request(axiosRequestArgs);
  580. };
  581. },
  582. /**
  583. *
  584. * @summary 获取配置参数列表 🔖
  585. * @param {PageConfigInput} [body]
  586. * @param {*} [options] Override http request option.
  587. * @throws {RequiredError}
  588. */
  589. async apiSysTenantConfigListPost(body?: PageConfigInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysConfig>>> {
  590. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigListPost(body, options);
  591. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  592. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  593. return axios.request(axiosRequestArgs);
  594. };
  595. },
  596. /**
  597. *
  598. * @summary 获取配置参数分页列表 🔖
  599. * @param {PageConfigInput} [body]
  600. * @param {*} [options] Override http request option.
  601. * @throws {RequiredError}
  602. */
  603. async apiSysTenantConfigPagePost(body?: PageConfigInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysConfig>>> {
  604. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigPagePost(body, options);
  605. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  606. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  607. return axios.request(axiosRequestArgs);
  608. };
  609. },
  610. /**
  611. *
  612. * @summary 更新配置参数 🔖
  613. * @param {UpdateConfigInput} [body]
  614. * @param {*} [options] Override http request option.
  615. * @throws {RequiredError}
  616. */
  617. async apiSysTenantConfigUpdatePost(body?: UpdateConfigInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  618. const localVarAxiosArgs = await SysTenantConfigApiAxiosParamCreator(configuration).apiSysTenantConfigUpdatePost(body, options);
  619. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  620. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  621. return axios.request(axiosRequestArgs);
  622. };
  623. },
  624. }
  625. };
  626. /**
  627. * SysTenantConfigApi - factory interface
  628. * @export
  629. */
  630. export const SysTenantConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  631. return {
  632. /**
  633. *
  634. * @summary 增加配置参数 🔖
  635. * @param {AddConfigInput} [body]
  636. * @param {*} [options] Override http request option.
  637. * @throws {RequiredError}
  638. */
  639. async apiSysTenantConfigAddPost(body?: AddConfigInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  640. return SysTenantConfigApiFp(configuration).apiSysTenantConfigAddPost(body, options).then((request) => request(axios, basePath));
  641. },
  642. /**
  643. *
  644. * @summary 批量删除配置参数 🔖
  645. * @param {Array<number>} [body]
  646. * @param {*} [options] Override http request option.
  647. * @throws {RequiredError}
  648. */
  649. async apiSysTenantConfigBatchDeletePost(body?: Array<number>, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  650. return SysTenantConfigApiFp(configuration).apiSysTenantConfigBatchDeletePost(body, options).then((request) => request(axios, basePath));
  651. },
  652. /**
  653. *
  654. * @summary 批量更新配置参数值 🔖
  655. * @param {Array<BatchConfigInput>} [body]
  656. * @param {*} [options] Override http request option.
  657. * @throws {RequiredError}
  658. */
  659. async apiSysTenantConfigBatchUpdatePost(body?: Array<BatchConfigInput>, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  660. return SysTenantConfigApiFp(configuration).apiSysTenantConfigBatchUpdatePost(body, options).then((request) => request(axios, basePath));
  661. },
  662. /**
  663. *
  664. * @summary 根据Code获取配置参数值 🔖
  665. * @param {string} code
  666. * @param {*} [options] Override http request option.
  667. * @throws {RequiredError}
  668. */
  669. async apiSysTenantConfigConfigValueByCodeCodeGet(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultString>> {
  670. return SysTenantConfigApiFp(configuration).apiSysTenantConfigConfigValueByCodeCodeGet(code, options).then((request) => request(axios, basePath));
  671. },
  672. /**
  673. *
  674. * @summary 删除配置参数 🔖
  675. * @param {DeleteConfigInput} [body]
  676. * @param {*} [options] Override http request option.
  677. * @throws {RequiredError}
  678. */
  679. async apiSysTenantConfigDeletePost(body?: DeleteConfigInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  680. return SysTenantConfigApiFp(configuration).apiSysTenantConfigDeletePost(body, options).then((request) => request(axios, basePath));
  681. },
  682. /**
  683. *
  684. * @summary 获取配置参数详情 🔖
  685. * @param {number} id 主键Id
  686. * @param {*} [options] Override http request option.
  687. * @throws {RequiredError}
  688. */
  689. async apiSysTenantConfigDetailGet(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSysConfig>> {
  690. return SysTenantConfigApiFp(configuration).apiSysTenantConfigDetailGet(id, options).then((request) => request(axios, basePath));
  691. },
  692. /**
  693. *
  694. * @summary 获取分组列表 🔖
  695. * @param {*} [options] Override http request option.
  696. * @throws {RequiredError}
  697. */
  698. async apiSysTenantConfigGroupListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListString>> {
  699. return SysTenantConfigApiFp(configuration).apiSysTenantConfigGroupListGet(options).then((request) => request(axios, basePath));
  700. },
  701. /**
  702. *
  703. * @summary 获取配置参数列表 🔖
  704. * @param {PageConfigInput} [body]
  705. * @param {*} [options] Override http request option.
  706. * @throws {RequiredError}
  707. */
  708. async apiSysTenantConfigListPost(body?: PageConfigInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysConfig>> {
  709. return SysTenantConfigApiFp(configuration).apiSysTenantConfigListPost(body, options).then((request) => request(axios, basePath));
  710. },
  711. /**
  712. *
  713. * @summary 获取配置参数分页列表 🔖
  714. * @param {PageConfigInput} [body]
  715. * @param {*} [options] Override http request option.
  716. * @throws {RequiredError}
  717. */
  718. async apiSysTenantConfigPagePost(body?: PageConfigInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysConfig>> {
  719. return SysTenantConfigApiFp(configuration).apiSysTenantConfigPagePost(body, options).then((request) => request(axios, basePath));
  720. },
  721. /**
  722. *
  723. * @summary 更新配置参数 🔖
  724. * @param {UpdateConfigInput} [body]
  725. * @param {*} [options] Override http request option.
  726. * @throws {RequiredError}
  727. */
  728. async apiSysTenantConfigUpdatePost(body?: UpdateConfigInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  729. return SysTenantConfigApiFp(configuration).apiSysTenantConfigUpdatePost(body, options).then((request) => request(axios, basePath));
  730. },
  731. };
  732. };
  733. /**
  734. * SysTenantConfigApi - object-oriented interface
  735. * @export
  736. * @class SysTenantConfigApi
  737. * @extends {BaseAPI}
  738. */
  739. export class SysTenantConfigApi extends BaseAPI {
  740. /**
  741. *
  742. * @summary 增加配置参数 🔖
  743. * @param {AddConfigInput} [body]
  744. * @param {*} [options] Override http request option.
  745. * @throws {RequiredError}
  746. * @memberof SysTenantConfigApi
  747. */
  748. public async apiSysTenantConfigAddPost(body?: AddConfigInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  749. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigAddPost(body, options).then((request) => request(this.axios, this.basePath));
  750. }
  751. /**
  752. *
  753. * @summary 批量删除配置参数 🔖
  754. * @param {Array<number>} [body]
  755. * @param {*} [options] Override http request option.
  756. * @throws {RequiredError}
  757. * @memberof SysTenantConfigApi
  758. */
  759. public async apiSysTenantConfigBatchDeletePost(body?: Array<number>, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  760. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigBatchDeletePost(body, options).then((request) => request(this.axios, this.basePath));
  761. }
  762. /**
  763. *
  764. * @summary 批量更新配置参数值 🔖
  765. * @param {Array<BatchConfigInput>} [body]
  766. * @param {*} [options] Override http request option.
  767. * @throws {RequiredError}
  768. * @memberof SysTenantConfigApi
  769. */
  770. public async apiSysTenantConfigBatchUpdatePost(body?: Array<BatchConfigInput>, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  771. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigBatchUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
  772. }
  773. /**
  774. *
  775. * @summary 根据Code获取配置参数值 🔖
  776. * @param {string} code
  777. * @param {*} [options] Override http request option.
  778. * @throws {RequiredError}
  779. * @memberof SysTenantConfigApi
  780. */
  781. public async apiSysTenantConfigConfigValueByCodeCodeGet(code: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultString>> {
  782. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigConfigValueByCodeCodeGet(code, options).then((request) => request(this.axios, this.basePath));
  783. }
  784. /**
  785. *
  786. * @summary 删除配置参数 🔖
  787. * @param {DeleteConfigInput} [body]
  788. * @param {*} [options] Override http request option.
  789. * @throws {RequiredError}
  790. * @memberof SysTenantConfigApi
  791. */
  792. public async apiSysTenantConfigDeletePost(body?: DeleteConfigInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  793. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigDeletePost(body, options).then((request) => request(this.axios, this.basePath));
  794. }
  795. /**
  796. *
  797. * @summary 获取配置参数详情 🔖
  798. * @param {number} id 主键Id
  799. * @param {*} [options] Override http request option.
  800. * @throws {RequiredError}
  801. * @memberof SysTenantConfigApi
  802. */
  803. public async apiSysTenantConfigDetailGet(id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSysConfig>> {
  804. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigDetailGet(id, options).then((request) => request(this.axios, this.basePath));
  805. }
  806. /**
  807. *
  808. * @summary 获取分组列表 🔖
  809. * @param {*} [options] Override http request option.
  810. * @throws {RequiredError}
  811. * @memberof SysTenantConfigApi
  812. */
  813. public async apiSysTenantConfigGroupListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListString>> {
  814. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigGroupListGet(options).then((request) => request(this.axios, this.basePath));
  815. }
  816. /**
  817. *
  818. * @summary 获取配置参数列表 🔖
  819. * @param {PageConfigInput} [body]
  820. * @param {*} [options] Override http request option.
  821. * @throws {RequiredError}
  822. * @memberof SysTenantConfigApi
  823. */
  824. public async apiSysTenantConfigListPost(body?: PageConfigInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysConfig>> {
  825. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigListPost(body, options).then((request) => request(this.axios, this.basePath));
  826. }
  827. /**
  828. *
  829. * @summary 获取配置参数分页列表 🔖
  830. * @param {PageConfigInput} [body]
  831. * @param {*} [options] Override http request option.
  832. * @throws {RequiredError}
  833. * @memberof SysTenantConfigApi
  834. */
  835. public async apiSysTenantConfigPagePost(body?: PageConfigInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysConfig>> {
  836. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigPagePost(body, options).then((request) => request(this.axios, this.basePath));
  837. }
  838. /**
  839. *
  840. * @summary 更新配置参数 🔖
  841. * @param {UpdateConfigInput} [body]
  842. * @param {*} [options] Override http request option.
  843. * @throws {RequiredError}
  844. * @memberof SysTenantConfigApi
  845. */
  846. public async apiSysTenantConfigUpdatePost(body?: UpdateConfigInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  847. return SysTenantConfigApiFp(this.configuration).apiSysTenantConfigUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
  848. }
  849. }