|
|
@@ -1,8 +1,8 @@
|
|
|
/* tslint:disable */
|
|
|
/* eslint-disable */
|
|
|
/**
|
|
|
- * 所有接口
|
|
|
- * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,均与作者无关!</font></b></u>
|
|
|
+ * 审批流程
|
|
|
+ * 对业务实体数据的增删改操作进行流程审批。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
|
|
|
*
|
|
|
* OpenAPI spec version: 1.0.0
|
|
|
*
|
|
|
@@ -11,18 +11,19 @@
|
|
|
* 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 { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../../base';
|
|
|
import { AddApprovalFlowInput } from '../models';
|
|
|
-import { AdminResultInt64 } from '../models';
|
|
|
import { AdminResultApprovalFlow } from '../models';
|
|
|
+import { AdminResultInt64 } from '../models';
|
|
|
import { AdminResultListApprovalFlowOutput } from '../models';
|
|
|
import { AdminResultSqlSugarPagedListApprovalFlowOutput } from '../models';
|
|
|
-import { DeleteApprovalFlowInput } from '../models';
|
|
|
import { ApprovalFlowInput } from '../models';
|
|
|
+import { DeleteApprovalFlowInput } from '../models';
|
|
|
import { UpdateApprovalFlowInput } from '../models';
|
|
|
/**
|
|
|
* ApprovalFlowApi - axios parameter creator
|
|
|
@@ -38,7 +39,7 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
apiApprovalFlowAddPost: async (body?: AddApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/labApprovalFlow/add`;
|
|
|
+ const localVarPath = `/api/approvalFlow/add`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -50,6 +51,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
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';
|
|
|
|
|
|
@@ -79,7 +87,7 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
apiApprovalFlowDeletePost: async (body?: DeleteApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/labApprovalFlow/delete`;
|
|
|
+ const localVarPath = `/api/approvalFlow/delete`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -91,6 +99,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
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';
|
|
|
|
|
|
@@ -124,7 +139,7 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
if (id === null || id === undefined) {
|
|
|
throw new RequiredError('id','Required parameter id was null or undefined when calling apiApprovalFlowDetailGet.');
|
|
|
}
|
|
|
- const localVarPath = `/api/labApprovalFlow/detail`;
|
|
|
+ const localVarPath = `/api/approvalFlow/detail`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -136,6 +151,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
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 (id !== undefined) {
|
|
|
localVarQueryParameter['Id'] = id;
|
|
|
@@ -159,13 +181,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 通过 code 获取审批流信息
|
|
|
+ * @summary 根据编码获取审批流信息
|
|
|
* @param {string} [code]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
apiApprovalFlowInfoGet: async (code?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/labApprovalFlow/info`;
|
|
|
+ const localVarPath = `/api/approvalFlow/info`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -177,6 +199,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
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 (code !== undefined) {
|
|
|
localVarQueryParameter['code'] = code;
|
|
|
@@ -214,7 +243,7 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
apiApprovalFlowListGet: async (searchKey?: string, code?: string, name?: string, remark?: string, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/labApprovalFlow/list`;
|
|
|
+ const localVarPath = `/api/approvalFlow/list`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -226,6 +255,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
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 (searchKey !== undefined) {
|
|
|
localVarQueryParameter['SearchKey'] = searchKey;
|
|
|
@@ -287,7 +323,7 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
apiApprovalFlowPagePost: async (body?: ApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/labApprovalFlow/page`;
|
|
|
+ const localVarPath = `/api/approvalFlow/page`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -299,6 +335,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
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';
|
|
|
|
|
|
@@ -328,7 +371,7 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
apiApprovalFlowUpdatePost: async (body?: UpdateApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/api/labApprovalFlow/update`;
|
|
|
+ const localVarPath = `/api/approvalFlow/update`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
|
@@ -340,6 +383,13 @@ export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Config
|
|
|
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';
|
|
|
|
|
|
@@ -414,7 +464,7 @@ export const ApprovalFlowApiFp = function(configuration?: Configuration) {
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 通过 code 获取审批流信息
|
|
|
+ * @summary 根据编码获取审批流信息
|
|
|
* @param {string} [code]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
@@ -517,7 +567,7 @@ export const ApprovalFlowApiFactory = function (configuration?: Configuration, b
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 通过 code 获取审批流信息
|
|
|
+ * @summary 根据编码获取审批流信息
|
|
|
* @param {string} [code]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
@@ -608,7 +658,7 @@ export class ApprovalFlowApi extends BaseAPI {
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
|
- * @summary 通过 code 获取审批流信息
|
|
|
+ * @summary 根据编码获取审批流信息
|
|
|
* @param {string} [code]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|