sys-app-api.ts 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  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 { AddSysAppInput } from '../models';
  20. import { AdminResultInt64 } from '../models';
  21. import { AdminResultListInt64 } from '../models';
  22. import { AdminResultLoginOutput } from '../models';
  23. import { AdminResultObject } from '../models';
  24. import { AdminResultSqlSugarPagedListSysAppOutput } from '../models';
  25. import { BaseIdInput } from '../models';
  26. import { BasePageInput } from '../models';
  27. import { ChangeAppInput } from '../models';
  28. import { UpdateAppMenuInput } from '../models';
  29. import { UpdateSysAppInput } from '../models';
  30. /**
  31. * SysAppApi - axios parameter creator
  32. * @export
  33. */
  34. export const SysAppApiAxiosParamCreator = function (configuration?: Configuration) {
  35. return {
  36. /**
  37. *
  38. * @summary 增加应用 🔖
  39. * @param {AddSysAppInput} [body]
  40. * @param {*} [options] Override http request option.
  41. * @throws {RequiredError}
  42. */
  43. apiSysAppAddPost: async (body?: AddSysAppInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  44. const localVarPath = `/api/sysApp/add`;
  45. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  46. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  47. let baseOptions;
  48. if (configuration) {
  49. baseOptions = configuration.baseOptions;
  50. }
  51. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  52. const localVarHeaderParameter = {} as any;
  53. const localVarQueryParameter = {} as any;
  54. // authentication Bearer required
  55. // http bearer authentication required
  56. if (configuration && configuration.accessToken) {
  57. const accessToken = typeof configuration.accessToken === 'function'
  58. ? await configuration.accessToken()
  59. : await configuration.accessToken;
  60. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  61. }
  62. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  63. const query = new URLSearchParams(localVarUrlObj.search);
  64. for (const key in localVarQueryParameter) {
  65. query.set(key, localVarQueryParameter[key]);
  66. }
  67. for (const key in options.params) {
  68. query.set(key, options.params[key]);
  69. }
  70. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  71. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  72. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  73. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  74. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  75. return {
  76. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  77. options: localVarRequestOptions,
  78. };
  79. },
  80. /**
  81. *
  82. * @summary 获取切换应用数据 🔖
  83. * @param {*} [options] Override http request option.
  84. * @throws {RequiredError}
  85. */
  86. apiSysAppChangeAppGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  87. const localVarPath = `/api/sysApp/changeApp`;
  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: 'GET', ...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. const query = new URLSearchParams(localVarUrlObj.search);
  106. for (const key in localVarQueryParameter) {
  107. query.set(key, localVarQueryParameter[key]);
  108. }
  109. for (const key in options.params) {
  110. query.set(key, options.params[key]);
  111. }
  112. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  113. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  114. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  115. return {
  116. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  117. options: localVarRequestOptions,
  118. };
  119. },
  120. /**
  121. *
  122. * @summary 切换应用 🔖
  123. * @param {ChangeAppInput} [body]
  124. * @param {*} [options] Override http request option.
  125. * @throws {RequiredError}
  126. */
  127. apiSysAppChangeAppPost: async (body?: ChangeAppInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  128. const localVarPath = `/api/sysApp/changeApp`;
  129. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  130. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  131. let baseOptions;
  132. if (configuration) {
  133. baseOptions = configuration.baseOptions;
  134. }
  135. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  136. const localVarHeaderParameter = {} as any;
  137. const localVarQueryParameter = {} as any;
  138. // authentication Bearer required
  139. // http bearer authentication required
  140. if (configuration && configuration.accessToken) {
  141. const accessToken = typeof configuration.accessToken === 'function'
  142. ? await configuration.accessToken()
  143. : await configuration.accessToken;
  144. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  145. }
  146. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  147. const query = new URLSearchParams(localVarUrlObj.search);
  148. for (const key in localVarQueryParameter) {
  149. query.set(key, localVarQueryParameter[key]);
  150. }
  151. for (const key in options.params) {
  152. query.set(key, options.params[key]);
  153. }
  154. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  155. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  156. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  157. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  158. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  159. return {
  160. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  161. options: localVarRequestOptions,
  162. };
  163. },
  164. /**
  165. *
  166. * @summary 删除应用 🔖
  167. * @param {BaseIdInput} [body]
  168. * @param {*} [options] Override http request option.
  169. * @throws {RequiredError}
  170. */
  171. apiSysAppDeletePost: async (body?: BaseIdInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  172. const localVarPath = `/api/sysApp/delete`;
  173. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  174. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  175. let baseOptions;
  176. if (configuration) {
  177. baseOptions = configuration.baseOptions;
  178. }
  179. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  180. const localVarHeaderParameter = {} as any;
  181. const localVarQueryParameter = {} as any;
  182. // authentication Bearer required
  183. // http bearer authentication required
  184. if (configuration && configuration.accessToken) {
  185. const accessToken = typeof configuration.accessToken === 'function'
  186. ? await configuration.accessToken()
  187. : await configuration.accessToken;
  188. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  189. }
  190. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  191. const query = new URLSearchParams(localVarUrlObj.search);
  192. for (const key in localVarQueryParameter) {
  193. query.set(key, localVarQueryParameter[key]);
  194. }
  195. for (const key in options.params) {
  196. query.set(key, options.params[key]);
  197. }
  198. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  199. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  200. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  201. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  202. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  203. return {
  204. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  205. options: localVarRequestOptions,
  206. };
  207. },
  208. /**
  209. *
  210. * @summary 获取授权菜单 🔖
  211. * @param {number} [id]
  212. * @param {*} [options] Override http request option.
  213. * @throws {RequiredError}
  214. */
  215. apiSysAppGrantMenuGet: async (id?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  216. const localVarPath = `/api/sysApp/grantMenu`;
  217. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  218. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  219. let baseOptions;
  220. if (configuration) {
  221. baseOptions = configuration.baseOptions;
  222. }
  223. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  224. const localVarHeaderParameter = {} as any;
  225. const localVarQueryParameter = {} as any;
  226. // authentication Bearer required
  227. // http bearer authentication required
  228. if (configuration && configuration.accessToken) {
  229. const accessToken = typeof configuration.accessToken === 'function'
  230. ? await configuration.accessToken()
  231. : await configuration.accessToken;
  232. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  233. }
  234. if (id !== undefined) {
  235. localVarQueryParameter['id'] = id;
  236. }
  237. const query = new URLSearchParams(localVarUrlObj.search);
  238. for (const key in localVarQueryParameter) {
  239. query.set(key, localVarQueryParameter[key]);
  240. }
  241. for (const key in options.params) {
  242. query.set(key, options.params[key]);
  243. }
  244. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  247. return {
  248. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  249. options: localVarRequestOptions,
  250. };
  251. },
  252. /**
  253. *
  254. * @summary 授权菜单 🔖
  255. * @param {UpdateAppMenuInput} [body]
  256. * @param {*} [options] Override http request option.
  257. * @throws {RequiredError}
  258. */
  259. apiSysAppGrantMenuPost: async (body?: UpdateAppMenuInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  260. const localVarPath = `/api/sysApp/grantMenu`;
  261. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  262. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  263. let baseOptions;
  264. if (configuration) {
  265. baseOptions = configuration.baseOptions;
  266. }
  267. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  268. const localVarHeaderParameter = {} as any;
  269. const localVarQueryParameter = {} as any;
  270. // authentication Bearer required
  271. // http bearer authentication required
  272. if (configuration && configuration.accessToken) {
  273. const accessToken = typeof configuration.accessToken === 'function'
  274. ? await configuration.accessToken()
  275. : await configuration.accessToken;
  276. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  277. }
  278. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  279. const query = new URLSearchParams(localVarUrlObj.search);
  280. for (const key in localVarQueryParameter) {
  281. query.set(key, localVarQueryParameter[key]);
  282. }
  283. for (const key in options.params) {
  284. query.set(key, options.params[key]);
  285. }
  286. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  287. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  288. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  289. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  290. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  291. return {
  292. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  293. options: localVarRequestOptions,
  294. };
  295. },
  296. /**
  297. *
  298. * @summary 分页查询应用 🔖
  299. * @param {BasePageInput} [body]
  300. * @param {*} [options] Override http request option.
  301. * @throws {RequiredError}
  302. */
  303. apiSysAppPagePost: async (body?: BasePageInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  304. const localVarPath = `/api/sysApp/page`;
  305. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  306. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  307. let baseOptions;
  308. if (configuration) {
  309. baseOptions = configuration.baseOptions;
  310. }
  311. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  312. const localVarHeaderParameter = {} as any;
  313. const localVarQueryParameter = {} as any;
  314. // authentication Bearer required
  315. // http bearer authentication required
  316. if (configuration && configuration.accessToken) {
  317. const accessToken = typeof configuration.accessToken === 'function'
  318. ? await configuration.accessToken()
  319. : await configuration.accessToken;
  320. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  321. }
  322. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  323. const query = new URLSearchParams(localVarUrlObj.search);
  324. for (const key in localVarQueryParameter) {
  325. query.set(key, localVarQueryParameter[key]);
  326. }
  327. for (const key in options.params) {
  328. query.set(key, options.params[key]);
  329. }
  330. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  331. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  332. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  333. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  334. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  335. return {
  336. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  337. options: localVarRequestOptions,
  338. };
  339. },
  340. /**
  341. *
  342. * @summary 更新应用 🔖
  343. * @param {UpdateSysAppInput} [body]
  344. * @param {*} [options] Override http request option.
  345. * @throws {RequiredError}
  346. */
  347. apiSysAppUpdatePost: async (body?: UpdateSysAppInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  348. const localVarPath = `/api/sysApp/update`;
  349. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  350. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  351. let baseOptions;
  352. if (configuration) {
  353. baseOptions = configuration.baseOptions;
  354. }
  355. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  356. const localVarHeaderParameter = {} as any;
  357. const localVarQueryParameter = {} as any;
  358. // authentication Bearer required
  359. // http bearer authentication required
  360. if (configuration && configuration.accessToken) {
  361. const accessToken = typeof configuration.accessToken === 'function'
  362. ? await configuration.accessToken()
  363. : await configuration.accessToken;
  364. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  365. }
  366. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  367. const query = new URLSearchParams(localVarUrlObj.search);
  368. for (const key in localVarQueryParameter) {
  369. query.set(key, localVarQueryParameter[key]);
  370. }
  371. for (const key in options.params) {
  372. query.set(key, options.params[key]);
  373. }
  374. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  375. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  376. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  377. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  378. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  379. return {
  380. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  381. options: localVarRequestOptions,
  382. };
  383. },
  384. }
  385. };
  386. /**
  387. * SysAppApi - functional programming interface
  388. * @export
  389. */
  390. export const SysAppApiFp = function(configuration?: Configuration) {
  391. return {
  392. /**
  393. *
  394. * @summary 增加应用 🔖
  395. * @param {AddSysAppInput} [body]
  396. * @param {*} [options] Override http request option.
  397. * @throws {RequiredError}
  398. */
  399. async apiSysAppAddPost(body?: AddSysAppInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultInt64>>> {
  400. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppAddPost(body, options);
  401. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  402. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  403. return axios.request(axiosRequestArgs);
  404. };
  405. },
  406. /**
  407. *
  408. * @summary 获取切换应用数据 🔖
  409. * @param {*} [options] Override http request option.
  410. * @throws {RequiredError}
  411. */
  412. async apiSysAppChangeAppGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
  413. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppChangeAppGet(options);
  414. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  415. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  416. return axios.request(axiosRequestArgs);
  417. };
  418. },
  419. /**
  420. *
  421. * @summary 切换应用 🔖
  422. * @param {ChangeAppInput} [body]
  423. * @param {*} [options] Override http request option.
  424. * @throws {RequiredError}
  425. */
  426. async apiSysAppChangeAppPost(body?: ChangeAppInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultLoginOutput>>> {
  427. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppChangeAppPost(body, options);
  428. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  429. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  430. return axios.request(axiosRequestArgs);
  431. };
  432. },
  433. /**
  434. *
  435. * @summary 删除应用 🔖
  436. * @param {BaseIdInput} [body]
  437. * @param {*} [options] Override http request option.
  438. * @throws {RequiredError}
  439. */
  440. async apiSysAppDeletePost(body?: BaseIdInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  441. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppDeletePost(body, options);
  442. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  443. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  444. return axios.request(axiosRequestArgs);
  445. };
  446. },
  447. /**
  448. *
  449. * @summary 获取授权菜单 🔖
  450. * @param {number} [id]
  451. * @param {*} [options] Override http request option.
  452. * @throws {RequiredError}
  453. */
  454. async apiSysAppGrantMenuGet(id?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListInt64>>> {
  455. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppGrantMenuGet(id, options);
  456. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  457. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  458. return axios.request(axiosRequestArgs);
  459. };
  460. },
  461. /**
  462. *
  463. * @summary 授权菜单 🔖
  464. * @param {UpdateAppMenuInput} [body]
  465. * @param {*} [options] Override http request option.
  466. * @throws {RequiredError}
  467. */
  468. async apiSysAppGrantMenuPost(body?: UpdateAppMenuInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  469. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppGrantMenuPost(body, options);
  470. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  471. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  472. return axios.request(axiosRequestArgs);
  473. };
  474. },
  475. /**
  476. *
  477. * @summary 分页查询应用 🔖
  478. * @param {BasePageInput} [body]
  479. * @param {*} [options] Override http request option.
  480. * @throws {RequiredError}
  481. */
  482. async apiSysAppPagePost(body?: BasePageInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysAppOutput>>> {
  483. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppPagePost(body, options);
  484. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  485. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  486. return axios.request(axiosRequestArgs);
  487. };
  488. },
  489. /**
  490. *
  491. * @summary 更新应用 🔖
  492. * @param {UpdateSysAppInput} [body]
  493. * @param {*} [options] Override http request option.
  494. * @throws {RequiredError}
  495. */
  496. async apiSysAppUpdatePost(body?: UpdateSysAppInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  497. const localVarAxiosArgs = await SysAppApiAxiosParamCreator(configuration).apiSysAppUpdatePost(body, options);
  498. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  499. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  500. return axios.request(axiosRequestArgs);
  501. };
  502. },
  503. }
  504. };
  505. /**
  506. * SysAppApi - factory interface
  507. * @export
  508. */
  509. export const SysAppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  510. return {
  511. /**
  512. *
  513. * @summary 增加应用 🔖
  514. * @param {AddSysAppInput} [body]
  515. * @param {*} [options] Override http request option.
  516. * @throws {RequiredError}
  517. */
  518. async apiSysAppAddPost(body?: AddSysAppInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt64>> {
  519. return SysAppApiFp(configuration).apiSysAppAddPost(body, options).then((request) => request(axios, basePath));
  520. },
  521. /**
  522. *
  523. * @summary 获取切换应用数据 🔖
  524. * @param {*} [options] Override http request option.
  525. * @throws {RequiredError}
  526. */
  527. async apiSysAppChangeAppGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
  528. return SysAppApiFp(configuration).apiSysAppChangeAppGet(options).then((request) => request(axios, basePath));
  529. },
  530. /**
  531. *
  532. * @summary 切换应用 🔖
  533. * @param {ChangeAppInput} [body]
  534. * @param {*} [options] Override http request option.
  535. * @throws {RequiredError}
  536. */
  537. async apiSysAppChangeAppPost(body?: ChangeAppInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultLoginOutput>> {
  538. return SysAppApiFp(configuration).apiSysAppChangeAppPost(body, options).then((request) => request(axios, basePath));
  539. },
  540. /**
  541. *
  542. * @summary 删除应用 🔖
  543. * @param {BaseIdInput} [body]
  544. * @param {*} [options] Override http request option.
  545. * @throws {RequiredError}
  546. */
  547. async apiSysAppDeletePost(body?: BaseIdInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  548. return SysAppApiFp(configuration).apiSysAppDeletePost(body, options).then((request) => request(axios, basePath));
  549. },
  550. /**
  551. *
  552. * @summary 获取授权菜单 🔖
  553. * @param {number} [id]
  554. * @param {*} [options] Override http request option.
  555. * @throws {RequiredError}
  556. */
  557. async apiSysAppGrantMenuGet(id?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListInt64>> {
  558. return SysAppApiFp(configuration).apiSysAppGrantMenuGet(id, options).then((request) => request(axios, basePath));
  559. },
  560. /**
  561. *
  562. * @summary 授权菜单 🔖
  563. * @param {UpdateAppMenuInput} [body]
  564. * @param {*} [options] Override http request option.
  565. * @throws {RequiredError}
  566. */
  567. async apiSysAppGrantMenuPost(body?: UpdateAppMenuInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  568. return SysAppApiFp(configuration).apiSysAppGrantMenuPost(body, options).then((request) => request(axios, basePath));
  569. },
  570. /**
  571. *
  572. * @summary 分页查询应用 🔖
  573. * @param {BasePageInput} [body]
  574. * @param {*} [options] Override http request option.
  575. * @throws {RequiredError}
  576. */
  577. async apiSysAppPagePost(body?: BasePageInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysAppOutput>> {
  578. return SysAppApiFp(configuration).apiSysAppPagePost(body, options).then((request) => request(axios, basePath));
  579. },
  580. /**
  581. *
  582. * @summary 更新应用 🔖
  583. * @param {UpdateSysAppInput} [body]
  584. * @param {*} [options] Override http request option.
  585. * @throws {RequiredError}
  586. */
  587. async apiSysAppUpdatePost(body?: UpdateSysAppInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  588. return SysAppApiFp(configuration).apiSysAppUpdatePost(body, options).then((request) => request(axios, basePath));
  589. },
  590. };
  591. };
  592. /**
  593. * SysAppApi - object-oriented interface
  594. * @export
  595. * @class SysAppApi
  596. * @extends {BaseAPI}
  597. */
  598. export class SysAppApi extends BaseAPI {
  599. /**
  600. *
  601. * @summary 增加应用 🔖
  602. * @param {AddSysAppInput} [body]
  603. * @param {*} [options] Override http request option.
  604. * @throws {RequiredError}
  605. * @memberof SysAppApi
  606. */
  607. public async apiSysAppAddPost(body?: AddSysAppInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt64>> {
  608. return SysAppApiFp(this.configuration).apiSysAppAddPost(body, options).then((request) => request(this.axios, this.basePath));
  609. }
  610. /**
  611. *
  612. * @summary 获取切换应用数据 🔖
  613. * @param {*} [options] Override http request option.
  614. * @throws {RequiredError}
  615. * @memberof SysAppApi
  616. */
  617. public async apiSysAppChangeAppGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
  618. return SysAppApiFp(this.configuration).apiSysAppChangeAppGet(options).then((request) => request(this.axios, this.basePath));
  619. }
  620. /**
  621. *
  622. * @summary 切换应用 🔖
  623. * @param {ChangeAppInput} [body]
  624. * @param {*} [options] Override http request option.
  625. * @throws {RequiredError}
  626. * @memberof SysAppApi
  627. */
  628. public async apiSysAppChangeAppPost(body?: ChangeAppInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultLoginOutput>> {
  629. return SysAppApiFp(this.configuration).apiSysAppChangeAppPost(body, options).then((request) => request(this.axios, this.basePath));
  630. }
  631. /**
  632. *
  633. * @summary 删除应用 🔖
  634. * @param {BaseIdInput} [body]
  635. * @param {*} [options] Override http request option.
  636. * @throws {RequiredError}
  637. * @memberof SysAppApi
  638. */
  639. public async apiSysAppDeletePost(body?: BaseIdInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  640. return SysAppApiFp(this.configuration).apiSysAppDeletePost(body, options).then((request) => request(this.axios, this.basePath));
  641. }
  642. /**
  643. *
  644. * @summary 获取授权菜单 🔖
  645. * @param {number} [id]
  646. * @param {*} [options] Override http request option.
  647. * @throws {RequiredError}
  648. * @memberof SysAppApi
  649. */
  650. public async apiSysAppGrantMenuGet(id?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListInt64>> {
  651. return SysAppApiFp(this.configuration).apiSysAppGrantMenuGet(id, options).then((request) => request(this.axios, this.basePath));
  652. }
  653. /**
  654. *
  655. * @summary 授权菜单 🔖
  656. * @param {UpdateAppMenuInput} [body]
  657. * @param {*} [options] Override http request option.
  658. * @throws {RequiredError}
  659. * @memberof SysAppApi
  660. */
  661. public async apiSysAppGrantMenuPost(body?: UpdateAppMenuInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  662. return SysAppApiFp(this.configuration).apiSysAppGrantMenuPost(body, options).then((request) => request(this.axios, this.basePath));
  663. }
  664. /**
  665. *
  666. * @summary 分页查询应用 🔖
  667. * @param {BasePageInput} [body]
  668. * @param {*} [options] Override http request option.
  669. * @throws {RequiredError}
  670. * @memberof SysAppApi
  671. */
  672. public async apiSysAppPagePost(body?: BasePageInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysAppOutput>> {
  673. return SysAppApiFp(this.configuration).apiSysAppPagePost(body, options).then((request) => request(this.axios, this.basePath));
  674. }
  675. /**
  676. *
  677. * @summary 更新应用 🔖
  678. * @param {UpdateSysAppInput} [body]
  679. * @param {*} [options] Override http request option.
  680. * @throws {RequiredError}
  681. * @memberof SysAppApi
  682. */
  683. public async apiSysAppUpdatePost(body?: UpdateSysAppInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  684. return SysAppApiFp(this.configuration).apiSysAppUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
  685. }
  686. }