sys-menu-api.ts 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Admin.NET
  5. * 让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。<br/><a href='https://gitee.com/zuohuaijun/Admin.NET/'>https://gitee.com/zuohuaijun/Admin.NET</a>
  6. *
  7. * OpenAPI spec version: 1.0.0
  8. * Contact: 515096995@qq.com
  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 { AddMenuInput } from '../models';
  20. import { AdminResultListMenuOutput } from '../models';
  21. import { AdminResultListString } from '../models';
  22. import { AdminResultListSysMenu } from '../models';
  23. import { DeleteMenuInput } from '../models';
  24. import { MenuTypeEnum } from '../models';
  25. import { UpdateMenuInput } from '../models';
  26. /**
  27. * SysMenuApi - axios parameter creator
  28. * @export
  29. */
  30. export const SysMenuApiAxiosParamCreator = function (configuration?: Configuration) {
  31. return {
  32. /**
  33. *
  34. * @summary 获取登录菜单树
  35. * @param {*} [options] Override http request option.
  36. * @throws {RequiredError}
  37. */
  38. getMenuListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  39. const localVarPath = `/getMenuList`;
  40. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  41. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  42. let baseOptions;
  43. if (configuration) {
  44. baseOptions = configuration.baseOptions;
  45. }
  46. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  47. const localVarHeaderParameter = {} as any;
  48. const localVarQueryParameter = {} as any;
  49. // authentication Bearer required
  50. const query = new URLSearchParams(localVarUrlObj.search);
  51. for (const key in localVarQueryParameter) {
  52. query.set(key, localVarQueryParameter[key]);
  53. }
  54. for (const key in options.params) {
  55. query.set(key, options.params[key]);
  56. }
  57. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  58. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  59. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  60. return {
  61. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  62. options: localVarRequestOptions,
  63. };
  64. },
  65. /**
  66. *
  67. * @summary 获取按钮权限列表(登录)
  68. * @param {*} [options] Override http request option.
  69. * @throws {RequiredError}
  70. */
  71. getPermCodeGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  72. const localVarPath = `/getPermCode`;
  73. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  74. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  75. let baseOptions;
  76. if (configuration) {
  77. baseOptions = configuration.baseOptions;
  78. }
  79. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  80. const localVarHeaderParameter = {} as any;
  81. const localVarQueryParameter = {} as any;
  82. // authentication Bearer required
  83. const query = new URLSearchParams(localVarUrlObj.search);
  84. for (const key in localVarQueryParameter) {
  85. query.set(key, localVarQueryParameter[key]);
  86. }
  87. for (const key in options.params) {
  88. query.set(key, options.params[key]);
  89. }
  90. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  91. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  92. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  93. return {
  94. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  95. options: localVarRequestOptions,
  96. };
  97. },
  98. /**
  99. *
  100. * @summary 增加菜单
  101. * @param {AddMenuInput} [body]
  102. * @param {*} [options] Override http request option.
  103. * @throws {RequiredError}
  104. */
  105. sysMenuAddPost: async (body?: AddMenuInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  106. const localVarPath = `/sysMenu/add`;
  107. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  108. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  109. let baseOptions;
  110. if (configuration) {
  111. baseOptions = configuration.baseOptions;
  112. }
  113. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  114. const localVarHeaderParameter = {} as any;
  115. const localVarQueryParameter = {} as any;
  116. // authentication Bearer required
  117. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  118. const query = new URLSearchParams(localVarUrlObj.search);
  119. for (const key in localVarQueryParameter) {
  120. query.set(key, localVarQueryParameter[key]);
  121. }
  122. for (const key in options.params) {
  123. query.set(key, options.params[key]);
  124. }
  125. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  126. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  127. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  128. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  129. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  130. return {
  131. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  132. options: localVarRequestOptions,
  133. };
  134. },
  135. /**
  136. *
  137. * @summary 删除菜单
  138. * @param {DeleteMenuInput} [body]
  139. * @param {*} [options] Override http request option.
  140. * @throws {RequiredError}
  141. */
  142. sysMenuDeletePost: async (body?: DeleteMenuInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  143. const localVarPath = `/sysMenu/delete`;
  144. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  145. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  146. let baseOptions;
  147. if (configuration) {
  148. baseOptions = configuration.baseOptions;
  149. }
  150. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  151. const localVarHeaderParameter = {} as any;
  152. const localVarQueryParameter = {} as any;
  153. // authentication Bearer required
  154. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  155. const query = new URLSearchParams(localVarUrlObj.search);
  156. for (const key in localVarQueryParameter) {
  157. query.set(key, localVarQueryParameter[key]);
  158. }
  159. for (const key in options.params) {
  160. query.set(key, options.params[key]);
  161. }
  162. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  163. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  164. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  165. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  166. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  167. return {
  168. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  169. options: localVarRequestOptions,
  170. };
  171. },
  172. /**
  173. *
  174. * @summary 获取菜单列表
  175. * @param {string} [title] 标题
  176. * @param {MenuTypeEnum} [type] 菜单类型(1目录 2菜单 3按钮)
  177. * @param {*} [options] Override http request option.
  178. * @throws {RequiredError}
  179. */
  180. sysMenuListGet: async (title?: string, type?: MenuTypeEnum, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  181. const localVarPath = `/sysMenu/list`;
  182. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  183. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  184. let baseOptions;
  185. if (configuration) {
  186. baseOptions = configuration.baseOptions;
  187. }
  188. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  189. const localVarHeaderParameter = {} as any;
  190. const localVarQueryParameter = {} as any;
  191. // authentication Bearer required
  192. if (title !== undefined) {
  193. localVarQueryParameter['Title'] = title;
  194. }
  195. if (type !== undefined) {
  196. localVarQueryParameter['Type'] = type;
  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 {UpdateMenuInput} [body]
  217. * @param {*} [options] Override http request option.
  218. * @throws {RequiredError}
  219. */
  220. sysMenuUpdatePost: async (body?: UpdateMenuInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  221. const localVarPath = `/sysMenu/update`;
  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. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  233. const query = new URLSearchParams(localVarUrlObj.search);
  234. for (const key in localVarQueryParameter) {
  235. query.set(key, localVarQueryParameter[key]);
  236. }
  237. for (const key in options.params) {
  238. query.set(key, options.params[key]);
  239. }
  240. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  241. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  242. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  243. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  244. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  245. return {
  246. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  247. options: localVarRequestOptions,
  248. };
  249. },
  250. }
  251. };
  252. /**
  253. * SysMenuApi - functional programming interface
  254. * @export
  255. */
  256. export const SysMenuApiFp = function(configuration?: Configuration) {
  257. return {
  258. /**
  259. *
  260. * @summary 获取登录菜单树
  261. * @param {*} [options] Override http request option.
  262. * @throws {RequiredError}
  263. */
  264. async getMenuListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListMenuOutput>>> {
  265. const localVarAxiosArgs = await SysMenuApiAxiosParamCreator(configuration).getMenuListGet(options);
  266. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  267. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  268. return axios.request(axiosRequestArgs);
  269. };
  270. },
  271. /**
  272. *
  273. * @summary 获取按钮权限列表(登录)
  274. * @param {*} [options] Override http request option.
  275. * @throws {RequiredError}
  276. */
  277. async getPermCodeGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListString>>> {
  278. const localVarAxiosArgs = await SysMenuApiAxiosParamCreator(configuration).getPermCodeGet(options);
  279. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  280. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  281. return axios.request(axiosRequestArgs);
  282. };
  283. },
  284. /**
  285. *
  286. * @summary 增加菜单
  287. * @param {AddMenuInput} [body]
  288. * @param {*} [options] Override http request option.
  289. * @throws {RequiredError}
  290. */
  291. async sysMenuAddPost(body?: AddMenuInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  292. const localVarAxiosArgs = await SysMenuApiAxiosParamCreator(configuration).sysMenuAddPost(body, options);
  293. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  294. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  295. return axios.request(axiosRequestArgs);
  296. };
  297. },
  298. /**
  299. *
  300. * @summary 删除菜单
  301. * @param {DeleteMenuInput} [body]
  302. * @param {*} [options] Override http request option.
  303. * @throws {RequiredError}
  304. */
  305. async sysMenuDeletePost(body?: DeleteMenuInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  306. const localVarAxiosArgs = await SysMenuApiAxiosParamCreator(configuration).sysMenuDeletePost(body, options);
  307. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  308. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  309. return axios.request(axiosRequestArgs);
  310. };
  311. },
  312. /**
  313. *
  314. * @summary 获取菜单列表
  315. * @param {string} [title] 标题
  316. * @param {MenuTypeEnum} [type] 菜单类型(1目录 2菜单 3按钮)
  317. * @param {*} [options] Override http request option.
  318. * @throws {RequiredError}
  319. */
  320. async sysMenuListGet(title?: string, type?: MenuTypeEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysMenu>>> {
  321. const localVarAxiosArgs = await SysMenuApiAxiosParamCreator(configuration).sysMenuListGet(title, type, options);
  322. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  323. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  324. return axios.request(axiosRequestArgs);
  325. };
  326. },
  327. /**
  328. *
  329. * @summary 更新菜单
  330. * @param {UpdateMenuInput} [body]
  331. * @param {*} [options] Override http request option.
  332. * @throws {RequiredError}
  333. */
  334. async sysMenuUpdatePost(body?: UpdateMenuInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  335. const localVarAxiosArgs = await SysMenuApiAxiosParamCreator(configuration).sysMenuUpdatePost(body, options);
  336. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  337. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  338. return axios.request(axiosRequestArgs);
  339. };
  340. },
  341. }
  342. };
  343. /**
  344. * SysMenuApi - factory interface
  345. * @export
  346. */
  347. export const SysMenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  348. return {
  349. /**
  350. *
  351. * @summary 获取登录菜单树
  352. * @param {*} [options] Override http request option.
  353. * @throws {RequiredError}
  354. */
  355. async getMenuListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListMenuOutput>> {
  356. return SysMenuApiFp(configuration).getMenuListGet(options).then((request) => request(axios, basePath));
  357. },
  358. /**
  359. *
  360. * @summary 获取按钮权限列表(登录)
  361. * @param {*} [options] Override http request option.
  362. * @throws {RequiredError}
  363. */
  364. async getPermCodeGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListString>> {
  365. return SysMenuApiFp(configuration).getPermCodeGet(options).then((request) => request(axios, basePath));
  366. },
  367. /**
  368. *
  369. * @summary 增加菜单
  370. * @param {AddMenuInput} [body]
  371. * @param {*} [options] Override http request option.
  372. * @throws {RequiredError}
  373. */
  374. async sysMenuAddPost(body?: AddMenuInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  375. return SysMenuApiFp(configuration).sysMenuAddPost(body, options).then((request) => request(axios, basePath));
  376. },
  377. /**
  378. *
  379. * @summary 删除菜单
  380. * @param {DeleteMenuInput} [body]
  381. * @param {*} [options] Override http request option.
  382. * @throws {RequiredError}
  383. */
  384. async sysMenuDeletePost(body?: DeleteMenuInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  385. return SysMenuApiFp(configuration).sysMenuDeletePost(body, options).then((request) => request(axios, basePath));
  386. },
  387. /**
  388. *
  389. * @summary 获取菜单列表
  390. * @param {string} [title] 标题
  391. * @param {MenuTypeEnum} [type] 菜单类型(1目录 2菜单 3按钮)
  392. * @param {*} [options] Override http request option.
  393. * @throws {RequiredError}
  394. */
  395. async sysMenuListGet(title?: string, type?: MenuTypeEnum, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysMenu>> {
  396. return SysMenuApiFp(configuration).sysMenuListGet(title, type, options).then((request) => request(axios, basePath));
  397. },
  398. /**
  399. *
  400. * @summary 更新菜单
  401. * @param {UpdateMenuInput} [body]
  402. * @param {*} [options] Override http request option.
  403. * @throws {RequiredError}
  404. */
  405. async sysMenuUpdatePost(body?: UpdateMenuInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  406. return SysMenuApiFp(configuration).sysMenuUpdatePost(body, options).then((request) => request(axios, basePath));
  407. },
  408. };
  409. };
  410. /**
  411. * SysMenuApi - object-oriented interface
  412. * @export
  413. * @class SysMenuApi
  414. * @extends {BaseAPI}
  415. */
  416. export class SysMenuApi extends BaseAPI {
  417. /**
  418. *
  419. * @summary 获取登录菜单树
  420. * @param {*} [options] Override http request option.
  421. * @throws {RequiredError}
  422. * @memberof SysMenuApi
  423. */
  424. public async getMenuListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListMenuOutput>> {
  425. return SysMenuApiFp(this.configuration).getMenuListGet(options).then((request) => request(this.axios, this.basePath));
  426. }
  427. /**
  428. *
  429. * @summary 获取按钮权限列表(登录)
  430. * @param {*} [options] Override http request option.
  431. * @throws {RequiredError}
  432. * @memberof SysMenuApi
  433. */
  434. public async getPermCodeGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListString>> {
  435. return SysMenuApiFp(this.configuration).getPermCodeGet(options).then((request) => request(this.axios, this.basePath));
  436. }
  437. /**
  438. *
  439. * @summary 增加菜单
  440. * @param {AddMenuInput} [body]
  441. * @param {*} [options] Override http request option.
  442. * @throws {RequiredError}
  443. * @memberof SysMenuApi
  444. */
  445. public async sysMenuAddPost(body?: AddMenuInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  446. return SysMenuApiFp(this.configuration).sysMenuAddPost(body, options).then((request) => request(this.axios, this.basePath));
  447. }
  448. /**
  449. *
  450. * @summary 删除菜单
  451. * @param {DeleteMenuInput} [body]
  452. * @param {*} [options] Override http request option.
  453. * @throws {RequiredError}
  454. * @memberof SysMenuApi
  455. */
  456. public async sysMenuDeletePost(body?: DeleteMenuInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  457. return SysMenuApiFp(this.configuration).sysMenuDeletePost(body, options).then((request) => request(this.axios, this.basePath));
  458. }
  459. /**
  460. *
  461. * @summary 获取菜单列表
  462. * @param {string} [title] 标题
  463. * @param {MenuTypeEnum} [type] 菜单类型(1目录 2菜单 3按钮)
  464. * @param {*} [options] Override http request option.
  465. * @throws {RequiredError}
  466. * @memberof SysMenuApi
  467. */
  468. public async sysMenuListGet(title?: string, type?: MenuTypeEnum, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysMenu>> {
  469. return SysMenuApiFp(this.configuration).sysMenuListGet(title, type, options).then((request) => request(this.axios, this.basePath));
  470. }
  471. /**
  472. *
  473. * @summary 更新菜单
  474. * @param {UpdateMenuInput} [body]
  475. * @param {*} [options] Override http request option.
  476. * @throws {RequiredError}
  477. * @memberof SysMenuApi
  478. */
  479. public async sysMenuUpdatePost(body?: UpdateMenuInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  480. return SysMenuApiFp(this.configuration).sysMenuUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
  481. }
  482. }