sys-log-ex-api.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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 { AdminResultBoolean } from '../models';
  20. import { AdminResultSqlSugarPagedListSysLogEx } from '../models';
  21. /**
  22. * SysLogExApi - axios parameter creator
  23. * @export
  24. */
  25. export const SysLogExApiAxiosParamCreator = function (configuration?: Configuration) {
  26. return {
  27. /**
  28. *
  29. * @summary 清空异常日志
  30. * @param {*} [options] Override http request option.
  31. * @throws {RequiredError}
  32. */
  33. sysLogExClearPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  34. const localVarPath = `/sysLogEx/clear`;
  35. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  36. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  37. let baseOptions;
  38. if (configuration) {
  39. baseOptions = configuration.baseOptions;
  40. }
  41. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  42. const localVarHeaderParameter = {} as any;
  43. const localVarQueryParameter = {} as any;
  44. // authentication Bearer required
  45. const query = new URLSearchParams(localVarUrlObj.search);
  46. for (const key in localVarQueryParameter) {
  47. query.set(key, localVarQueryParameter[key]);
  48. }
  49. for (const key in options.params) {
  50. query.set(key, options.params[key]);
  51. }
  52. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  53. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  54. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  55. return {
  56. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  57. options: localVarRequestOptions,
  58. };
  59. },
  60. /**
  61. *
  62. * @summary 获取异常日志分页列表
  63. * @param {Date} [startTime] 开始时间
  64. * @param {Date} [endTime] 结束时间
  65. * @param {number} [page] 当前页码
  66. * @param {number} [pageSize] 页码容量
  67. * @param {string} [field] 排序字段
  68. * @param {string} [order] 排序方向
  69. * @param {string} [descStr] 降序排序
  70. * @param {*} [options] Override http request option.
  71. * @throws {RequiredError}
  72. */
  73. sysLogExPageGet: async (startTime?: Date, endTime?: Date, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  74. const localVarPath = `/sysLogEx/page`;
  75. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  76. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  77. let baseOptions;
  78. if (configuration) {
  79. baseOptions = configuration.baseOptions;
  80. }
  81. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  82. const localVarHeaderParameter = {} as any;
  83. const localVarQueryParameter = {} as any;
  84. // authentication Bearer required
  85. if (startTime !== undefined) {
  86. localVarQueryParameter['StartTime'] = (startTime as any instanceof Date) ?
  87. (startTime as any).toISOString() :
  88. startTime;
  89. }
  90. if (endTime !== undefined) {
  91. localVarQueryParameter['EndTime'] = (endTime as any instanceof Date) ?
  92. (endTime as any).toISOString() :
  93. endTime;
  94. }
  95. if (page !== undefined) {
  96. localVarQueryParameter['Page'] = page;
  97. }
  98. if (pageSize !== undefined) {
  99. localVarQueryParameter['PageSize'] = pageSize;
  100. }
  101. if (field !== undefined) {
  102. localVarQueryParameter['Field'] = field;
  103. }
  104. if (order !== undefined) {
  105. localVarQueryParameter['Order'] = order;
  106. }
  107. if (descStr !== undefined) {
  108. localVarQueryParameter['DescStr'] = descStr;
  109. }
  110. const query = new URLSearchParams(localVarUrlObj.search);
  111. for (const key in localVarQueryParameter) {
  112. query.set(key, localVarQueryParameter[key]);
  113. }
  114. for (const key in options.params) {
  115. query.set(key, options.params[key]);
  116. }
  117. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  118. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  119. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  120. return {
  121. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  122. options: localVarRequestOptions,
  123. };
  124. },
  125. }
  126. };
  127. /**
  128. * SysLogExApi - functional programming interface
  129. * @export
  130. */
  131. export const SysLogExApiFp = function(configuration?: Configuration) {
  132. return {
  133. /**
  134. *
  135. * @summary 清空异常日志
  136. * @param {*} [options] Override http request option.
  137. * @throws {RequiredError}
  138. */
  139. async sysLogExClearPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultBoolean>>> {
  140. const localVarAxiosArgs = await SysLogExApiAxiosParamCreator(configuration).sysLogExClearPost(options);
  141. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  142. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  143. return axios.request(axiosRequestArgs);
  144. };
  145. },
  146. /**
  147. *
  148. * @summary 获取异常日志分页列表
  149. * @param {Date} [startTime] 开始时间
  150. * @param {Date} [endTime] 结束时间
  151. * @param {number} [page] 当前页码
  152. * @param {number} [pageSize] 页码容量
  153. * @param {string} [field] 排序字段
  154. * @param {string} [order] 排序方向
  155. * @param {string} [descStr] 降序排序
  156. * @param {*} [options] Override http request option.
  157. * @throws {RequiredError}
  158. */
  159. async sysLogExPageGet(startTime?: Date, endTime?: Date, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLogEx>>> {
  160. const localVarAxiosArgs = await SysLogExApiAxiosParamCreator(configuration).sysLogExPageGet(startTime, endTime, page, pageSize, field, order, descStr, options);
  161. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  162. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  163. return axios.request(axiosRequestArgs);
  164. };
  165. },
  166. }
  167. };
  168. /**
  169. * SysLogExApi - factory interface
  170. * @export
  171. */
  172. export const SysLogExApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  173. return {
  174. /**
  175. *
  176. * @summary 清空异常日志
  177. * @param {*} [options] Override http request option.
  178. * @throws {RequiredError}
  179. */
  180. async sysLogExClearPost(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultBoolean>> {
  181. return SysLogExApiFp(configuration).sysLogExClearPost(options).then((request) => request(axios, basePath));
  182. },
  183. /**
  184. *
  185. * @summary 获取异常日志分页列表
  186. * @param {Date} [startTime] 开始时间
  187. * @param {Date} [endTime] 结束时间
  188. * @param {number} [page] 当前页码
  189. * @param {number} [pageSize] 页码容量
  190. * @param {string} [field] 排序字段
  191. * @param {string} [order] 排序方向
  192. * @param {string} [descStr] 降序排序
  193. * @param {*} [options] Override http request option.
  194. * @throws {RequiredError}
  195. */
  196. async sysLogExPageGet(startTime?: Date, endTime?: Date, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLogEx>> {
  197. return SysLogExApiFp(configuration).sysLogExPageGet(startTime, endTime, page, pageSize, field, order, descStr, options).then((request) => request(axios, basePath));
  198. },
  199. };
  200. };
  201. /**
  202. * SysLogExApi - object-oriented interface
  203. * @export
  204. * @class SysLogExApi
  205. * @extends {BaseAPI}
  206. */
  207. export class SysLogExApi extends BaseAPI {
  208. /**
  209. *
  210. * @summary 清空异常日志
  211. * @param {*} [options] Override http request option.
  212. * @throws {RequiredError}
  213. * @memberof SysLogExApi
  214. */
  215. public async sysLogExClearPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultBoolean>> {
  216. return SysLogExApiFp(this.configuration).sysLogExClearPost(options).then((request) => request(this.axios, this.basePath));
  217. }
  218. /**
  219. *
  220. * @summary 获取异常日志分页列表
  221. * @param {Date} [startTime] 开始时间
  222. * @param {Date} [endTime] 结束时间
  223. * @param {number} [page] 当前页码
  224. * @param {number} [pageSize] 页码容量
  225. * @param {string} [field] 排序字段
  226. * @param {string} [order] 排序方向
  227. * @param {string} [descStr] 降序排序
  228. * @param {*} [options] Override http request option.
  229. * @throws {RequiredError}
  230. * @memberof SysLogExApi
  231. */
  232. public async sysLogExPageGet(startTime?: Date, endTime?: Date, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLogEx>> {
  233. return SysLogExApiFp(this.configuration).sysLogExPageGet(startTime, endTime, page, pageSize, field, order, descStr, options).then((request) => request(this.axios, this.basePath));
  234. }
  235. }