sys-job-api.ts 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * 所有接口
  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 { AddJobDetailInput } from '../models';
  20. import { AddJobTriggerInput } from '../models';
  21. import { AdminResultListSysJobCluster } from '../models';
  22. import { AdminResultListSysJobTrigger } from '../models';
  23. import { AdminResultSqlSugarPagedListJobOutput } from '../models';
  24. import { DeleteJobDetailInput } from '../models';
  25. import { DeleteJobTriggerInput } from '../models';
  26. import { JobDetailInput } from '../models';
  27. import { JobTriggerInput } from '../models';
  28. import { PageJobInput } from '../models';
  29. import { UpdateJobDetailInput } from '../models';
  30. import { UpdateJobTriggerInput } from '../models';
  31. /**
  32. * SysJobApi - axios parameter creator
  33. * @export
  34. */
  35. export const SysJobApiAxiosParamCreator = function (configuration?: Configuration) {
  36. return {
  37. /**
  38. *
  39. * @summary 添加作业
  40. * @param {AddJobDetailInput} [body]
  41. * @param {*} [options] Override http request option.
  42. * @throws {RequiredError}
  43. */
  44. apiSysJobAddJobDetailPost: async (body?: AddJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  45. const localVarPath = `/api/sysJob/addJobDetail`;
  46. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  47. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  48. let baseOptions;
  49. if (configuration) {
  50. baseOptions = configuration.baseOptions;
  51. }
  52. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  53. const localVarHeaderParameter = {} as any;
  54. const localVarQueryParameter = {} as any;
  55. // authentication Bearer required
  56. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  57. const query = new URLSearchParams(localVarUrlObj.search);
  58. for (const key in localVarQueryParameter) {
  59. query.set(key, localVarQueryParameter[key]);
  60. }
  61. for (const key in options.params) {
  62. query.set(key, options.params[key]);
  63. }
  64. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  65. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  66. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  67. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  68. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  69. return {
  70. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  71. options: localVarRequestOptions,
  72. };
  73. },
  74. /**
  75. *
  76. * @summary 添加触发器
  77. * @param {AddJobTriggerInput} [body]
  78. * @param {*} [options] Override http request option.
  79. * @throws {RequiredError}
  80. */
  81. apiSysJobAddJobTriggerPost: async (body?: AddJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  82. const localVarPath = `/api/sysJob/addJobTrigger`;
  83. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  84. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  85. let baseOptions;
  86. if (configuration) {
  87. baseOptions = configuration.baseOptions;
  88. }
  89. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  90. const localVarHeaderParameter = {} as any;
  91. const localVarQueryParameter = {} as any;
  92. // authentication Bearer required
  93. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  94. const query = new URLSearchParams(localVarUrlObj.search);
  95. for (const key in localVarQueryParameter) {
  96. query.set(key, localVarQueryParameter[key]);
  97. }
  98. for (const key in options.params) {
  99. query.set(key, options.params[key]);
  100. }
  101. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  102. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  103. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  104. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  105. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  106. return {
  107. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  108. options: localVarRequestOptions,
  109. };
  110. },
  111. /**
  112. *
  113. * @summary 强制唤醒作业调度器
  114. * @param {*} [options] Override http request option.
  115. * @throws {RequiredError}
  116. */
  117. apiSysJobCancelSleepPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  118. const localVarPath = `/api/sysJob/cancelSleep`;
  119. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  120. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  121. let baseOptions;
  122. if (configuration) {
  123. baseOptions = configuration.baseOptions;
  124. }
  125. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  126. const localVarHeaderParameter = {} as any;
  127. const localVarQueryParameter = {} as any;
  128. // authentication Bearer required
  129. const query = new URLSearchParams(localVarUrlObj.search);
  130. for (const key in localVarQueryParameter) {
  131. query.set(key, localVarQueryParameter[key]);
  132. }
  133. for (const key in options.params) {
  134. query.set(key, options.params[key]);
  135. }
  136. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  137. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  138. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  139. return {
  140. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  141. options: localVarRequestOptions,
  142. };
  143. },
  144. /**
  145. *
  146. * @summary 删除作业
  147. * @param {DeleteJobDetailInput} [body]
  148. * @param {*} [options] Override http request option.
  149. * @throws {RequiredError}
  150. */
  151. apiSysJobDeleteJobDetailPost: async (body?: DeleteJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  152. const localVarPath = `/api/sysJob/deleteJobDetail`;
  153. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  154. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  155. let baseOptions;
  156. if (configuration) {
  157. baseOptions = configuration.baseOptions;
  158. }
  159. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  160. const localVarHeaderParameter = {} as any;
  161. const localVarQueryParameter = {} as any;
  162. // authentication Bearer required
  163. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  164. const query = new URLSearchParams(localVarUrlObj.search);
  165. for (const key in localVarQueryParameter) {
  166. query.set(key, localVarQueryParameter[key]);
  167. }
  168. for (const key in options.params) {
  169. query.set(key, options.params[key]);
  170. }
  171. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  172. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  173. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  174. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  175. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  176. return {
  177. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  178. options: localVarRequestOptions,
  179. };
  180. },
  181. /**
  182. *
  183. * @summary 删除触发器
  184. * @param {DeleteJobTriggerInput} [body]
  185. * @param {*} [options] Override http request option.
  186. * @throws {RequiredError}
  187. */
  188. apiSysJobDeleteJobTriggerPost: async (body?: DeleteJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  189. const localVarPath = `/api/sysJob/deleteJobTrigger`;
  190. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  191. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  192. let baseOptions;
  193. if (configuration) {
  194. baseOptions = configuration.baseOptions;
  195. }
  196. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  197. const localVarHeaderParameter = {} as any;
  198. const localVarQueryParameter = {} as any;
  199. // authentication Bearer required
  200. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  201. const query = new URLSearchParams(localVarUrlObj.search);
  202. for (const key in localVarQueryParameter) {
  203. query.set(key, localVarQueryParameter[key]);
  204. }
  205. for (const key in options.params) {
  206. query.set(key, options.params[key]);
  207. }
  208. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  209. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  210. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  211. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  212. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  213. return {
  214. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  215. options: localVarRequestOptions,
  216. };
  217. },
  218. /**
  219. *
  220. * @summary 获取集群列表
  221. * @param {*} [options] Override http request option.
  222. * @throws {RequiredError}
  223. */
  224. apiSysJobJobClusterListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  225. const localVarPath = `/api/sysJob/jobClusterList`;
  226. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  227. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  228. let baseOptions;
  229. if (configuration) {
  230. baseOptions = configuration.baseOptions;
  231. }
  232. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  233. const localVarHeaderParameter = {} as any;
  234. const localVarQueryParameter = {} as any;
  235. // authentication Bearer required
  236. const query = new URLSearchParams(localVarUrlObj.search);
  237. for (const key in localVarQueryParameter) {
  238. query.set(key, localVarQueryParameter[key]);
  239. }
  240. for (const key in options.params) {
  241. query.set(key, options.params[key]);
  242. }
  243. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  244. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  245. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  246. return {
  247. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  248. options: localVarRequestOptions,
  249. };
  250. },
  251. /**
  252. *
  253. * @summary 获取触发器列表
  254. * @param {string} [jobId] 作业Id
  255. * @param {*} [options] Override http request option.
  256. * @throws {RequiredError}
  257. */
  258. apiSysJobJobTriggerListGet: async (jobId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  259. const localVarPath = `/api/sysJob/jobTriggerList`;
  260. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  261. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  262. let baseOptions;
  263. if (configuration) {
  264. baseOptions = configuration.baseOptions;
  265. }
  266. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  267. const localVarHeaderParameter = {} as any;
  268. const localVarQueryParameter = {} as any;
  269. // authentication Bearer required
  270. if (jobId !== undefined) {
  271. localVarQueryParameter['JobId'] = jobId;
  272. }
  273. const query = new URLSearchParams(localVarUrlObj.search);
  274. for (const key in localVarQueryParameter) {
  275. query.set(key, localVarQueryParameter[key]);
  276. }
  277. for (const key in options.params) {
  278. query.set(key, options.params[key]);
  279. }
  280. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  281. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  282. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  283. return {
  284. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  285. options: localVarRequestOptions,
  286. };
  287. },
  288. /**
  289. *
  290. * @summary 获取作业分页列表
  291. * @param {PageJobInput} [body]
  292. * @param {*} [options] Override http request option.
  293. * @throws {RequiredError}
  294. */
  295. apiSysJobPageJobDetailPost: async (body?: PageJobInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  296. const localVarPath = `/api/sysJob/pageJobDetail`;
  297. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  298. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  299. let baseOptions;
  300. if (configuration) {
  301. baseOptions = configuration.baseOptions;
  302. }
  303. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  304. const localVarHeaderParameter = {} as any;
  305. const localVarQueryParameter = {} as any;
  306. // authentication Bearer required
  307. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  308. const query = new URLSearchParams(localVarUrlObj.search);
  309. for (const key in localVarQueryParameter) {
  310. query.set(key, localVarQueryParameter[key]);
  311. }
  312. for (const key in options.params) {
  313. query.set(key, options.params[key]);
  314. }
  315. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  316. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  317. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  318. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  319. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  320. return {
  321. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  322. options: localVarRequestOptions,
  323. };
  324. },
  325. /**
  326. *
  327. * @summary 暂停所有作业
  328. * @param {*} [options] Override http request option.
  329. * @throws {RequiredError}
  330. */
  331. apiSysJobPauseAllJobPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  332. const localVarPath = `/api/sysJob/pauseAllJob`;
  333. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  334. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  335. let baseOptions;
  336. if (configuration) {
  337. baseOptions = configuration.baseOptions;
  338. }
  339. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  340. const localVarHeaderParameter = {} as any;
  341. const localVarQueryParameter = {} as any;
  342. // authentication Bearer required
  343. const query = new URLSearchParams(localVarUrlObj.search);
  344. for (const key in localVarQueryParameter) {
  345. query.set(key, localVarQueryParameter[key]);
  346. }
  347. for (const key in options.params) {
  348. query.set(key, options.params[key]);
  349. }
  350. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  351. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  352. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  353. return {
  354. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  355. options: localVarRequestOptions,
  356. };
  357. },
  358. /**
  359. *
  360. * @summary 暂停作业
  361. * @param {JobDetailInput} [body]
  362. * @param {*} [options] Override http request option.
  363. * @throws {RequiredError}
  364. */
  365. apiSysJobPauseJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  366. const localVarPath = `/api/sysJob/pauseJob`;
  367. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  368. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  369. let baseOptions;
  370. if (configuration) {
  371. baseOptions = configuration.baseOptions;
  372. }
  373. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  374. const localVarHeaderParameter = {} as any;
  375. const localVarQueryParameter = {} as any;
  376. // authentication Bearer required
  377. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  378. const query = new URLSearchParams(localVarUrlObj.search);
  379. for (const key in localVarQueryParameter) {
  380. query.set(key, localVarQueryParameter[key]);
  381. }
  382. for (const key in options.params) {
  383. query.set(key, options.params[key]);
  384. }
  385. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  386. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  387. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  388. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  389. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  390. return {
  391. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  392. options: localVarRequestOptions,
  393. };
  394. },
  395. /**
  396. *
  397. * @summary 暂停触发器
  398. * @param {JobTriggerInput} [body]
  399. * @param {*} [options] Override http request option.
  400. * @throws {RequiredError}
  401. */
  402. apiSysJobPauseTriggerPost: async (body?: JobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  403. const localVarPath = `/api/sysJob/pauseTrigger`;
  404. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  405. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  406. let baseOptions;
  407. if (configuration) {
  408. baseOptions = configuration.baseOptions;
  409. }
  410. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  411. const localVarHeaderParameter = {} as any;
  412. const localVarQueryParameter = {} as any;
  413. // authentication Bearer required
  414. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  415. const query = new URLSearchParams(localVarUrlObj.search);
  416. for (const key in localVarQueryParameter) {
  417. query.set(key, localVarQueryParameter[key]);
  418. }
  419. for (const key in options.params) {
  420. query.set(key, options.params[key]);
  421. }
  422. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  423. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  424. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  425. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  426. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  427. return {
  428. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  429. options: localVarRequestOptions,
  430. };
  431. },
  432. /**
  433. *
  434. * @summary 强制触发所有作业持久化
  435. * @param {*} [options] Override http request option.
  436. * @throws {RequiredError}
  437. */
  438. apiSysJobPersistAllPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  439. const localVarPath = `/api/sysJob/persistAll`;
  440. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  441. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  442. let baseOptions;
  443. if (configuration) {
  444. baseOptions = configuration.baseOptions;
  445. }
  446. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  447. const localVarHeaderParameter = {} as any;
  448. const localVarQueryParameter = {} as any;
  449. // authentication Bearer required
  450. const query = new URLSearchParams(localVarUrlObj.search);
  451. for (const key in localVarQueryParameter) {
  452. query.set(key, localVarQueryParameter[key]);
  453. }
  454. for (const key in options.params) {
  455. query.set(key, options.params[key]);
  456. }
  457. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  458. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  459. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  460. return {
  461. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  462. options: localVarRequestOptions,
  463. };
  464. },
  465. /**
  466. *
  467. * @summary 启动所有作业
  468. * @param {*} [options] Override http request option.
  469. * @throws {RequiredError}
  470. */
  471. apiSysJobStartAllJobPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  472. const localVarPath = `/api/sysJob/startAllJob`;
  473. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  474. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  475. let baseOptions;
  476. if (configuration) {
  477. baseOptions = configuration.baseOptions;
  478. }
  479. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  480. const localVarHeaderParameter = {} as any;
  481. const localVarQueryParameter = {} as any;
  482. // authentication Bearer required
  483. const query = new URLSearchParams(localVarUrlObj.search);
  484. for (const key in localVarQueryParameter) {
  485. query.set(key, localVarQueryParameter[key]);
  486. }
  487. for (const key in options.params) {
  488. query.set(key, options.params[key]);
  489. }
  490. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  491. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  492. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  493. return {
  494. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  495. options: localVarRequestOptions,
  496. };
  497. },
  498. /**
  499. *
  500. * @summary 启动作业
  501. * @param {JobDetailInput} [body]
  502. * @param {*} [options] Override http request option.
  503. * @throws {RequiredError}
  504. */
  505. apiSysJobStartJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  506. const localVarPath = `/api/sysJob/startJob`;
  507. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  508. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  509. let baseOptions;
  510. if (configuration) {
  511. baseOptions = configuration.baseOptions;
  512. }
  513. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  514. const localVarHeaderParameter = {} as any;
  515. const localVarQueryParameter = {} as any;
  516. // authentication Bearer required
  517. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  518. const query = new URLSearchParams(localVarUrlObj.search);
  519. for (const key in localVarQueryParameter) {
  520. query.set(key, localVarQueryParameter[key]);
  521. }
  522. for (const key in options.params) {
  523. query.set(key, options.params[key]);
  524. }
  525. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  526. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  527. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  528. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  529. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  530. return {
  531. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  532. options: localVarRequestOptions,
  533. };
  534. },
  535. /**
  536. *
  537. * @summary 启动触发器
  538. * @param {JobTriggerInput} [body]
  539. * @param {*} [options] Override http request option.
  540. * @throws {RequiredError}
  541. */
  542. apiSysJobStartTriggerPost: async (body?: JobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  543. const localVarPath = `/api/sysJob/startTrigger`;
  544. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  545. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  546. let baseOptions;
  547. if (configuration) {
  548. baseOptions = configuration.baseOptions;
  549. }
  550. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  551. const localVarHeaderParameter = {} as any;
  552. const localVarQueryParameter = {} as any;
  553. // authentication Bearer required
  554. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  555. const query = new URLSearchParams(localVarUrlObj.search);
  556. for (const key in localVarQueryParameter) {
  557. query.set(key, localVarQueryParameter[key]);
  558. }
  559. for (const key in options.params) {
  560. query.set(key, options.params[key]);
  561. }
  562. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  563. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  564. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  565. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  566. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  567. return {
  568. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  569. options: localVarRequestOptions,
  570. };
  571. },
  572. /**
  573. *
  574. * @summary 更新作业
  575. * @param {UpdateJobDetailInput} [body]
  576. * @param {*} [options] Override http request option.
  577. * @throws {RequiredError}
  578. */
  579. apiSysJobUpdateJobDetailPost: async (body?: UpdateJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  580. const localVarPath = `/api/sysJob/updateJobDetail`;
  581. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  582. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  583. let baseOptions;
  584. if (configuration) {
  585. baseOptions = configuration.baseOptions;
  586. }
  587. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  588. const localVarHeaderParameter = {} as any;
  589. const localVarQueryParameter = {} as any;
  590. // authentication Bearer required
  591. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  592. const query = new URLSearchParams(localVarUrlObj.search);
  593. for (const key in localVarQueryParameter) {
  594. query.set(key, localVarQueryParameter[key]);
  595. }
  596. for (const key in options.params) {
  597. query.set(key, options.params[key]);
  598. }
  599. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  600. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  601. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  602. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  603. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  604. return {
  605. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  606. options: localVarRequestOptions,
  607. };
  608. },
  609. /**
  610. *
  611. * @summary 更新触发器
  612. * @param {UpdateJobTriggerInput} [body]
  613. * @param {*} [options] Override http request option.
  614. * @throws {RequiredError}
  615. */
  616. apiSysJobUpdateJobTriggerPost: async (body?: UpdateJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  617. const localVarPath = `/api/sysJob/updateJobTrigger`;
  618. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  619. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  620. let baseOptions;
  621. if (configuration) {
  622. baseOptions = configuration.baseOptions;
  623. }
  624. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  625. const localVarHeaderParameter = {} as any;
  626. const localVarQueryParameter = {} as any;
  627. // authentication Bearer required
  628. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  629. const query = new URLSearchParams(localVarUrlObj.search);
  630. for (const key in localVarQueryParameter) {
  631. query.set(key, localVarQueryParameter[key]);
  632. }
  633. for (const key in options.params) {
  634. query.set(key, options.params[key]);
  635. }
  636. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  637. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  638. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  639. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  640. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  641. return {
  642. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  643. options: localVarRequestOptions,
  644. };
  645. },
  646. }
  647. };
  648. /**
  649. * SysJobApi - functional programming interface
  650. * @export
  651. */
  652. export const SysJobApiFp = function(configuration?: Configuration) {
  653. return {
  654. /**
  655. *
  656. * @summary 添加作业
  657. * @param {AddJobDetailInput} [body]
  658. * @param {*} [options] Override http request option.
  659. * @throws {RequiredError}
  660. */
  661. async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  662. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobAddJobDetailPost(body, options);
  663. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  664. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  665. return axios.request(axiosRequestArgs);
  666. };
  667. },
  668. /**
  669. *
  670. * @summary 添加触发器
  671. * @param {AddJobTriggerInput} [body]
  672. * @param {*} [options] Override http request option.
  673. * @throws {RequiredError}
  674. */
  675. async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  676. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobAddJobTriggerPost(body, options);
  677. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  678. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  679. return axios.request(axiosRequestArgs);
  680. };
  681. },
  682. /**
  683. *
  684. * @summary 强制唤醒作业调度器
  685. * @param {*} [options] Override http request option.
  686. * @throws {RequiredError}
  687. */
  688. async apiSysJobCancelSleepPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  689. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobCancelSleepPost(options);
  690. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  691. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  692. return axios.request(axiosRequestArgs);
  693. };
  694. },
  695. /**
  696. *
  697. * @summary 删除作业
  698. * @param {DeleteJobDetailInput} [body]
  699. * @param {*} [options] Override http request option.
  700. * @throws {RequiredError}
  701. */
  702. async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  703. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobDeleteJobDetailPost(body, options);
  704. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  705. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  706. return axios.request(axiosRequestArgs);
  707. };
  708. },
  709. /**
  710. *
  711. * @summary 删除触发器
  712. * @param {DeleteJobTriggerInput} [body]
  713. * @param {*} [options] Override http request option.
  714. * @throws {RequiredError}
  715. */
  716. async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  717. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobDeleteJobTriggerPost(body, options);
  718. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  719. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  720. return axios.request(axiosRequestArgs);
  721. };
  722. },
  723. /**
  724. *
  725. * @summary 获取集群列表
  726. * @param {*} [options] Override http request option.
  727. * @throws {RequiredError}
  728. */
  729. async apiSysJobJobClusterListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysJobCluster>>> {
  730. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobJobClusterListGet(options);
  731. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  732. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  733. return axios.request(axiosRequestArgs);
  734. };
  735. },
  736. /**
  737. *
  738. * @summary 获取触发器列表
  739. * @param {string} [jobId] 作业Id
  740. * @param {*} [options] Override http request option.
  741. * @throws {RequiredError}
  742. */
  743. async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysJobTrigger>>> {
  744. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobJobTriggerListGet(jobId, options);
  745. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  746. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  747. return axios.request(axiosRequestArgs);
  748. };
  749. },
  750. /**
  751. *
  752. * @summary 获取作业分页列表
  753. * @param {PageJobInput} [body]
  754. * @param {*} [options] Override http request option.
  755. * @throws {RequiredError}
  756. */
  757. async apiSysJobPageJobDetailPost(body?: PageJobInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListJobOutput>>> {
  758. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPageJobDetailPost(body, options);
  759. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  760. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  761. return axios.request(axiosRequestArgs);
  762. };
  763. },
  764. /**
  765. *
  766. * @summary 暂停所有作业
  767. * @param {*} [options] Override http request option.
  768. * @throws {RequiredError}
  769. */
  770. async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  771. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseAllJobPost(options);
  772. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  773. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  774. return axios.request(axiosRequestArgs);
  775. };
  776. },
  777. /**
  778. *
  779. * @summary 暂停作业
  780. * @param {JobDetailInput} [body]
  781. * @param {*} [options] Override http request option.
  782. * @throws {RequiredError}
  783. */
  784. async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  785. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseJobPost(body, options);
  786. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  787. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  788. return axios.request(axiosRequestArgs);
  789. };
  790. },
  791. /**
  792. *
  793. * @summary 暂停触发器
  794. * @param {JobTriggerInput} [body]
  795. * @param {*} [options] Override http request option.
  796. * @throws {RequiredError}
  797. */
  798. async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  799. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseTriggerPost(body, options);
  800. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  801. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  802. return axios.request(axiosRequestArgs);
  803. };
  804. },
  805. /**
  806. *
  807. * @summary 强制触发所有作业持久化
  808. * @param {*} [options] Override http request option.
  809. * @throws {RequiredError}
  810. */
  811. async apiSysJobPersistAllPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  812. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPersistAllPost(options);
  813. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  814. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  815. return axios.request(axiosRequestArgs);
  816. };
  817. },
  818. /**
  819. *
  820. * @summary 启动所有作业
  821. * @param {*} [options] Override http request option.
  822. * @throws {RequiredError}
  823. */
  824. async apiSysJobStartAllJobPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  825. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartAllJobPost(options);
  826. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  827. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  828. return axios.request(axiosRequestArgs);
  829. };
  830. },
  831. /**
  832. *
  833. * @summary 启动作业
  834. * @param {JobDetailInput} [body]
  835. * @param {*} [options] Override http request option.
  836. * @throws {RequiredError}
  837. */
  838. async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  839. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartJobPost(body, options);
  840. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  841. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  842. return axios.request(axiosRequestArgs);
  843. };
  844. },
  845. /**
  846. *
  847. * @summary 启动触发器
  848. * @param {JobTriggerInput} [body]
  849. * @param {*} [options] Override http request option.
  850. * @throws {RequiredError}
  851. */
  852. async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  853. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartTriggerPost(body, options);
  854. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  855. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  856. return axios.request(axiosRequestArgs);
  857. };
  858. },
  859. /**
  860. *
  861. * @summary 更新作业
  862. * @param {UpdateJobDetailInput} [body]
  863. * @param {*} [options] Override http request option.
  864. * @throws {RequiredError}
  865. */
  866. async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  867. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobUpdateJobDetailPost(body, options);
  868. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  869. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  870. return axios.request(axiosRequestArgs);
  871. };
  872. },
  873. /**
  874. *
  875. * @summary 更新触发器
  876. * @param {UpdateJobTriggerInput} [body]
  877. * @param {*} [options] Override http request option.
  878. * @throws {RequiredError}
  879. */
  880. async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  881. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobUpdateJobTriggerPost(body, options);
  882. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  883. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  884. return axios.request(axiosRequestArgs);
  885. };
  886. },
  887. }
  888. };
  889. /**
  890. * SysJobApi - factory interface
  891. * @export
  892. */
  893. export const SysJobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  894. return {
  895. /**
  896. *
  897. * @summary 添加作业
  898. * @param {AddJobDetailInput} [body]
  899. * @param {*} [options] Override http request option.
  900. * @throws {RequiredError}
  901. */
  902. async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  903. return SysJobApiFp(configuration).apiSysJobAddJobDetailPost(body, options).then((request) => request(axios, basePath));
  904. },
  905. /**
  906. *
  907. * @summary 添加触发器
  908. * @param {AddJobTriggerInput} [body]
  909. * @param {*} [options] Override http request option.
  910. * @throws {RequiredError}
  911. */
  912. async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  913. return SysJobApiFp(configuration).apiSysJobAddJobTriggerPost(body, options).then((request) => request(axios, basePath));
  914. },
  915. /**
  916. *
  917. * @summary 强制唤醒作业调度器
  918. * @param {*} [options] Override http request option.
  919. * @throws {RequiredError}
  920. */
  921. async apiSysJobCancelSleepPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  922. return SysJobApiFp(configuration).apiSysJobCancelSleepPost(options).then((request) => request(axios, basePath));
  923. },
  924. /**
  925. *
  926. * @summary 删除作业
  927. * @param {DeleteJobDetailInput} [body]
  928. * @param {*} [options] Override http request option.
  929. * @throws {RequiredError}
  930. */
  931. async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  932. return SysJobApiFp(configuration).apiSysJobDeleteJobDetailPost(body, options).then((request) => request(axios, basePath));
  933. },
  934. /**
  935. *
  936. * @summary 删除触发器
  937. * @param {DeleteJobTriggerInput} [body]
  938. * @param {*} [options] Override http request option.
  939. * @throws {RequiredError}
  940. */
  941. async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  942. return SysJobApiFp(configuration).apiSysJobDeleteJobTriggerPost(body, options).then((request) => request(axios, basePath));
  943. },
  944. /**
  945. *
  946. * @summary 获取集群列表
  947. * @param {*} [options] Override http request option.
  948. * @throws {RequiredError}
  949. */
  950. async apiSysJobJobClusterListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysJobCluster>> {
  951. return SysJobApiFp(configuration).apiSysJobJobClusterListGet(options).then((request) => request(axios, basePath));
  952. },
  953. /**
  954. *
  955. * @summary 获取触发器列表
  956. * @param {string} [jobId] 作业Id
  957. * @param {*} [options] Override http request option.
  958. * @throws {RequiredError}
  959. */
  960. async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysJobTrigger>> {
  961. return SysJobApiFp(configuration).apiSysJobJobTriggerListGet(jobId, options).then((request) => request(axios, basePath));
  962. },
  963. /**
  964. *
  965. * @summary 获取作业分页列表
  966. * @param {PageJobInput} [body]
  967. * @param {*} [options] Override http request option.
  968. * @throws {RequiredError}
  969. */
  970. async apiSysJobPageJobDetailPost(body?: PageJobInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListJobOutput>> {
  971. return SysJobApiFp(configuration).apiSysJobPageJobDetailPost(body, options).then((request) => request(axios, basePath));
  972. },
  973. /**
  974. *
  975. * @summary 暂停所有作业
  976. * @param {*} [options] Override http request option.
  977. * @throws {RequiredError}
  978. */
  979. async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  980. return SysJobApiFp(configuration).apiSysJobPauseAllJobPost(options).then((request) => request(axios, basePath));
  981. },
  982. /**
  983. *
  984. * @summary 暂停作业
  985. * @param {JobDetailInput} [body]
  986. * @param {*} [options] Override http request option.
  987. * @throws {RequiredError}
  988. */
  989. async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  990. return SysJobApiFp(configuration).apiSysJobPauseJobPost(body, options).then((request) => request(axios, basePath));
  991. },
  992. /**
  993. *
  994. * @summary 暂停触发器
  995. * @param {JobTriggerInput} [body]
  996. * @param {*} [options] Override http request option.
  997. * @throws {RequiredError}
  998. */
  999. async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1000. return SysJobApiFp(configuration).apiSysJobPauseTriggerPost(body, options).then((request) => request(axios, basePath));
  1001. },
  1002. /**
  1003. *
  1004. * @summary 强制触发所有作业持久化
  1005. * @param {*} [options] Override http request option.
  1006. * @throws {RequiredError}
  1007. */
  1008. async apiSysJobPersistAllPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1009. return SysJobApiFp(configuration).apiSysJobPersistAllPost(options).then((request) => request(axios, basePath));
  1010. },
  1011. /**
  1012. *
  1013. * @summary 启动所有作业
  1014. * @param {*} [options] Override http request option.
  1015. * @throws {RequiredError}
  1016. */
  1017. async apiSysJobStartAllJobPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1018. return SysJobApiFp(configuration).apiSysJobStartAllJobPost(options).then((request) => request(axios, basePath));
  1019. },
  1020. /**
  1021. *
  1022. * @summary 启动作业
  1023. * @param {JobDetailInput} [body]
  1024. * @param {*} [options] Override http request option.
  1025. * @throws {RequiredError}
  1026. */
  1027. async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1028. return SysJobApiFp(configuration).apiSysJobStartJobPost(body, options).then((request) => request(axios, basePath));
  1029. },
  1030. /**
  1031. *
  1032. * @summary 启动触发器
  1033. * @param {JobTriggerInput} [body]
  1034. * @param {*} [options] Override http request option.
  1035. * @throws {RequiredError}
  1036. */
  1037. async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1038. return SysJobApiFp(configuration).apiSysJobStartTriggerPost(body, options).then((request) => request(axios, basePath));
  1039. },
  1040. /**
  1041. *
  1042. * @summary 更新作业
  1043. * @param {UpdateJobDetailInput} [body]
  1044. * @param {*} [options] Override http request option.
  1045. * @throws {RequiredError}
  1046. */
  1047. async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1048. return SysJobApiFp(configuration).apiSysJobUpdateJobDetailPost(body, options).then((request) => request(axios, basePath));
  1049. },
  1050. /**
  1051. *
  1052. * @summary 更新触发器
  1053. * @param {UpdateJobTriggerInput} [body]
  1054. * @param {*} [options] Override http request option.
  1055. * @throws {RequiredError}
  1056. */
  1057. async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1058. return SysJobApiFp(configuration).apiSysJobUpdateJobTriggerPost(body, options).then((request) => request(axios, basePath));
  1059. },
  1060. };
  1061. };
  1062. /**
  1063. * SysJobApi - object-oriented interface
  1064. * @export
  1065. * @class SysJobApi
  1066. * @extends {BaseAPI}
  1067. */
  1068. export class SysJobApi extends BaseAPI {
  1069. /**
  1070. *
  1071. * @summary 添加作业
  1072. * @param {AddJobDetailInput} [body]
  1073. * @param {*} [options] Override http request option.
  1074. * @throws {RequiredError}
  1075. * @memberof SysJobApi
  1076. */
  1077. public async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1078. return SysJobApiFp(this.configuration).apiSysJobAddJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1079. }
  1080. /**
  1081. *
  1082. * @summary 添加触发器
  1083. * @param {AddJobTriggerInput} [body]
  1084. * @param {*} [options] Override http request option.
  1085. * @throws {RequiredError}
  1086. * @memberof SysJobApi
  1087. */
  1088. public async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1089. return SysJobApiFp(this.configuration).apiSysJobAddJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1090. }
  1091. /**
  1092. *
  1093. * @summary 强制唤醒作业调度器
  1094. * @param {*} [options] Override http request option.
  1095. * @throws {RequiredError}
  1096. * @memberof SysJobApi
  1097. */
  1098. public async apiSysJobCancelSleepPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1099. return SysJobApiFp(this.configuration).apiSysJobCancelSleepPost(options).then((request) => request(this.axios, this.basePath));
  1100. }
  1101. /**
  1102. *
  1103. * @summary 删除作业
  1104. * @param {DeleteJobDetailInput} [body]
  1105. * @param {*} [options] Override http request option.
  1106. * @throws {RequiredError}
  1107. * @memberof SysJobApi
  1108. */
  1109. public async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1110. return SysJobApiFp(this.configuration).apiSysJobDeleteJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1111. }
  1112. /**
  1113. *
  1114. * @summary 删除触发器
  1115. * @param {DeleteJobTriggerInput} [body]
  1116. * @param {*} [options] Override http request option.
  1117. * @throws {RequiredError}
  1118. * @memberof SysJobApi
  1119. */
  1120. public async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1121. return SysJobApiFp(this.configuration).apiSysJobDeleteJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1122. }
  1123. /**
  1124. *
  1125. * @summary 获取集群列表
  1126. * @param {*} [options] Override http request option.
  1127. * @throws {RequiredError}
  1128. * @memberof SysJobApi
  1129. */
  1130. public async apiSysJobJobClusterListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysJobCluster>> {
  1131. return SysJobApiFp(this.configuration).apiSysJobJobClusterListGet(options).then((request) => request(this.axios, this.basePath));
  1132. }
  1133. /**
  1134. *
  1135. * @summary 获取触发器列表
  1136. * @param {string} [jobId] 作业Id
  1137. * @param {*} [options] Override http request option.
  1138. * @throws {RequiredError}
  1139. * @memberof SysJobApi
  1140. */
  1141. public async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysJobTrigger>> {
  1142. return SysJobApiFp(this.configuration).apiSysJobJobTriggerListGet(jobId, options).then((request) => request(this.axios, this.basePath));
  1143. }
  1144. /**
  1145. *
  1146. * @summary 获取作业分页列表
  1147. * @param {PageJobInput} [body]
  1148. * @param {*} [options] Override http request option.
  1149. * @throws {RequiredError}
  1150. * @memberof SysJobApi
  1151. */
  1152. public async apiSysJobPageJobDetailPost(body?: PageJobInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListJobOutput>> {
  1153. return SysJobApiFp(this.configuration).apiSysJobPageJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1154. }
  1155. /**
  1156. *
  1157. * @summary 暂停所有作业
  1158. * @param {*} [options] Override http request option.
  1159. * @throws {RequiredError}
  1160. * @memberof SysJobApi
  1161. */
  1162. public async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1163. return SysJobApiFp(this.configuration).apiSysJobPauseAllJobPost(options).then((request) => request(this.axios, this.basePath));
  1164. }
  1165. /**
  1166. *
  1167. * @summary 暂停作业
  1168. * @param {JobDetailInput} [body]
  1169. * @param {*} [options] Override http request option.
  1170. * @throws {RequiredError}
  1171. * @memberof SysJobApi
  1172. */
  1173. public async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1174. return SysJobApiFp(this.configuration).apiSysJobPauseJobPost(body, options).then((request) => request(this.axios, this.basePath));
  1175. }
  1176. /**
  1177. *
  1178. * @summary 暂停触发器
  1179. * @param {JobTriggerInput} [body]
  1180. * @param {*} [options] Override http request option.
  1181. * @throws {RequiredError}
  1182. * @memberof SysJobApi
  1183. */
  1184. public async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1185. return SysJobApiFp(this.configuration).apiSysJobPauseTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1186. }
  1187. /**
  1188. *
  1189. * @summary 强制触发所有作业持久化
  1190. * @param {*} [options] Override http request option.
  1191. * @throws {RequiredError}
  1192. * @memberof SysJobApi
  1193. */
  1194. public async apiSysJobPersistAllPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1195. return SysJobApiFp(this.configuration).apiSysJobPersistAllPost(options).then((request) => request(this.axios, this.basePath));
  1196. }
  1197. /**
  1198. *
  1199. * @summary 启动所有作业
  1200. * @param {*} [options] Override http request option.
  1201. * @throws {RequiredError}
  1202. * @memberof SysJobApi
  1203. */
  1204. public async apiSysJobStartAllJobPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1205. return SysJobApiFp(this.configuration).apiSysJobStartAllJobPost(options).then((request) => request(this.axios, this.basePath));
  1206. }
  1207. /**
  1208. *
  1209. * @summary 启动作业
  1210. * @param {JobDetailInput} [body]
  1211. * @param {*} [options] Override http request option.
  1212. * @throws {RequiredError}
  1213. * @memberof SysJobApi
  1214. */
  1215. public async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1216. return SysJobApiFp(this.configuration).apiSysJobStartJobPost(body, options).then((request) => request(this.axios, this.basePath));
  1217. }
  1218. /**
  1219. *
  1220. * @summary 启动触发器
  1221. * @param {JobTriggerInput} [body]
  1222. * @param {*} [options] Override http request option.
  1223. * @throws {RequiredError}
  1224. * @memberof SysJobApi
  1225. */
  1226. public async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1227. return SysJobApiFp(this.configuration).apiSysJobStartTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1228. }
  1229. /**
  1230. *
  1231. * @summary 更新作业
  1232. * @param {UpdateJobDetailInput} [body]
  1233. * @param {*} [options] Override http request option.
  1234. * @throws {RequiredError}
  1235. * @memberof SysJobApi
  1236. */
  1237. public async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1238. return SysJobApiFp(this.configuration).apiSysJobUpdateJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1239. }
  1240. /**
  1241. *
  1242. * @summary 更新触发器
  1243. * @param {UpdateJobTriggerInput} [body]
  1244. * @param {*} [options] Override http request option.
  1245. * @throws {RequiredError}
  1246. * @memberof SysJobApi
  1247. */
  1248. public async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1249. return SysJobApiFp(this.configuration).apiSysJobUpdateJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1250. }
  1251. }