sys-common-api.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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 { AdminResultIActionResult } from '../models';
  20. import { AdminResultListApiOutput } from '../models';
  21. import { AdminResultSmKeyPairOutput } from '../models';
  22. /**
  23. * SysCommonApi - axios parameter creator
  24. * @export
  25. */
  26. export const SysCommonApiAxiosParamCreator = function (configuration?: Configuration) {
  27. return {
  28. /**
  29. *
  30. * @summary 获取所有接口/动态API 🔖
  31. * @param {*} [options] Override http request option.
  32. * @throws {RequiredError}
  33. */
  34. apiSysCommonApiListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  35. const localVarPath = `/api/sysCommon/apiList`;
  36. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  37. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  38. let baseOptions;
  39. if (configuration) {
  40. baseOptions = configuration.baseOptions;
  41. }
  42. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  43. const localVarHeaderParameter = {} as any;
  44. const localVarQueryParameter = {} as any;
  45. // authentication Bearer required
  46. // http bearer authentication required
  47. if (configuration && configuration.accessToken) {
  48. const accessToken = typeof configuration.accessToken === 'function'
  49. ? await configuration.accessToken()
  50. : await configuration.accessToken;
  51. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  52. }
  53. const query = new URLSearchParams(localVarUrlObj.search);
  54. for (const key in localVarQueryParameter) {
  55. query.set(key, localVarQueryParameter[key]);
  56. }
  57. for (const key in options.params) {
  58. query.set(key, options.params[key]);
  59. }
  60. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  61. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  62. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  63. return {
  64. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  65. options: localVarRequestOptions,
  66. };
  67. },
  68. /**
  69. *
  70. * @summary 下载标记错误的临时Excel(全局)
  71. * @param {string} [fileName]
  72. * @param {*} [options] Override http request option.
  73. * @throws {RequiredError}
  74. */
  75. apiSysCommonDownloadErrorExcelTempPost: async (fileName?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  76. const localVarPath = `/api/sysCommon/downloadErrorExcelTemp`;
  77. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  78. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  79. let baseOptions;
  80. if (configuration) {
  81. baseOptions = configuration.baseOptions;
  82. }
  83. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  84. const localVarHeaderParameter = {} as any;
  85. const localVarQueryParameter = {} as any;
  86. // authentication Bearer required
  87. // http bearer authentication required
  88. if (configuration && configuration.accessToken) {
  89. const accessToken = typeof configuration.accessToken === 'function'
  90. ? await configuration.accessToken()
  91. : await configuration.accessToken;
  92. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  93. }
  94. if (fileName !== undefined) {
  95. localVarQueryParameter['fileName'] = fileName;
  96. }
  97. const query = new URLSearchParams(localVarUrlObj.search);
  98. for (const key in localVarQueryParameter) {
  99. query.set(key, localVarQueryParameter[key]);
  100. }
  101. for (const key in options.params) {
  102. query.set(key, options.params[key]);
  103. }
  104. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  105. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  106. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  107. return {
  108. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  109. options: localVarRequestOptions,
  110. };
  111. },
  112. /**
  113. *
  114. * @summary 获取国密公钥私钥对 🏆
  115. * @param {*} [options] Override http request option.
  116. * @throws {RequiredError}
  117. */
  118. apiSysCommonSmKeyPairGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  119. const localVarPath = `/api/sysCommon/smKeyPair`;
  120. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  121. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  122. let baseOptions;
  123. if (configuration) {
  124. baseOptions = configuration.baseOptions;
  125. }
  126. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  127. const localVarHeaderParameter = {} as any;
  128. const localVarQueryParameter = {} as any;
  129. // authentication Bearer required
  130. // http bearer authentication required
  131. if (configuration && configuration.accessToken) {
  132. const accessToken = typeof configuration.accessToken === 'function'
  133. ? await configuration.accessToken()
  134. : await configuration.accessToken;
  135. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  136. }
  137. const query = new URLSearchParams(localVarUrlObj.search);
  138. for (const key in localVarQueryParameter) {
  139. query.set(key, localVarQueryParameter[key]);
  140. }
  141. for (const key in options.params) {
  142. query.set(key, options.params[key]);
  143. }
  144. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  145. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  146. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  147. return {
  148. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  149. options: localVarRequestOptions,
  150. };
  151. },
  152. }
  153. };
  154. /**
  155. * SysCommonApi - functional programming interface
  156. * @export
  157. */
  158. export const SysCommonApiFp = function(configuration?: Configuration) {
  159. return {
  160. /**
  161. *
  162. * @summary 获取所有接口/动态API 🔖
  163. * @param {*} [options] Override http request option.
  164. * @throws {RequiredError}
  165. */
  166. async apiSysCommonApiListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListApiOutput>>> {
  167. const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonApiListGet(options);
  168. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  169. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  170. return axios.request(axiosRequestArgs);
  171. };
  172. },
  173. /**
  174. *
  175. * @summary 下载标记错误的临时Excel(全局)
  176. * @param {string} [fileName]
  177. * @param {*} [options] Override http request option.
  178. * @throws {RequiredError}
  179. */
  180. async apiSysCommonDownloadErrorExcelTempPost(fileName?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultIActionResult>>> {
  181. const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonDownloadErrorExcelTempPost(fileName, options);
  182. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  183. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  184. return axios.request(axiosRequestArgs);
  185. };
  186. },
  187. /**
  188. *
  189. * @summary 获取国密公钥私钥对 🏆
  190. * @param {*} [options] Override http request option.
  191. * @throws {RequiredError}
  192. */
  193. async apiSysCommonSmKeyPairGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSmKeyPairOutput>>> {
  194. const localVarAxiosArgs = await SysCommonApiAxiosParamCreator(configuration).apiSysCommonSmKeyPairGet(options);
  195. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  196. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  197. return axios.request(axiosRequestArgs);
  198. };
  199. },
  200. }
  201. };
  202. /**
  203. * SysCommonApi - factory interface
  204. * @export
  205. */
  206. export const SysCommonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  207. return {
  208. /**
  209. *
  210. * @summary 获取所有接口/动态API 🔖
  211. * @param {*} [options] Override http request option.
  212. * @throws {RequiredError}
  213. */
  214. async apiSysCommonApiListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListApiOutput>> {
  215. return SysCommonApiFp(configuration).apiSysCommonApiListGet(options).then((request) => request(axios, basePath));
  216. },
  217. /**
  218. *
  219. * @summary 下载标记错误的临时Excel(全局)
  220. * @param {string} [fileName]
  221. * @param {*} [options] Override http request option.
  222. * @throws {RequiredError}
  223. */
  224. async apiSysCommonDownloadErrorExcelTempPost(fileName?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultIActionResult>> {
  225. return SysCommonApiFp(configuration).apiSysCommonDownloadErrorExcelTempPost(fileName, options).then((request) => request(axios, basePath));
  226. },
  227. /**
  228. *
  229. * @summary 获取国密公钥私钥对 🏆
  230. * @param {*} [options] Override http request option.
  231. * @throws {RequiredError}
  232. */
  233. async apiSysCommonSmKeyPairGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSmKeyPairOutput>> {
  234. return SysCommonApiFp(configuration).apiSysCommonSmKeyPairGet(options).then((request) => request(axios, basePath));
  235. },
  236. };
  237. };
  238. /**
  239. * SysCommonApi - object-oriented interface
  240. * @export
  241. * @class SysCommonApi
  242. * @extends {BaseAPI}
  243. */
  244. export class SysCommonApi extends BaseAPI {
  245. /**
  246. *
  247. * @summary 获取所有接口/动态API 🔖
  248. * @param {*} [options] Override http request option.
  249. * @throws {RequiredError}
  250. * @memberof SysCommonApi
  251. */
  252. public async apiSysCommonApiListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListApiOutput>> {
  253. return SysCommonApiFp(this.configuration).apiSysCommonApiListGet(options).then((request) => request(this.axios, this.basePath));
  254. }
  255. /**
  256. *
  257. * @summary 下载标记错误的临时Excel(全局)
  258. * @param {string} [fileName]
  259. * @param {*} [options] Override http request option.
  260. * @throws {RequiredError}
  261. * @memberof SysCommonApi
  262. */
  263. public async apiSysCommonDownloadErrorExcelTempPost(fileName?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultIActionResult>> {
  264. return SysCommonApiFp(this.configuration).apiSysCommonDownloadErrorExcelTempPost(fileName, options).then((request) => request(this.axios, this.basePath));
  265. }
  266. /**
  267. *
  268. * @summary 获取国密公钥私钥对 🏆
  269. * @param {*} [options] Override http request option.
  270. * @throws {RequiredError}
  271. * @memberof SysCommonApi
  272. */
  273. public async apiSysCommonSmKeyPairGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSmKeyPairOutput>> {
  274. return SysCommonApiFp(this.configuration).apiSysCommonSmKeyPairGet(options).then((request) => request(this.axios, this.basePath));
  275. }
  276. }