| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688 |
- /* tslint:disable */
- /* eslint-disable */
- /**
- * Admin.NET 通用权限开发平台
- * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
- *
- * OpenAPI spec version: 1.0.0
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
- import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
- import { Configuration } from '../configuration';
- // Some imports not used depending on template conditions
- // @ts-ignore
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
- import { AddJobDetailInput } from '../models';
- import { AddJobTriggerInput } from '../models';
- import { AdminResultListSysJobCluster } from '../models';
- import { AdminResultListSysJobTrigger } from '../models';
- import { AdminResultSqlSugarPagedListJobDetailOutput } from '../models';
- import { AdminResultSqlSugarPagedListSysJobTriggerRecord } from '../models';
- import { DeleteJobDetailInput } from '../models';
- import { DeleteJobTriggerInput } from '../models';
- import { JobDetailInput } from '../models';
- import { JobTriggerInput } from '../models';
- import { PageJobDetailInput } from '../models';
- import { PageJobTriggerRecordInput } from '../models';
- import { UpdateJobDetailInput } from '../models';
- import { UpdateJobTriggerInput } from '../models';
- /**
- * SysJobApi - axios parameter creator
- * @export
- */
- export const SysJobApiAxiosParamCreator = function (configuration?: Configuration) {
- return {
- /**
- *
- * @summary 添加作业 ⏰
- * @param {AddJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobAddJobDetailPost: async (body?: AddJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/addJobDetail`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 添加触发器 ⏰
- * @param {AddJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobAddJobTriggerPost: async (body?: AddJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/addJobTrigger`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 取消作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobCancelJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/cancelJob`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 强制唤醒作业调度器 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobCancelSleepPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/cancelSleep`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 删除作业 ⏰
- * @param {DeleteJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobDeleteJobDetailPost: async (body?: DeleteJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/deleteJobDetail`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 删除触发器 ⏰
- * @param {DeleteJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobDeleteJobTriggerPost: async (body?: DeleteJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/deleteJobTrigger`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 获取集群列表 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobJobClusterListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/jobClusterList`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 获取触发器列表 ⏰
- * @param {string} [jobId] 作业Id
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobJobTriggerListGet: async (jobId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/jobTriggerList`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- if (jobId !== undefined) {
- localVarQueryParameter['JobId'] = jobId;
- }
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 获取作业分页列表 ⏰
- * @param {PageJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobPageJobDetailPost: async (body?: PageJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/pageJobDetail`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 获取作业触发器运行记录分页列表 ⏰
- * @param {PageJobTriggerRecordInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobPageJobTriggerRecordPost: async (body?: PageJobTriggerRecordInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/pageJobTriggerRecord`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 暂停所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobPauseAllJobPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/pauseAllJob`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 暂停作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobPauseJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/pauseJob`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 暂停触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobPauseTriggerPost: async (body?: JobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/pauseTrigger`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 强制触发所有作业持久化 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobPersistAllPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/persistAll`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 执行作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobRunJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/runJob`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 启动所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobStartAllJobPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/startAllJob`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 启动作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobStartJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/startJob`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 启动触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobStartTriggerPost: async (body?: JobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/startTrigger`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 更新作业 ⏰
- * @param {UpdateJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobUpdateJobDetailPost: async (body?: UpdateJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/updateJobDetail`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary 更新触发器 ⏰
- * @param {UpdateJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSysJobUpdateJobTriggerPost: async (body?: UpdateJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- const localVarPath = `/api/sysJob/updateJobTrigger`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
- // authentication Bearer required
- // http bearer authentication required
- if (configuration && configuration.accessToken) {
- const accessToken = typeof configuration.accessToken === 'function'
- ? await configuration.accessToken()
- : await configuration.accessToken;
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
- }
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
- const query = new URLSearchParams(localVarUrlObj.search);
- for (const key in localVarQueryParameter) {
- query.set(key, localVarQueryParameter[key]);
- }
- for (const key in options.params) {
- query.set(key, options.params[key]);
- }
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
- return {
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
- options: localVarRequestOptions,
- };
- },
- }
- };
- /**
- * SysJobApi - functional programming interface
- * @export
- */
- export const SysJobApiFp = function(configuration?: Configuration) {
- return {
- /**
- *
- * @summary 添加作业 ⏰
- * @param {AddJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobAddJobDetailPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 添加触发器 ⏰
- * @param {AddJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobAddJobTriggerPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 取消作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobCancelJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobCancelJobPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 强制唤醒作业调度器 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobCancelSleepPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobCancelSleepPost(options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 删除作业 ⏰
- * @param {DeleteJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobDeleteJobDetailPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 删除触发器 ⏰
- * @param {DeleteJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobDeleteJobTriggerPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 获取集群列表 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobJobClusterListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysJobCluster>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobJobClusterListGet(options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 获取触发器列表 ⏰
- * @param {string} [jobId] 作业Id
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysJobTrigger>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobJobTriggerListGet(jobId, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 获取作业分页列表 ⏰
- * @param {PageJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPageJobDetailPost(body?: PageJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListJobDetailOutput>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPageJobDetailPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 获取作业触发器运行记录分页列表 ⏰
- * @param {PageJobTriggerRecordInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPageJobTriggerRecordPost(body?: PageJobTriggerRecordInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysJobTriggerRecord>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPageJobTriggerRecordPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 暂停所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseAllJobPost(options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 暂停作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseJobPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 暂停触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseTriggerPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 强制触发所有作业持久化 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPersistAllPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPersistAllPost(options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 执行作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobRunJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobRunJobPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 启动所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobStartAllJobPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartAllJobPost(options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 启动作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartJobPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 启动触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartTriggerPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 更新作业 ⏰
- * @param {UpdateJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobUpdateJobDetailPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- /**
- *
- * @summary 更新触发器 ⏰
- * @param {UpdateJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
- const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobUpdateJobTriggerPost(body, options);
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
- return axios.request(axiosRequestArgs);
- };
- },
- }
- };
- /**
- * SysJobApi - factory interface
- * @export
- */
- export const SysJobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
- return {
- /**
- *
- * @summary 添加作业 ⏰
- * @param {AddJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobAddJobDetailPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 添加触发器 ⏰
- * @param {AddJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobAddJobTriggerPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 取消作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobCancelJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobCancelJobPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 强制唤醒作业调度器 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobCancelSleepPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobCancelSleepPost(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 删除作业 ⏰
- * @param {DeleteJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobDeleteJobDetailPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 删除触发器 ⏰
- * @param {DeleteJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobDeleteJobTriggerPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 获取集群列表 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobJobClusterListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysJobCluster>> {
- return SysJobApiFp(configuration).apiSysJobJobClusterListGet(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 获取触发器列表 ⏰
- * @param {string} [jobId] 作业Id
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysJobTrigger>> {
- return SysJobApiFp(configuration).apiSysJobJobTriggerListGet(jobId, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 获取作业分页列表 ⏰
- * @param {PageJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPageJobDetailPost(body?: PageJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListJobDetailOutput>> {
- return SysJobApiFp(configuration).apiSysJobPageJobDetailPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 获取作业触发器运行记录分页列表 ⏰
- * @param {PageJobTriggerRecordInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPageJobTriggerRecordPost(body?: PageJobTriggerRecordInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysJobTriggerRecord>> {
- return SysJobApiFp(configuration).apiSysJobPageJobTriggerRecordPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 暂停所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobPauseAllJobPost(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 暂停作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobPauseJobPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 暂停触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobPauseTriggerPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 强制触发所有作业持久化 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobPersistAllPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobPersistAllPost(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 执行作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobRunJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobRunJobPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 启动所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobStartAllJobPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobStartAllJobPost(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 启动作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobStartJobPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 启动触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobStartTriggerPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 更新作业 ⏰
- * @param {UpdateJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobUpdateJobDetailPost(body, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @summary 更新触发器 ⏰
- * @param {UpdateJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
- return SysJobApiFp(configuration).apiSysJobUpdateJobTriggerPost(body, options).then((request) => request(axios, basePath));
- },
- };
- };
- /**
- * SysJobApi - object-oriented interface
- * @export
- * @class SysJobApi
- * @extends {BaseAPI}
- */
- export class SysJobApi extends BaseAPI {
- /**
- *
- * @summary 添加作业 ⏰
- * @param {AddJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobAddJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 添加触发器 ⏰
- * @param {AddJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobAddJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 取消作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobCancelJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobCancelJobPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 强制唤醒作业调度器 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobCancelSleepPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobCancelSleepPost(options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 删除作业 ⏰
- * @param {DeleteJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobDeleteJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 删除触发器 ⏰
- * @param {DeleteJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobDeleteJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 获取集群列表 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobJobClusterListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysJobCluster>> {
- return SysJobApiFp(this.configuration).apiSysJobJobClusterListGet(options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 获取触发器列表 ⏰
- * @param {string} [jobId] 作业Id
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysJobTrigger>> {
- return SysJobApiFp(this.configuration).apiSysJobJobTriggerListGet(jobId, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 获取作业分页列表 ⏰
- * @param {PageJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobPageJobDetailPost(body?: PageJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListJobDetailOutput>> {
- return SysJobApiFp(this.configuration).apiSysJobPageJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 获取作业触发器运行记录分页列表 ⏰
- * @param {PageJobTriggerRecordInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobPageJobTriggerRecordPost(body?: PageJobTriggerRecordInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysJobTriggerRecord>> {
- return SysJobApiFp(this.configuration).apiSysJobPageJobTriggerRecordPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 暂停所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobPauseAllJobPost(options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 暂停作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobPauseJobPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 暂停触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobPauseTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 强制触发所有作业持久化 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobPersistAllPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobPersistAllPost(options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 执行作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobRunJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobRunJobPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 启动所有作业 ⏰
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobStartAllJobPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobStartAllJobPost(options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 启动作业 ⏰
- * @param {JobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobStartJobPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 启动触发器 ⏰
- * @param {JobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobStartTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 更新作业 ⏰
- * @param {UpdateJobDetailInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobUpdateJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- /**
- *
- * @summary 更新触发器 ⏰
- * @param {UpdateJobTriggerInput} [body]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SysJobApi
- */
- public async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
- return SysJobApiFp(this.configuration).apiSysJobUpdateJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
- }
- }
|