😎增加插件接口请求文件

This commit is contained in:
zuohuaijun 2024-11-25 22:23:52 +08:00
parent 6421c6c6b6
commit 695b3c35af
85 changed files with 7093 additions and 0 deletions

View File

@ -0,0 +1,15 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
export * from './apis/approval-flow-api';

View File

@ -0,0 +1,930 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { AddApprovalFlowInput } from '../models';
import { AdminResultApprovalFlow } from '../models';
import { AdminResultInt64 } from '../models';
import { AdminResultListApprovalFlowOutput } from '../models';
import { AdminResultListString } from '../models';
import { AdminResultObject } from '../models';
import { AdminResultSqlSugarPagedListApprovalFlowOutput } from '../models';
import { ApprovalFlowInput } from '../models';
import { DeleteApprovalFlowInput } from '../models';
import { Filter } from '../models';
import { FilterLogicEnum } from '../models';
import { FilterOperatorEnum } from '../models';
import { UpdateApprovalFlowInput } from '../models';
/**
* ApprovalFlowApi - axios parameter creator
* @export
*/
export const ApprovalFlowApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary
* @param {AddApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowAddPost: async (body?: AddApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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;
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 {DeleteApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowDeletePost: async (body?: DeleteApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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;
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 {number} id Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowDetailGet: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
if (id === null || id === undefined) {
throw new RequiredError('id','Required parameter id was null or undefined when calling apiApprovalFlowDetailGet.');
}
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;
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 (id !== undefined) {
localVarQueryParameter['Id'] = id;
}
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} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowFlowListGet: async (code?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/approvalFlow/flowList`;
// 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 (code !== undefined) {
localVarQueryParameter['code'] = code;
}
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 {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowFormRoutesGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/approvalFlow/formRoutes`;
// 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} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowInfoGet: async (code?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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;
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 (code !== undefined) {
localVarQueryParameter['code'] = code;
}
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} [code]
* @param {string} [name]
* @param {string} [remark]
* @param {number} [page]
* @param {number} [pageSize]
* @param {string} [field]
* @param {string} [order]
* @param {string} [descStr]
* @param {Array<string>} [searchFields]
* @param {string} [searchKeyword]
* @param {string} [keyword]
* @param {FilterLogicEnum} [filterLogic]
* @param {Array<Filter>} [filterFilters]
* @param {string} [filterField]
* @param {FilterOperatorEnum} [filterOperator]
* @param {any} [filterValue]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowListGet: async (code?: string, name?: string, remark?: string, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, searchFields?: Array<string>, searchKeyword?: string, keyword?: string, filterLogic?: FilterLogicEnum, filterFilters?: Array<Filter>, filterField?: string, filterOperator?: FilterOperatorEnum, filterValue?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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;
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 (code !== undefined) {
localVarQueryParameter['Code'] = code;
}
if (name !== undefined) {
localVarQueryParameter['Name'] = name;
}
if (remark !== undefined) {
localVarQueryParameter['Remark'] = remark;
}
if (page !== undefined) {
localVarQueryParameter['Page'] = page;
}
if (pageSize !== undefined) {
localVarQueryParameter['PageSize'] = pageSize;
}
if (field !== undefined) {
localVarQueryParameter['Field'] = field;
}
if (order !== undefined) {
localVarQueryParameter['Order'] = order;
}
if (descStr !== undefined) {
localVarQueryParameter['DescStr'] = descStr;
}
if (searchFields) {
localVarQueryParameter['Search.Fields'] = searchFields;
}
if (searchKeyword !== undefined) {
localVarQueryParameter['Search.Keyword'] = searchKeyword;
}
if (keyword !== undefined) {
localVarQueryParameter['Keyword'] = keyword;
}
if (filterLogic !== undefined) {
localVarQueryParameter['Filter.Logic'] = filterLogic;
}
if (filterFilters) {
localVarQueryParameter['Filter.Filters'] = filterFilters;
}
if (filterField !== undefined) {
localVarQueryParameter['Filter.Field'] = filterField;
}
if (filterOperator !== undefined) {
localVarQueryParameter['Filter.Operator'] = filterOperator;
}
if (filterValue !== undefined) {
localVarQueryParameter['Filter.Value'] = filterValue;
}
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 {ApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowPagePost: async (body?: ApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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;
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 {UpdateApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiApprovalFlowUpdatePost: async (body?: UpdateApprovalFlowInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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;
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,
};
},
}
};
/**
* ApprovalFlowApi - functional programming interface
* @export
*/
export const ApprovalFlowApiFp = function(configuration?: Configuration) {
return {
/**
*
* @summary
* @param {AddApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowAddPost(body?: AddApprovalFlowInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultInt64>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowAddPost(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 {DeleteApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowDeletePost(body?: DeleteApprovalFlowInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowDeletePost(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 {number} id Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowDetailGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultApprovalFlow>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowDetailGet(id, 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} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowFlowListGet(code?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowFlowListGet(code, 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 apiApprovalFlowFormRoutesGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListString>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowFormRoutesGet(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} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowInfoGet(code?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultApprovalFlow>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowInfoGet(code, 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} [code]
* @param {string} [name]
* @param {string} [remark]
* @param {number} [page]
* @param {number} [pageSize]
* @param {string} [field]
* @param {string} [order]
* @param {string} [descStr]
* @param {Array<string>} [searchFields]
* @param {string} [searchKeyword]
* @param {string} [keyword]
* @param {FilterLogicEnum} [filterLogic]
* @param {Array<Filter>} [filterFilters]
* @param {string} [filterField]
* @param {FilterOperatorEnum} [filterOperator]
* @param {any} [filterValue]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowListGet(code?: string, name?: string, remark?: string, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, searchFields?: Array<string>, searchKeyword?: string, keyword?: string, filterLogic?: FilterLogicEnum, filterFilters?: Array<Filter>, filterField?: string, filterOperator?: FilterOperatorEnum, filterValue?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListApprovalFlowOutput>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowListGet(code, name, remark, page, pageSize, field, order, descStr, searchFields, searchKeyword, keyword, filterLogic, filterFilters, filterField, filterOperator, filterValue, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary
* @param {ApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowPagePost(body?: ApprovalFlowInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListApprovalFlowOutput>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowPagePost(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 {UpdateApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowUpdatePost(body?: UpdateApprovalFlowInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
const localVarAxiosArgs = await ApprovalFlowApiAxiosParamCreator(configuration).apiApprovalFlowUpdatePost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
}
};
/**
* ApprovalFlowApi - factory interface
* @export
*/
export const ApprovalFlowApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
return {
/**
*
* @summary
* @param {AddApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowAddPost(body?: AddApprovalFlowInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt64>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowAddPost(body, options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {DeleteApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowDeletePost(body?: DeleteApprovalFlowInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowDeletePost(body, options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {number} id Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowDetailGet(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultApprovalFlow>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowDetailGet(id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {string} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowFlowListGet(code?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowFlowListGet(code, options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowFormRoutesGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListString>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowFormRoutesGet(options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {string} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowInfoGet(code?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultApprovalFlow>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowInfoGet(code, options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {string} [code]
* @param {string} [name]
* @param {string} [remark]
* @param {number} [page]
* @param {number} [pageSize]
* @param {string} [field]
* @param {string} [order]
* @param {string} [descStr]
* @param {Array<string>} [searchFields]
* @param {string} [searchKeyword]
* @param {string} [keyword]
* @param {FilterLogicEnum} [filterLogic]
* @param {Array<Filter>} [filterFilters]
* @param {string} [filterField]
* @param {FilterOperatorEnum} [filterOperator]
* @param {any} [filterValue]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowListGet(code?: string, name?: string, remark?: string, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, searchFields?: Array<string>, searchKeyword?: string, keyword?: string, filterLogic?: FilterLogicEnum, filterFilters?: Array<Filter>, filterField?: string, filterOperator?: FilterOperatorEnum, filterValue?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListApprovalFlowOutput>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowListGet(code, name, remark, page, pageSize, field, order, descStr, searchFields, searchKeyword, keyword, filterLogic, filterFilters, filterField, filterOperator, filterValue, options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {ApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowPagePost(body?: ApprovalFlowInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListApprovalFlowOutput>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowPagePost(body, options).then((request) => request(axios, basePath));
},
/**
*
* @summary
* @param {UpdateApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiApprovalFlowUpdatePost(body?: UpdateApprovalFlowInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
return ApprovalFlowApiFp(configuration).apiApprovalFlowUpdatePost(body, options).then((request) => request(axios, basePath));
},
};
};
/**
* ApprovalFlowApi - object-oriented interface
* @export
* @class ApprovalFlowApi
* @extends {BaseAPI}
*/
export class ApprovalFlowApi extends BaseAPI {
/**
*
* @summary
* @param {AddApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowAddPost(body?: AddApprovalFlowInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt64>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowAddPost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {DeleteApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowDeletePost(body?: DeleteApprovalFlowInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowDeletePost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {number} id Id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowDetailGet(id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultApprovalFlow>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowDetailGet(id, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {string} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowFlowListGet(code?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowFlowListGet(code, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowFormRoutesGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListString>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowFormRoutesGet(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {string} [code]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowInfoGet(code?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultApprovalFlow>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowInfoGet(code, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {string} [code]
* @param {string} [name]
* @param {string} [remark]
* @param {number} [page]
* @param {number} [pageSize]
* @param {string} [field]
* @param {string} [order]
* @param {string} [descStr]
* @param {Array<string>} [searchFields]
* @param {string} [searchKeyword]
* @param {string} [keyword]
* @param {FilterLogicEnum} [filterLogic]
* @param {Array<Filter>} [filterFilters]
* @param {string} [filterField]
* @param {FilterOperatorEnum} [filterOperator]
* @param {any} [filterValue]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowListGet(code?: string, name?: string, remark?: string, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, searchFields?: Array<string>, searchKeyword?: string, keyword?: string, filterLogic?: FilterLogicEnum, filterFilters?: Array<Filter>, filterField?: string, filterOperator?: FilterOperatorEnum, filterValue?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListApprovalFlowOutput>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowListGet(code, name, remark, page, pageSize, field, order, descStr, searchFields, searchKeyword, keyword, filterLogic, filterFilters, filterField, filterOperator, filterValue, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {ApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowPagePost(body?: ApprovalFlowInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListApprovalFlowOutput>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowPagePost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary
* @param {UpdateApprovalFlowInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApprovalFlowApi
*/
public async apiApprovalFlowUpdatePost(body?: UpdateApprovalFlowInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
return ApprovalFlowApiFp(this.configuration).apiApprovalFlowUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosRequestConfig, AxiosInstance } from 'axios';
export const BASE_PATH = "/".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface RequestArgs
*/
export interface RequestArgs {
url: string;
options: AxiosRequestConfig;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}

View File

@ -0,0 +1,83 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
}
export class Configuration {
/**
* parameter for apiKey security
*
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
username?: string;
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
password?: string;
/**
* parameter for oauth2 security
*
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* override base path
*
* @type {string}
* @memberof Configuration
*/
basePath?: string;
/**
* base options for axios calls
*
* @type {any}
* @memberof Configuration
*/
baseOptions?: any;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
this.username = param.username;
this.password = param.password;
this.accessToken = param.accessToken;
this.basePath = param.basePath;
this.baseOptions = param.baseOptions;
}
}

View File

@ -0,0 +1,18 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
export * from "./api";
export * from "./configuration";
export * from "./models";

View File

@ -0,0 +1,134 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface AddApprovalFlowInput
*/
export interface AddApprovalFlowInput {
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
code?: string | null;
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
name?: string | null;
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
formJson?: string | null;
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
flowJson?: string | null;
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
remark?: string | null;
/**
*
*
* @type {Date}
* @memberof AddApprovalFlowInput
*/
createTime?: Date | null;
/**
*
*
* @type {Date}
* @memberof AddApprovalFlowInput
*/
updateTime?: Date | null;
/**
* Id
*
* @type {number}
* @memberof AddApprovalFlowInput
*/
createUserId?: number | null;
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
createUserName?: string | null;
/**
* Id
*
* @type {number}
* @memberof AddApprovalFlowInput
*/
updateUserId?: number | null;
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
updateUserName?: string | null;
/**
* Id
*
* @type {number}
* @memberof AddApprovalFlowInput
*/
createOrgId?: number | null;
/**
*
*
* @type {string}
* @memberof AddApprovalFlowInput
*/
createOrgName?: string | null;
/**
*
*
* @type {boolean}
* @memberof AddApprovalFlowInput
*/
isDelete: boolean;
}

View File

@ -0,0 +1,69 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { ApprovalFlow } from './approval-flow';
/**
*
*
* @export
* @interface AdminResultApprovalFlow
*/
export interface AdminResultApprovalFlow {
/**
*
*
* @type {number}
* @memberof AdminResultApprovalFlow
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultApprovalFlow
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultApprovalFlow
*/
message?: string | null;
/**
* @type {ApprovalFlow}
* @memberof AdminResultApprovalFlow
*/
result?: ApprovalFlow;
/**
*
*
* @type {any}
* @memberof AdminResultApprovalFlow
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultApprovalFlow
*/
time?: Date;
}

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface AdminResultInt64
*/
export interface AdminResultInt64 {
/**
*
*
* @type {number}
* @memberof AdminResultInt64
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultInt64
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultInt64
*/
message?: string | null;
/**
*
*
* @type {number}
* @memberof AdminResultInt64
*/
result?: number;
/**
*
*
* @type {any}
* @memberof AdminResultInt64
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultInt64
*/
time?: Date;
}

View File

@ -0,0 +1,71 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { ApprovalFlowOutput } from './approval-flow-output';
/**
*
*
* @export
* @interface AdminResultListApprovalFlowOutput
*/
export interface AdminResultListApprovalFlowOutput {
/**
*
*
* @type {number}
* @memberof AdminResultListApprovalFlowOutput
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultListApprovalFlowOutput
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultListApprovalFlowOutput
*/
message?: string | null;
/**
*
*
* @type {Array<ApprovalFlowOutput>}
* @memberof AdminResultListApprovalFlowOutput
*/
result?: Array<ApprovalFlowOutput> | null;
/**
*
*
* @type {any}
* @memberof AdminResultListApprovalFlowOutput
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultListApprovalFlowOutput
*/
time?: Date;
}

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface AdminResultListString
*/
export interface AdminResultListString {
/**
*
*
* @type {number}
* @memberof AdminResultListString
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultListString
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultListString
*/
message?: string | null;
/**
*
*
* @type {Array<string>}
* @memberof AdminResultListString
*/
result?: Array<string> | null;
/**
*
*
* @type {any}
* @memberof AdminResultListString
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultListString
*/
time?: Date;
}

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface AdminResultObject
*/
export interface AdminResultObject {
/**
*
*
* @type {number}
* @memberof AdminResultObject
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultObject
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultObject
*/
message?: string | null;
/**
*
*
* @type {any}
* @memberof AdminResultObject
*/
result?: any | null;
/**
*
*
* @type {any}
* @memberof AdminResultObject
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultObject
*/
time?: Date;
}

View File

@ -0,0 +1,69 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { SqlSugarPagedListApprovalFlowOutput } from './sql-sugar-paged-list-approval-flow-output';
/**
*
*
* @export
* @interface AdminResultSqlSugarPagedListApprovalFlowOutput
*/
export interface AdminResultSqlSugarPagedListApprovalFlowOutput {
/**
*
*
* @type {number}
* @memberof AdminResultSqlSugarPagedListApprovalFlowOutput
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultSqlSugarPagedListApprovalFlowOutput
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultSqlSugarPagedListApprovalFlowOutput
*/
message?: string | null;
/**
* @type {SqlSugarPagedListApprovalFlowOutput}
* @memberof AdminResultSqlSugarPagedListApprovalFlowOutput
*/
result?: SqlSugarPagedListApprovalFlowOutput;
/**
*
*
* @type {any}
* @memberof AdminResultSqlSugarPagedListApprovalFlowOutput
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultSqlSugarPagedListApprovalFlowOutput
*/
time?: Date;
}

View File

@ -0,0 +1,108 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { Filter } from './filter';
import { Search } from './search';
/**
*
*
* @export
* @interface ApprovalFlowInput
*/
export interface ApprovalFlowInput {
/**
* @type {Search}
* @memberof ApprovalFlowInput
*/
search?: Search;
/**
*
*
* @type {string}
* @memberof ApprovalFlowInput
*/
keyword?: string | null;
/**
* @type {Filter}
* @memberof ApprovalFlowInput
*/
filter?: Filter;
/**
*
*
* @type {number}
* @memberof ApprovalFlowInput
*/
page?: number;
/**
*
*
* @type {number}
* @memberof ApprovalFlowInput
*/
pageSize?: number;
/**
*
*
* @type {string}
* @memberof ApprovalFlowInput
*/
field?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowInput
*/
order?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowInput
*/
descStr?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowInput
*/
code?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowInput
*/
name?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowInput
*/
remark?: string | null;
}

View File

@ -0,0 +1,142 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface ApprovalFlowOutput
*/
export interface ApprovalFlowOutput {
/**
* Id
*
* @type {number}
* @memberof ApprovalFlowOutput
*/
id?: number;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
code?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
name?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
formJson?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
flowJson?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
remark?: string | null;
/**
*
*
* @type {Date}
* @memberof ApprovalFlowOutput
*/
createTime?: Date | null;
/**
*
*
* @type {Date}
* @memberof ApprovalFlowOutput
*/
updateTime?: Date | null;
/**
* Id
*
* @type {number}
* @memberof ApprovalFlowOutput
*/
createUserId?: number | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
createUserName?: string | null;
/**
* Id
*
* @type {number}
* @memberof ApprovalFlowOutput
*/
updateUserId?: number | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
updateUserName?: string | null;
/**
* Id
*
* @type {number}
* @memberof ApprovalFlowOutput
*/
createOrgId?: number | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlowOutput
*/
createOrgName?: string | null;
/**
*
*
* @type {boolean}
* @memberof ApprovalFlowOutput
*/
isDelete?: boolean;
}

View File

@ -0,0 +1,150 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface ApprovalFlow
*/
export interface ApprovalFlow {
/**
* Id
*
* @type {number}
* @memberof ApprovalFlow
*/
id?: number;
/**
*
*
* @type {Date}
* @memberof ApprovalFlow
*/
createTime?: Date;
/**
*
*
* @type {Date}
* @memberof ApprovalFlow
*/
updateTime?: Date | null;
/**
* Id
*
* @type {number}
* @memberof ApprovalFlow
*/
createUserId?: number | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
createUserName?: string | null;
/**
* Id
*
* @type {number}
* @memberof ApprovalFlow
*/
updateUserId?: number | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
updateUserName?: string | null;
/**
*
*
* @type {boolean}
* @memberof ApprovalFlow
*/
isDelete?: boolean;
/**
* Id
*
* @type {number}
* @memberof ApprovalFlow
*/
createOrgId?: number | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
createOrgName?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
code?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
name?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
formJson?: string | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
flowJson?: string | null;
/**
*
*
* @type {number}
* @memberof ApprovalFlow
*/
status?: number | null;
/**
*
*
* @type {string}
* @memberof ApprovalFlow
*/
remark?: string | null;
}

View File

@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface DeleteApprovalFlowInput
*/
export interface DeleteApprovalFlowInput {
/**
* Id
*
* @type {number}
* @memberof DeleteApprovalFlowInput
*/
id: number;
}

View File

@ -0,0 +1,25 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
* <br />&nbsp; And = 0<br />&nbsp; Or = 1<br />&nbsp; Xor = 2<br />
* @export
* @enum {string}
*/
export enum FilterLogicEnum {
NUMBER_0 = 0,
NUMBER_1 = 1,
NUMBER_2 = 2
}

View File

@ -0,0 +1,31 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
* <br />&nbsp; EQ = 0<br />&nbsp; NEQ = 1<br />&nbsp; LT = 2<br />&nbsp; LTE = 3<br />&nbsp; GT = 4<br />&nbsp; GTE = 5<br />&nbsp; StartsWith = 6<br />&nbsp; EndsWith = 7<br />&nbsp; Contains = 8<br />
* @export
* @enum {string}
*/
export enum FilterOperatorEnum {
NUMBER_0 = 0,
NUMBER_1 = 1,
NUMBER_2 = 2,
NUMBER_3 = 3,
NUMBER_4 = 4,
NUMBER_5 = 5,
NUMBER_6 = 6,
NUMBER_7 = 7,
NUMBER_8 = 8
}

View File

@ -0,0 +1,61 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { Filter } from './filter';
import { FilterLogicEnum } from './filter-logic-enum';
import { FilterOperatorEnum } from './filter-operator-enum';
/**
*
*
* @export
* @interface Filter
*/
export interface Filter {
/**
* @type {FilterLogicEnum}
* @memberof Filter
*/
logic?: FilterLogicEnum;
/**
*
*
* @type {Array<Filter>}
* @memberof Filter
*/
filters?: Array<Filter> | null;
/**
*
*
* @type {string}
* @memberof Filter
*/
field?: string | null;
/**
* @type {FilterOperatorEnum}
* @memberof Filter
*/
operator?: FilterOperatorEnum;
/**
*
*
* @type {any}
* @memberof Filter
*/
value?: any | null;
}

View File

@ -0,0 +1,17 @@
export * from './add-approval-flow-input';
export * from './admin-result-approval-flow';
export * from './admin-result-int64';
export * from './admin-result-list-approval-flow-output';
export * from './admin-result-list-string';
export * from './admin-result-object';
export * from './admin-result-sql-sugar-paged-list-approval-flow-output';
export * from './approval-flow';
export * from './approval-flow-input';
export * from './approval-flow-output';
export * from './delete-approval-flow-input';
export * from './filter';
export * from './filter-logic-enum';
export * from './filter-operator-enum';
export * from './search';
export * from './sql-sugar-paged-list-approval-flow-output';
export * from './update-approval-flow-input';

View File

@ -0,0 +1,38 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface Search
*/
export interface Search {
/**
*
*
* @type {Array<string>}
* @memberof Search
*/
fields?: Array<string> | null;
/**
*
*
* @type {string}
* @memberof Search
*/
keyword?: string | null;
}

View File

@ -0,0 +1,79 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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 { ApprovalFlowOutput } from './approval-flow-output';
/**
*
*
* @export
* @interface SqlSugarPagedListApprovalFlowOutput
*/
export interface SqlSugarPagedListApprovalFlowOutput {
/**
*
*
* @type {number}
* @memberof SqlSugarPagedListApprovalFlowOutput
*/
page?: number;
/**
*
*
* @type {number}
* @memberof SqlSugarPagedListApprovalFlowOutput
*/
pageSize?: number;
/**
*
*
* @type {number}
* @memberof SqlSugarPagedListApprovalFlowOutput
*/
total?: number;
/**
*
*
* @type {number}
* @memberof SqlSugarPagedListApprovalFlowOutput
*/
totalPages?: number;
/**
*
*
* @type {Array<ApprovalFlowOutput>}
* @memberof SqlSugarPagedListApprovalFlowOutput
*/
items?: Array<ApprovalFlowOutput> | null;
/**
*
*
* @type {boolean}
* @memberof SqlSugarPagedListApprovalFlowOutput
*/
hasPrevPage?: boolean;
/**
*
*
* @type {boolean}
* @memberof SqlSugarPagedListApprovalFlowOutput
*/
hasNextPage?: boolean;
}

View File

@ -0,0 +1,142 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* <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.
*/
/**
*
*
* @export
* @interface UpdateApprovalFlowInput
*/
export interface UpdateApprovalFlowInput {
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
code?: string | null;
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
name?: string | null;
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
formJson?: string | null;
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
flowJson?: string | null;
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
remark?: string | null;
/**
*
*
* @type {Date}
* @memberof UpdateApprovalFlowInput
*/
createTime?: Date | null;
/**
*
*
* @type {Date}
* @memberof UpdateApprovalFlowInput
*/
updateTime?: Date | null;
/**
* Id
*
* @type {number}
* @memberof UpdateApprovalFlowInput
*/
createUserId?: number | null;
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
createUserName?: string | null;
/**
* Id
*
* @type {number}
* @memberof UpdateApprovalFlowInput
*/
updateUserId?: number | null;
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
updateUserName?: string | null;
/**
* Id
*
* @type {number}
* @memberof UpdateApprovalFlowInput
*/
createOrgId?: number | null;
/**
*
*
* @type {string}
* @memberof UpdateApprovalFlowInput
*/
createOrgName?: string | null;
/**
*
*
* @type {boolean}
* @memberof UpdateApprovalFlowInput
*/
isDelete?: boolean;
/**
* Id
*
* @type {number}
* @memberof UpdateApprovalFlowInput
*/
id: number;
}

View File

@ -0,0 +1,15 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
export * from './apis/ding-talk-api';

View File

@ -0,0 +1,420 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput } from '../models';
import { AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo } from '../models';
import { AdminResultDingTalkSendInteractiveCardsOutput } from '../models';
import { AdminResultGetDingTalkTokenOutput } from '../models';
import { DingTalkSendInteractiveCardsInput } from '../models';
import { GetDingTalkCurrentEmployeesListInput } from '../models';
import { GetDingTalkCurrentEmployeesRosterListInput } from '../models';
/**
* DingTalkApi - axios parameter creator
* @export
*/
export const DingTalkApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary 🔖
* @param {GetDingTalkCurrentEmployeesListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost: async (body: GetDingTalkCurrentEmployeesListInput, accessToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('body','Required parameter body was null or undefined when calling apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost.');
}
// verify required parameter 'accessToken' is not null or undefined
if (accessToken === null || accessToken === undefined) {
throw new RequiredError('accessToken','Required parameter accessToken was null or undefined when calling apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost.');
}
const localVarPath = `/api/dingTalk/dingTalkCurrentEmployeesList/{access_token}`
.replace(`{${"access_token"}}`, encodeURIComponent(String(accessToken)));
// 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 {GetDingTalkCurrentEmployeesRosterListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost: async (body: GetDingTalkCurrentEmployeesRosterListInput, accessToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('body','Required parameter body was null or undefined when calling apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost.');
}
// verify required parameter 'accessToken' is not null or undefined
if (accessToken === null || accessToken === undefined) {
throw new RequiredError('accessToken','Required parameter accessToken was null or undefined when calling apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost.');
}
const localVarPath = `/api/dingTalk/dingTalkCurrentEmployeesRosterList/{access_token}`
.replace(`{${"access_token"}}`, encodeURIComponent(String(accessToken)));
// 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 {string} token
* @param {DingTalkSendInteractiveCardsInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiDingTalkDingTalkSendInteractiveCardsTokenPost: async (token: string, body?: DingTalkSendInteractiveCardsInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'token' is not null or undefined
if (token === null || token === undefined) {
throw new RequiredError('token','Required parameter token was null or undefined when calling apiDingTalkDingTalkSendInteractiveCardsTokenPost.');
}
const localVarPath = `/api/dingTalk/dingTalkSendInteractiveCards/{token}`
.replace(`{${"token"}}`, encodeURIComponent(String(token)));
// 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 access_token
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiDingTalkDingTalkTokenGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/dingTalk/dingTalkToken`;
// 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,
};
},
}
};
/**
* DingTalkApi - functional programming interface
* @export
*/
export const DingTalkApiFp = function(configuration?: Configuration) {
return {
/**
*
* @summary 🔖
* @param {GetDingTalkCurrentEmployeesListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost(body: GetDingTalkCurrentEmployeesListInput, accessToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput>>> {
const localVarAxiosArgs = await DingTalkApiAxiosParamCreator(configuration).apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost(body, accessToken, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary 🔖
* @param {GetDingTalkCurrentEmployeesRosterListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost(body: GetDingTalkCurrentEmployeesRosterListInput, accessToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo>>> {
const localVarAxiosArgs = await DingTalkApiAxiosParamCreator(configuration).apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost(body, accessToken, 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} token
* @param {DingTalkSendInteractiveCardsInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkSendInteractiveCardsTokenPost(token: string, body?: DingTalkSendInteractiveCardsInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultDingTalkSendInteractiveCardsOutput>>> {
const localVarAxiosArgs = await DingTalkApiAxiosParamCreator(configuration).apiDingTalkDingTalkSendInteractiveCardsTokenPost(token, body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary access_token
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkTokenGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultGetDingTalkTokenOutput>>> {
const localVarAxiosArgs = await DingTalkApiAxiosParamCreator(configuration).apiDingTalkDingTalkTokenGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
}
};
/**
* DingTalkApi - factory interface
* @export
*/
export const DingTalkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
return {
/**
*
* @summary 🔖
* @param {GetDingTalkCurrentEmployeesListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost(body: GetDingTalkCurrentEmployeesListInput, accessToken: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput>> {
return DingTalkApiFp(configuration).apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost(body, accessToken, options).then((request) => request(axios, basePath));
},
/**
*
* @summary 🔖
* @param {GetDingTalkCurrentEmployeesRosterListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost(body: GetDingTalkCurrentEmployeesRosterListInput, accessToken: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo>> {
return DingTalkApiFp(configuration).apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost(body, accessToken, options).then((request) => request(axios, basePath));
},
/**
*
* @summary 🔖
* @param {string} token
* @param {DingTalkSendInteractiveCardsInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkSendInteractiveCardsTokenPost(token: string, body?: DingTalkSendInteractiveCardsInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultDingTalkSendInteractiveCardsOutput>> {
return DingTalkApiFp(configuration).apiDingTalkDingTalkSendInteractiveCardsTokenPost(token, body, options).then((request) => request(axios, basePath));
},
/**
*
* @summary access_token
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiDingTalkDingTalkTokenGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultGetDingTalkTokenOutput>> {
return DingTalkApiFp(configuration).apiDingTalkDingTalkTokenGet(options).then((request) => request(axios, basePath));
},
};
};
/**
* DingTalkApi - object-oriented interface
* @export
* @class DingTalkApi
* @extends {BaseAPI}
*/
export class DingTalkApi extends BaseAPI {
/**
*
* @summary 🔖
* @param {GetDingTalkCurrentEmployeesListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DingTalkApi
*/
public async apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost(body: GetDingTalkCurrentEmployeesListInput, accessToken: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput>> {
return DingTalkApiFp(this.configuration).apiDingTalkDingTalkCurrentEmployeesListAccessTokenPost(body, accessToken, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary 🔖
* @param {GetDingTalkCurrentEmployeesRosterListInput} body
* @param {string} accessToken
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DingTalkApi
*/
public async apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost(body: GetDingTalkCurrentEmployeesRosterListInput, accessToken: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo>> {
return DingTalkApiFp(this.configuration).apiDingTalkDingTalkCurrentEmployeesRosterListAccessTokenPost(body, accessToken, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary 🔖
* @param {string} token
* @param {DingTalkSendInteractiveCardsInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DingTalkApi
*/
public async apiDingTalkDingTalkSendInteractiveCardsTokenPost(token: string, body?: DingTalkSendInteractiveCardsInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultDingTalkSendInteractiveCardsOutput>> {
return DingTalkApiFp(this.configuration).apiDingTalkDingTalkSendInteractiveCardsTokenPost(token, body, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary access_token
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DingTalkApi
*/
public async apiDingTalkDingTalkTokenGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultGetDingTalkTokenOutput>> {
return DingTalkApiFp(this.configuration).apiDingTalkDingTalkTokenGet(options).then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosRequestConfig, AxiosInstance } from 'axios';
export const BASE_PATH = "/".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface RequestArgs
*/
export interface RequestArgs {
url: string;
options: AxiosRequestConfig;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}

View File

@ -0,0 +1,83 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
}
export class Configuration {
/**
* parameter for apiKey security
*
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
username?: string;
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
password?: string;
/**
* parameter for oauth2 security
*
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* override base path
*
* @type {string}
* @memberof Configuration
*/
basePath?: string;
/**
* base options for axios calls
*
* @type {any}
* @memberof Configuration
*/
baseOptions?: any;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
this.username = param.username;
this.password = param.password;
this.accessToken = param.accessToken;
this.basePath = param.basePath;
this.baseOptions = param.baseOptions;
}
}

View File

@ -0,0 +1,18 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
export * from "./api";
export * from "./configuration";
export * from "./models";

View File

@ -0,0 +1,69 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput } from './ding-talk-base-response-get-ding-talk-current-employees-list-output';
/**
*
*
* @export
* @interface AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
export interface AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput {
/**
*
*
* @type {number}
* @memberof AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
message?: string | null;
/**
* @type {DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput}
* @memberof AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
result?: DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput;
/**
*
*
* @type {any}
* @memberof AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultDingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
time?: Date;
}

View File

@ -0,0 +1,69 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkBaseResponseListDingTalkEmpRosterFieldVo } from './ding-talk-base-response-list-ding-talk-emp-roster-field-vo';
/**
*
*
* @export
* @interface AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
export interface AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo {
/**
*
*
* @type {number}
* @memberof AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
message?: string | null;
/**
* @type {DingTalkBaseResponseListDingTalkEmpRosterFieldVo}
* @memberof AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
result?: DingTalkBaseResponseListDingTalkEmpRosterFieldVo;
/**
*
*
* @type {any}
* @memberof AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultDingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
time?: Date;
}

View File

@ -0,0 +1,69 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkSendInteractiveCardsOutput } from './ding-talk-send-interactive-cards-output';
/**
*
*
* @export
* @interface AdminResultDingTalkSendInteractiveCardsOutput
*/
export interface AdminResultDingTalkSendInteractiveCardsOutput {
/**
*
*
* @type {number}
* @memberof AdminResultDingTalkSendInteractiveCardsOutput
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultDingTalkSendInteractiveCardsOutput
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultDingTalkSendInteractiveCardsOutput
*/
message?: string | null;
/**
* @type {DingTalkSendInteractiveCardsOutput}
* @memberof AdminResultDingTalkSendInteractiveCardsOutput
*/
result?: DingTalkSendInteractiveCardsOutput;
/**
*
*
* @type {any}
* @memberof AdminResultDingTalkSendInteractiveCardsOutput
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultDingTalkSendInteractiveCardsOutput
*/
time?: Date;
}

View File

@ -0,0 +1,69 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { GetDingTalkTokenOutput } from './get-ding-talk-token-output';
/**
*
*
* @export
* @interface AdminResultGetDingTalkTokenOutput
*/
export interface AdminResultGetDingTalkTokenOutput {
/**
*
*
* @type {number}
* @memberof AdminResultGetDingTalkTokenOutput
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultGetDingTalkTokenOutput
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultGetDingTalkTokenOutput
*/
message?: string | null;
/**
* @type {GetDingTalkTokenOutput}
* @memberof AdminResultGetDingTalkTokenOutput
*/
result?: GetDingTalkTokenOutput;
/**
*
*
* @type {any}
* @memberof AdminResultGetDingTalkTokenOutput
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultGetDingTalkTokenOutput
*/
time?: Date;
}

View File

@ -0,0 +1,61 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { GetDingTalkCurrentEmployeesListOutput } from './get-ding-talk-current-employees-list-output';
/**
*
*
* @export
* @interface DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
export interface DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput {
/**
* @type {GetDingTalkCurrentEmployeesListOutput}
* @memberof DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
result?: GetDingTalkCurrentEmployeesListOutput;
/**
*
*
* @type {number}
* @memberof DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
errCode?: number;
/**
*
*
* @type {string}
* @memberof DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
errMsg?: string | null;
/**
*
*
* @type {boolean}
* @memberof DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
success?: boolean;
/**
* Id
*
* @type {string}
* @memberof DingTalkBaseResponseGetDingTalkCurrentEmployeesListOutput
*/
requestId?: string | null;
}

View File

@ -0,0 +1,63 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkEmpRosterFieldVo } from './ding-talk-emp-roster-field-vo';
/**
*
*
* @export
* @interface DingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
export interface DingTalkBaseResponseListDingTalkEmpRosterFieldVo {
/**
*
*
* @type {Array<DingTalkEmpRosterFieldVo>}
* @memberof DingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
result?: Array<DingTalkEmpRosterFieldVo> | null;
/**
*
*
* @type {number}
* @memberof DingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
errCode?: number;
/**
*
*
* @type {string}
* @memberof DingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
errMsg?: string | null;
/**
*
*
* @type {boolean}
* @memberof DingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
success?: boolean;
/**
* Id
*
* @type {string}
* @memberof DingTalkBaseResponseListDingTalkEmpRosterFieldVo
*/
requestId?: string | null;
}

View File

@ -0,0 +1,37 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkCardParamMap } from './ding-talk-card-param-map';
/**
*
*
* @export
* @interface DingTalkCardData
*/
export interface DingTalkCardData {
/**
* @type {DingTalkCardParamMap}
* @memberof DingTalkCardData
*/
cardParamMap?: DingTalkCardParamMap;
/**
*
*
* @type {string}
* @memberof DingTalkCardData
*/
cardMediaIdParamMap?: string | null;
}

View File

@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
*
*
* @export
* @interface DingTalkCardParamMap
*/
export interface DingTalkCardParamMap {
/**
*
*
* @type {string}
* @memberof DingTalkCardParamMap
*/
sysFullJsonObj?: string | null;
}

View File

@ -0,0 +1,24 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
* <br />&nbsp; SingleChat = 0<br />&nbsp; GroupChat = 1<br />
* @export
* @enum {string}
*/
export enum DingTalkConversationTypeEnum {
NUMBER_0 = 0,
NUMBER_1 = 1
}

View File

@ -0,0 +1,53 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkFieldValueVo } from './ding-talk-field-value-vo';
/**
*
*
* @export
* @interface DingTalkEmpFieldDataVo
*/
export interface DingTalkEmpFieldDataVo {
/**
*
*
* @type {string}
* @memberof DingTalkEmpFieldDataVo
*/
fieldName?: string | null;
/**
*
*
* @type {string}
* @memberof DingTalkEmpFieldDataVo
*/
fieldCode?: string | null;
/**
*
*
* @type {string}
* @memberof DingTalkEmpFieldDataVo
*/
groupId?: string | null;
/**
* @type {Array<DingTalkFieldValueVo>}
* @memberof DingTalkEmpFieldDataVo
*/
fieldValueList?: Array<DingTalkFieldValueVo> | null;
}

View File

@ -0,0 +1,47 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkEmpFieldDataVo } from './ding-talk-emp-field-data-vo';
/**
*
*
* @export
* @interface DingTalkEmpRosterFieldVo
*/
export interface DingTalkEmpRosterFieldVo {
/**
* corpid
*
* @type {string}
* @memberof DingTalkEmpRosterFieldVo
*/
corpId?: string | null;
/**
*
*
* @type {Array<DingTalkEmpFieldDataVo>}
* @memberof DingTalkEmpRosterFieldVo
*/
fieldDataList?: Array<DingTalkEmpFieldDataVo> | null;
/**
* userid
*
* @type {string}
* @memberof DingTalkEmpRosterFieldVo
*/
userid?: string | null;
}

View File

@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
*
*
* @export
* @interface DingTalkFieldValueVo
*/
export interface DingTalkFieldValueVo {
/**
* 0
*
* @type {number}
* @memberof DingTalkFieldValueVo
*/
itemIndex?: number;
/**
* value
*
* @type {string}
* @memberof DingTalkFieldValueVo
*/
label?: string | null;
/**
* key
*
* @type {string}
* @memberof DingTalkFieldValueVo
*/
value?: string | null;
}

View File

@ -0,0 +1,84 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkCardData } from './ding-talk-card-data';
import { DingTalkConversationTypeEnum } from './ding-talk-conversation-type-enum';
/**
*
*
* @export
* @interface DingTalkSendInteractiveCardsInput
*/
export interface DingTalkSendInteractiveCardsInput {
/**
* Id
*
* @type {string}
* @memberof DingTalkSendInteractiveCardsInput
*/
cardTemplateId: string;
/**
* Id
*
* @type {string}
* @memberof DingTalkSendInteractiveCardsInput
*/
openConversationId?: string | null;
/**
* userId列表
*
* @type {Array<string>}
* @memberof DingTalkSendInteractiveCardsInput
*/
receiverUserIdList: Array<string>;
/**
*
*
* @type {string}
* @memberof DingTalkSendInteractiveCardsInput
*/
outTrackId: string;
/**
*
*
* @type {string}
* @memberof DingTalkSendInteractiveCardsInput
*/
robotCode?: string | null;
/**
* @type {DingTalkConversationTypeEnum}
* @memberof DingTalkSendInteractiveCardsInput
*/
conversationType: DingTalkConversationTypeEnum;
/**
* KeycallbackUrl
*
* @type {string}
* @memberof DingTalkSendInteractiveCardsInput
*/
callbackRouteKey?: string | null;
/**
* @type {DingTalkCardData}
* @memberof DingTalkSendInteractiveCardsInput
*/
cardData: DingTalkCardData;
}

View File

@ -0,0 +1,37 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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 { DingTalkSendInteractiveCardsResult } from './ding-talk-send-interactive-cards-result';
/**
*
*
* @export
* @interface DingTalkSendInteractiveCardsOutput
*/
export interface DingTalkSendInteractiveCardsOutput {
/**
*
*
* @type {boolean}
* @memberof DingTalkSendInteractiveCardsOutput
*/
success?: boolean;
/**
* @type {DingTalkSendInteractiveCardsResult}
* @memberof DingTalkSendInteractiveCardsOutput
*/
result?: DingTalkSendInteractiveCardsResult;
}

View File

@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
*
*
* @export
* @interface DingTalkSendInteractiveCardsResult
*/
export interface DingTalkSendInteractiveCardsResult {
/**
* key
*
* @type {string}
* @memberof DingTalkSendInteractiveCardsResult
*/
processQueryKey?: string | null;
}

View File

@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
*
*
* @export
* @interface GetDingTalkCurrentEmployeesListInput
*/
export interface GetDingTalkCurrentEmployeesListInput {
/**
* 使235-1
*
* @type {string}
* @memberof GetDingTalkCurrentEmployeesListInput
*/
statusList?: string | null;
/**
* 0next_cursor是否为空来判断是否还有下一页offset设置成next_cursor的值
*
* @type {number}
* @memberof GetDingTalkCurrentEmployeesListInput
*/
offset?: number;
/**
* 50
*
* @type {number}
* @memberof GetDingTalkCurrentEmployeesListInput
*/
size?: number;
}

View File

@ -0,0 +1,38 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
*
*
* @export
* @interface GetDingTalkCurrentEmployeesListOutput
*/
export interface GetDingTalkCurrentEmployeesListOutput {
/**
* userId列表
*
* @type {Array<string>}
* @memberof GetDingTalkCurrentEmployeesListOutput
*/
dataList?: Array<string> | null;
/**
* offset值next_cursor时
*
* @type {number}
* @memberof GetDingTalkCurrentEmployeesListOutput
*/
nextCursor?: number | null;
}

View File

@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
*
*
* @export
* @interface GetDingTalkCurrentEmployeesRosterListInput
*/
export interface GetDingTalkCurrentEmployeesRosterListInput {
/**
* userId列表userid之间使用逗号分隔100
*
* @type {string}
* @memberof GetDingTalkCurrentEmployeesRosterListInput
*/
useridList?: string | null;
/**
* field_code值列表使100
*
* @type {string}
* @memberof GetDingTalkCurrentEmployeesRosterListInput
*/
fieldFilterList?: string | null;
/**
* AgentId
*
* @type {string}
* @memberof GetDingTalkCurrentEmployeesRosterListInput
*/
agentid?: string | null;
}

View File

@ -0,0 +1,54 @@
/* tslint:disable */
/* eslint-disable */
/**
* DingTalk
* <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.
*/
/**
*
*
* @export
* @interface GetDingTalkTokenOutput
*/
export interface GetDingTalkTokenOutput {
/**
* access_token
*
* @type {string}
* @memberof GetDingTalkTokenOutput
*/
accessToken?: string | null;
/**
* access_token的过期时间
*
* @type {number}
* @memberof GetDingTalkTokenOutput
*/
expiresIn?: number;
/**
*
*
* @type {string}
* @memberof GetDingTalkTokenOutput
*/
errMsg?: string | null;
/**
*
*
* @type {number}
* @memberof GetDingTalkTokenOutput
*/
errCode?: number;
}

View File

@ -0,0 +1,19 @@
export * from './admin-result-ding-talk-base-response-get-ding-talk-current-employees-list-output';
export * from './admin-result-ding-talk-base-response-list-ding-talk-emp-roster-field-vo';
export * from './admin-result-ding-talk-send-interactive-cards-output';
export * from './admin-result-get-ding-talk-token-output';
export * from './ding-talk-base-response-get-ding-talk-current-employees-list-output';
export * from './ding-talk-base-response-list-ding-talk-emp-roster-field-vo';
export * from './ding-talk-card-data';
export * from './ding-talk-card-param-map';
export * from './ding-talk-conversation-type-enum';
export * from './ding-talk-emp-field-data-vo';
export * from './ding-talk-emp-roster-field-vo';
export * from './ding-talk-field-value-vo';
export * from './ding-talk-send-interactive-cards-input';
export * from './ding-talk-send-interactive-cards-output';
export * from './ding-talk-send-interactive-cards-result';
export * from './get-ding-talk-current-employees-list-input';
export * from './get-ding-talk-current-employees-list-output';
export * from './get-ding-talk-current-employees-roster-list-input';
export * from './get-ding-talk-token-output';

View File

@ -0,0 +1,16 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
export * from './apis/project-api';
export * from './apis/sys-api';

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,290 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewLoginInput } from '../models';
import { GoViewResultGoViewLoginOutput } from '../models';
import { GoViewResultGoViewOssUrlOutput } from '../models';
/**
* SysApi - axios parameter creator
* @export
*/
export const SysApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary OSS 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiGoviewSysGetOssInfoGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/goview/sys/getOssInfo`;
// 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 GoView 🔖
* @param {GoViewLoginInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiGoviewSysLoginPost: async (body?: GoViewLoginInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/goview/sys/login`;
// 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 GoView 退 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiGoviewSysLogoutGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/goview/sys/logout`;
// 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,
};
},
}
};
/**
* SysApi - functional programming interface
* @export
*/
export const SysApiFp = function(configuration?: Configuration) {
return {
/**
*
* @summary OSS 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiGoviewSysGetOssInfoGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<GoViewResultGoViewOssUrlOutput>>> {
const localVarAxiosArgs = await SysApiAxiosParamCreator(configuration).apiGoviewSysGetOssInfoGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary GoView 🔖
* @param {GoViewLoginInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiGoviewSysLoginPost(body?: GoViewLoginInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<GoViewResultGoViewLoginOutput>>> {
const localVarAxiosArgs = await SysApiAxiosParamCreator(configuration).apiGoviewSysLoginPost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary GoView 退 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiGoviewSysLogoutGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
const localVarAxiosArgs = await SysApiAxiosParamCreator(configuration).apiGoviewSysLogoutGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
}
};
/**
* SysApi - factory interface
* @export
*/
export const SysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
return {
/**
*
* @summary OSS 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiGoviewSysGetOssInfoGet(options?: AxiosRequestConfig): Promise<AxiosResponse<GoViewResultGoViewOssUrlOutput>> {
return SysApiFp(configuration).apiGoviewSysGetOssInfoGet(options).then((request) => request(axios, basePath));
},
/**
*
* @summary GoView 🔖
* @param {GoViewLoginInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiGoviewSysLoginPost(body?: GoViewLoginInput, options?: AxiosRequestConfig): Promise<AxiosResponse<GoViewResultGoViewLoginOutput>> {
return SysApiFp(configuration).apiGoviewSysLoginPost(body, options).then((request) => request(axios, basePath));
},
/**
*
* @summary GoView 退 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiGoviewSysLogoutGet(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
return SysApiFp(configuration).apiGoviewSysLogoutGet(options).then((request) => request(axios, basePath));
},
};
};
/**
* SysApi - object-oriented interface
* @export
* @class SysApi
* @extends {BaseAPI}
*/
export class SysApi extends BaseAPI {
/**
*
* @summary OSS 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SysApi
*/
public async apiGoviewSysGetOssInfoGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<GoViewResultGoViewOssUrlOutput>> {
return SysApiFp(this.configuration).apiGoviewSysGetOssInfoGet(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary GoView 🔖
* @param {GoViewLoginInput} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SysApi
*/
public async apiGoviewSysLoginPost(body?: GoViewLoginInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<GoViewResultGoViewLoginOutput>> {
return SysApiFp(this.configuration).apiGoviewSysLoginPost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary GoView 退 🔖
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SysApi
*/
public async apiGoviewSysLogoutGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
return SysApiFp(this.configuration).apiGoviewSysLogoutGet(options).then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosRequestConfig, AxiosInstance } from 'axios';
export const BASE_PATH = "/".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface RequestArgs
*/
export interface RequestArgs {
url: string;
options: AxiosRequestConfig;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}

View File

@ -0,0 +1,83 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
}
export class Configuration {
/**
* parameter for apiKey security
*
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
username?: string;
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
password?: string;
/**
* parameter for oauth2 security
*
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* override base path
*
* @type {string}
* @memberof Configuration
*/
basePath?: string;
/**
* base options for axios calls
*
* @type {any}
* @memberof Configuration
*/
baseOptions?: any;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
this.username = param.username;
this.password = param.password;
this.accessToken = param.accessToken;
this.basePath = param.basePath;
this.baseOptions = param.baseOptions;
}
}

View File

@ -0,0 +1,18 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
export * from "./api";
export * from "./configuration";
export * from "./models";

View File

@ -0,0 +1,38 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
*
*
* @export
* @interface GoViewLoginInput
*/
export interface GoViewLoginInput {
/**
*
*
* @type {string}
* @memberof GoViewLoginInput
*/
username: string;
/**
*
*
* @type {string}
* @memberof GoViewLoginInput
*/
password: string;
}

View File

@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewLoginToken } from './go-view-login-token';
import { GoViewLoginUserInfo } from './go-view-login-user-info';
/**
*
*
* @export
* @interface GoViewLoginOutput
*/
export interface GoViewLoginOutput {
/**
* @type {GoViewLoginUserInfo}
* @memberof GoViewLoginOutput
*/
userinfo?: GoViewLoginUserInfo;
/**
* @type {GoViewLoginToken}
* @memberof GoViewLoginOutput
*/
token?: GoViewLoginToken;
}

View File

@ -0,0 +1,38 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
* Token
*
* @export
* @interface GoViewLoginToken
*/
export interface GoViewLoginToken {
/**
* Token
*
* @type {string}
* @memberof GoViewLoginToken
*/
tokenName?: string | null;
/**
* Token
*
* @type {string}
* @memberof GoViewLoginToken
*/
tokenValue?: string | null;
}

View File

@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
*
*
* @export
* @interface GoViewLoginUserInfo
*/
export interface GoViewLoginUserInfo {
/**
* Id
*
* @type {string}
* @memberof GoViewLoginUserInfo
*/
id?: string | null;
/**
*
*
* @type {string}
* @memberof GoViewLoginUserInfo
*/
username?: string | null;
/**
*
*
* @type {string}
* @memberof GoViewLoginUserInfo
*/
nickname?: string | null;
}

View File

@ -0,0 +1,38 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
* OSS
*
* @export
* @interface GoViewOssUrlOutput
*/
export interface GoViewOssUrlOutput {
/**
*
*
* @type {string}
* @memberof GoViewOssUrlOutput
*/
bucketName?: string | null;
/**
* BucketURL
*
* @type {string}
* @memberof GoViewOssUrlOutput
*/
bucketURL?: string | null;
}

View File

@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
* GoView
*
* @export
* @interface GoViewProCreateInput
*/
export interface GoViewProCreateInput {
/**
*
*
* @type {string}
* @memberof GoViewProCreateInput
*/
projectName?: string | null;
/**
*
*
* @type {string}
* @memberof GoViewProCreateInput
*/
remarks?: string | null;
/**
* url
*
* @type {string}
* @memberof GoViewProCreateInput
*/
indexImage?: string | null;
}

View File

@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
* GoView
*
* @export
* @interface GoViewProCreateOutput
*/
export interface GoViewProCreateOutput {
/**
* Id
*
* @type {number}
* @memberof GoViewProCreateOutput
*/
id?: number;
}

View File

@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewProStateEnum } from './go-view-pro-state-enum';
/**
* GoView
*
* @export
* @interface GoViewProDetailOutput
*/
export interface GoViewProDetailOutput {
/**
* Id
*
* @type {number}
* @memberof GoViewProDetailOutput
*/
id?: number;
/**
*
*
* @type {string}
* @memberof GoViewProDetailOutput
*/
projectName?: string | null;
/**
* @type {GoViewProStateEnum}
* @memberof GoViewProDetailOutput
*/
stateEnum?: GoViewProStateEnum;
/**
*
*
* @type {Date}
* @memberof GoViewProDetailOutput
*/
createTime?: Date | null;
/**
* url
*
* @type {string}
* @memberof GoViewProDetailOutput
*/
indexImage?: string | null;
/**
* url
*
* @type {string}
* @memberof GoViewProDetailOutput
*/
backGroundImage?: string | null;
/**
* Id
*
* @type {number}
* @memberof GoViewProDetailOutput
*/
createUserId?: number | null;
/**
*
*
* @type {string}
* @memberof GoViewProDetailOutput
*/
remarks?: string | null;
/**
*
*
* @type {string}
* @memberof GoViewProDetailOutput
*/
content?: string | null;
}

View File

@ -0,0 +1,46 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
* GoView
*
* @export
* @interface GoViewProEditInput
*/
export interface GoViewProEditInput {
/**
* Id
*
* @type {number}
* @memberof GoViewProEditInput
*/
id?: number;
/**
*
*
* @type {string}
* @memberof GoViewProEditInput
*/
projectName?: string | null;
/**
* url
*
* @type {string}
* @memberof GoViewProEditInput
*/
indexImage?: string | null;
}

View File

@ -0,0 +1,85 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewProStateEnum } from './go-view-pro-state-enum';
/**
* GoView Item
*
* @export
* @interface GoViewProItemOutput
*/
export interface GoViewProItemOutput {
/**
* Id
*
* @type {number}
* @memberof GoViewProItemOutput
*/
id?: number;
/**
*
*
* @type {string}
* @memberof GoViewProItemOutput
*/
projectName?: string | null;
/**
* @type {GoViewProStateEnum}
* @memberof GoViewProItemOutput
*/
stateEnum?: GoViewProStateEnum;
/**
*
*
* @type {Date}
* @memberof GoViewProItemOutput
*/
createTime?: Date | null;
/**
* url
*
* @type {string}
* @memberof GoViewProItemOutput
*/
indexImage?: string | null;
/**
* url
*
* @type {string}
* @memberof GoViewProItemOutput
*/
backGroundImage?: string | null;
/**
* Id
*
* @type {number}
* @memberof GoViewProItemOutput
*/
createUserId?: number | null;
/**
*
*
* @type {string}
* @memberof GoViewProItemOutput
*/
remarks?: string | null;
}

View File

@ -0,0 +1,37 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewProStateEnum } from './go-view-pro-state-enum';
/**
* GoView
*
* @export
* @interface GoViewProPublishInput
*/
export interface GoViewProPublishInput {
/**
* Id
*
* @type {number}
* @memberof GoViewProPublishInput
*/
id?: number;
/**
* @type {GoViewProStateEnum}
* @memberof GoViewProPublishInput
*/
stateEnum?: GoViewProStateEnum;
}

View File

@ -0,0 +1,24 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
* GoView <br />&nbsp; Published = 1<br />&nbsp; UnPublish = -1<br />
* @export
* @enum {string}
*/
export enum GoViewProStateEnum {
NUMBER_1 = 1,
NUMBER_MINUS_1 = -1
}

View File

@ -0,0 +1,102 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
* GoView
*
* @export
* @interface GoViewProUploadOutput
*/
export interface GoViewProUploadOutput {
/**
* Id
*
* @type {number}
* @memberof GoViewProUploadOutput
*/
id?: number;
/**
*
*
* @type {string}
* @memberof GoViewProUploadOutput
*/
bucketName?: string | null;
/**
*
*
* @type {Date}
* @memberof GoViewProUploadOutput
*/
createTime?: Date | null;
/**
* Id
*
* @type {number}
* @memberof GoViewProUploadOutput
*/
createUserId?: number | null;
/**
*
*
* @type {string}
* @memberof GoViewProUploadOutput
*/
fileName?: string | null;
/**
* KB
*
* @type {number}
* @memberof GoViewProUploadOutput
*/
fileSize?: number;
/**
*
*
* @type {string}
* @memberof GoViewProUploadOutput
*/
fileSuffix?: string | null;
/**
* Url
*
* @type {string}
* @memberof GoViewProUploadOutput
*/
fileUrl?: string | null;
/**
*
*
* @type {Date}
* @memberof GoViewProUploadOutput
*/
updateTime?: Date | null;
/**
* Id
*
* @type {number}
* @memberof GoViewProUploadOutput
*/
updateUserId?: number | null;
}

View File

@ -0,0 +1,53 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewLoginOutput } from './go-view-login-output';
/**
* GoView
*
* @export
* @interface GoViewResultGoViewLoginOutput
*/
export interface GoViewResultGoViewLoginOutput {
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewLoginOutput
*/
code?: number;
/**
*
*
* @type {string}
* @memberof GoViewResultGoViewLoginOutput
*/
msg?: string | null;
/**
* @type {GoViewLoginOutput}
* @memberof GoViewResultGoViewLoginOutput
*/
data?: GoViewLoginOutput;
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewLoginOutput
*/
count?: number | null;
}

View File

@ -0,0 +1,53 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewOssUrlOutput } from './go-view-oss-url-output';
/**
* GoView
*
* @export
* @interface GoViewResultGoViewOssUrlOutput
*/
export interface GoViewResultGoViewOssUrlOutput {
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewOssUrlOutput
*/
code?: number;
/**
*
*
* @type {string}
* @memberof GoViewResultGoViewOssUrlOutput
*/
msg?: string | null;
/**
* @type {GoViewOssUrlOutput}
* @memberof GoViewResultGoViewOssUrlOutput
*/
data?: GoViewOssUrlOutput;
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewOssUrlOutput
*/
count?: number | null;
}

View File

@ -0,0 +1,53 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewProCreateOutput } from './go-view-pro-create-output';
/**
* GoView
*
* @export
* @interface GoViewResultGoViewProCreateOutput
*/
export interface GoViewResultGoViewProCreateOutput {
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewProCreateOutput
*/
code?: number;
/**
*
*
* @type {string}
* @memberof GoViewResultGoViewProCreateOutput
*/
msg?: string | null;
/**
* @type {GoViewProCreateOutput}
* @memberof GoViewResultGoViewProCreateOutput
*/
data?: GoViewProCreateOutput;
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewProCreateOutput
*/
count?: number | null;
}

View File

@ -0,0 +1,53 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewProDetailOutput } from './go-view-pro-detail-output';
/**
* GoView
*
* @export
* @interface GoViewResultGoViewProDetailOutput
*/
export interface GoViewResultGoViewProDetailOutput {
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewProDetailOutput
*/
code?: number;
/**
*
*
* @type {string}
* @memberof GoViewResultGoViewProDetailOutput
*/
msg?: string | null;
/**
* @type {GoViewProDetailOutput}
* @memberof GoViewResultGoViewProDetailOutput
*/
data?: GoViewProDetailOutput;
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewProDetailOutput
*/
count?: number | null;
}

View File

@ -0,0 +1,53 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewProUploadOutput } from './go-view-pro-upload-output';
/**
* GoView
*
* @export
* @interface GoViewResultGoViewProUploadOutput
*/
export interface GoViewResultGoViewProUploadOutput {
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewProUploadOutput
*/
code?: number;
/**
*
*
* @type {string}
* @memberof GoViewResultGoViewProUploadOutput
*/
msg?: string | null;
/**
* @type {GoViewProUploadOutput}
* @memberof GoViewResultGoViewProUploadOutput
*/
data?: GoViewProUploadOutput;
/**
*
*
* @type {number}
* @memberof GoViewResultGoViewProUploadOutput
*/
count?: number | null;
}

View File

@ -0,0 +1,55 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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 { GoViewProItemOutput } from './go-view-pro-item-output';
/**
* GoView
*
* @export
* @interface GoViewResultListGoViewProItemOutput
*/
export interface GoViewResultListGoViewProItemOutput {
/**
*
*
* @type {number}
* @memberof GoViewResultListGoViewProItemOutput
*/
code?: number;
/**
*
*
* @type {string}
* @memberof GoViewResultListGoViewProItemOutput
*/
msg?: string | null;
/**
*
*
* @type {Array<GoViewProItemOutput>}
* @memberof GoViewResultListGoViewProItemOutput
*/
data?: Array<GoViewProItemOutput> | null;
/**
*
*
* @type {number}
* @memberof GoViewResultListGoViewProItemOutput
*/
count?: number | null;
}

View File

@ -0,0 +1,22 @@
export * from './go-view-login-input';
export * from './go-view-login-output';
export * from './go-view-login-token';
export * from './go-view-login-user-info';
export * from './go-view-oss-url-output';
export * from './go-view-pro-create-input';
export * from './go-view-pro-create-output';
export * from './go-view-pro-detail-output';
export * from './go-view-pro-edit-input';
export * from './go-view-pro-item-output';
export * from './go-view-pro-publish-input';
export * from './go-view-pro-state-enum';
export * from './go-view-pro-upload-output';
export * from './go-view-result-go-view-login-output';
export * from './go-view-result-go-view-oss-url-output';
export * from './go-view-result-go-view-pro-create-output';
export * from './go-view-result-go-view-pro-detail-output';
export * from './go-view-result-go-view-pro-upload-output';
export * from './go-view-result-list-go-view-pro-item-output';
export * from './project-upload-back-ground-body';
export * from './project-upload-body';
export * from './save-data-body';

View File

@ -0,0 +1,28 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
*
*
* @export
* @interface ProjectUploadBackGroundBody
*/
export interface ProjectUploadBackGroundBody {
/**
* @type {Blob}
* @memberof ProjectUploadBackGroundBody
*/
object?: Blob;
}

View File

@ -0,0 +1,28 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
*
*
* @export
* @interface ProjectUploadBody
*/
export interface ProjectUploadBody {
/**
* @type {Blob}
* @memberof ProjectUploadBody
*/
object?: Blob;
}

View File

@ -0,0 +1,38 @@
/* tslint:disable */
/* eslint-disable */
/**
* GoView
* GoView <br/><u><b><font color='FF0000'> 👮</font></b></u>
*
* OpenAPI spec version: 2.2.8
*
*
* 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.
*/
/**
*
*
* @export
* @interface SaveDataBody
*/
export interface SaveDataBody {
/**
* Id
*
* @type {number}
* @memberof SaveDataBody
*/
projectId?: number;
/**
*
*
* @type {string}
* @memberof SaveDataBody
*/
content?: string;
}

View File

@ -0,0 +1,15 @@
/* tslint:disable */
/* eslint-disable */
/**
* PaddleOCR
* <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.
*/
export * from './apis/paddle-ocrapi';

View File

@ -0,0 +1,142 @@
/* tslint:disable */
/* eslint-disable */
/**
* PaddleOCR
* <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 { AdminResultObject } from '../models';
/**
* PaddleOCRApi - axios parameter creator
* @export
*/
export const PaddleOCRApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary 🔖
* @param {Blob} [file]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiPaddleOCRIDCardOCRPostForm: async (file?: Blob, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/paddleOCR/iDCardOCR`;
// 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;
const localVarFormParams = new FormData();
// 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 (file !== undefined) {
localVarFormParams.append('file', file as any);
}
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
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};
localVarRequestOptions.data = localVarFormParams;
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
}
};
/**
* PaddleOCRApi - functional programming interface
* @export
*/
export const PaddleOCRApiFp = function(configuration?: Configuration) {
return {
/**
*
* @summary 🔖
* @param {Blob} [file]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiPaddleOCRIDCardOCRPostForm(file?: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
const localVarAxiosArgs = await PaddleOCRApiAxiosParamCreator(configuration).apiPaddleOCRIDCardOCRPostForm(file, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
}
};
/**
* PaddleOCRApi - factory interface
* @export
*/
export const PaddleOCRApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
return {
/**
*
* @summary 🔖
* @param {Blob} [file]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiPaddleOCRIDCardOCRPostForm(file?: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
return PaddleOCRApiFp(configuration).apiPaddleOCRIDCardOCRPostForm(file, options).then((request) => request(axios, basePath));
},
};
};
/**
* PaddleOCRApi - object-oriented interface
* @export
* @class PaddleOCRApi
* @extends {BaseAPI}
*/
export class PaddleOCRApi extends BaseAPI {
/**
*
* @summary 🔖
* @param {Blob} [file]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PaddleOCRApi
*/
public async apiPaddleOCRIDCardOCRPostForm(file?: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
return PaddleOCRApiFp(this.configuration).apiPaddleOCRIDCardOCRPostForm(file, options).then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
* PaddleOCR
* <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 { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosRequestConfig, AxiosInstance } from 'axios';
export const BASE_PATH = "/".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface RequestArgs
*/
export interface RequestArgs {
url: string;
options: AxiosRequestConfig;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}

View File

@ -0,0 +1,83 @@
/* tslint:disable */
/* eslint-disable */
/**
* PaddleOCR
* <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.
*/
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
}
export class Configuration {
/**
* parameter for apiKey security
*
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
username?: string;
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
password?: string;
/**
* parameter for oauth2 security
*
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* override base path
*
* @type {string}
* @memberof Configuration
*/
basePath?: string;
/**
* base options for axios calls
*
* @type {any}
* @memberof Configuration
*/
baseOptions?: any;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
this.username = param.username;
this.password = param.password;
this.accessToken = param.accessToken;
this.basePath = param.basePath;
this.baseOptions = param.baseOptions;
}
}

View File

@ -0,0 +1,18 @@
/* tslint:disable */
/* eslint-disable */
/**
* PaddleOCR
* <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.
*/
export * from "./api";
export * from "./configuration";
export * from "./models";

View File

@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
* PaddleOCR
* <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.
*/
/**
*
*
* @export
* @interface AdminResultObject
*/
export interface AdminResultObject {
/**
*
*
* @type {number}
* @memberof AdminResultObject
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultObject
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultObject
*/
message?: string | null;
/**
*
*
* @type {any}
* @memberof AdminResultObject
*/
result?: any | null;
/**
*
*
* @type {any}
* @memberof AdminResultObject
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultObject
*/
time?: Date;
}

View File

@ -0,0 +1,2 @@
export * from './admin-result-object';
export * from './paddle-ocridcard-ocrbody';

View File

@ -0,0 +1,28 @@
/* tslint:disable */
/* eslint-disable */
/**
* PaddleOCR
* <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.
*/
/**
*
*
* @export
* @interface PaddleOCRIDCardOCRBody
*/
export interface PaddleOCRIDCardOCRBody {
/**
* @type {Blob}
* @memberof PaddleOCRIDCardOCRBody
*/
file: Blob;
}