瀏覽代碼

chore: 移除多余的 api 请求代理

许俊杰 3 年之前
父節點
當前提交
11f5c426ad

+ 0 - 14
Web/src/api-services/_business/api.ts

@@ -1,14 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * 租户业务服务
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * 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/tenant-business-api';
-

+ 0 - 191
Web/src/api-services/_business/apis/tenant-business-api.ts

@@ -1,191 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * 租户业务服务
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * 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 { AdminResultBoolean } from '../models';
-import { AdminResultListTenantBusiness } from '../models';
-/**
- * TenantBusinessApi - axios parameter creator
- * @export
- */
-export const TenantBusinessApiAxiosParamCreator = function (configuration?: Configuration) {
-    return {
-        /**
-         * 
-         * @summary 增加租户业务数据
-         * @param {*} [options] Override http request option.
-         * @throws {RequiredError}
-         */
-        apiTenantBusinessAddBusinessPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
-            const localVarPath = `/api/tenantBusiness/addBusiness`;
-            // 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
-
-            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}
-         */
-        apiTenantBusinessGetBusinessListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
-            const localVarPath = `/api/tenantBusiness/getBusinessList`;
-            // 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
-
-            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,
-            };
-        },
-    }
-};
-
-/**
- * TenantBusinessApi - functional programming interface
- * @export
- */
-export const TenantBusinessApiFp = function(configuration?: Configuration) {
-    return {
-        /**
-         * 
-         * @summary 增加租户业务数据
-         * @param {*} [options] Override http request option.
-         * @throws {RequiredError}
-         */
-        async apiTenantBusinessAddBusinessPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultBoolean>>> {
-            const localVarAxiosArgs = await TenantBusinessApiAxiosParamCreator(configuration).apiTenantBusinessAddBusinessPost(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 apiTenantBusinessGetBusinessListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListTenantBusiness>>> {
-            const localVarAxiosArgs = await TenantBusinessApiAxiosParamCreator(configuration).apiTenantBusinessGetBusinessListGet(options);
-            return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
-                const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
-                return axios.request(axiosRequestArgs);
-            };
-        },
-    }
-};
-
-/**
- * TenantBusinessApi - factory interface
- * @export
- */
-export const TenantBusinessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
-    return {
-        /**
-         * 
-         * @summary 增加租户业务数据
-         * @param {*} [options] Override http request option.
-         * @throws {RequiredError}
-         */
-        async apiTenantBusinessAddBusinessPost(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultBoolean>> {
-            return TenantBusinessApiFp(configuration).apiTenantBusinessAddBusinessPost(options).then((request) => request(axios, basePath));
-        },
-        /**
-         * 
-         * @summary 查询租户业务数据
-         * @param {*} [options] Override http request option.
-         * @throws {RequiredError}
-         */
-        async apiTenantBusinessGetBusinessListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListTenantBusiness>> {
-            return TenantBusinessApiFp(configuration).apiTenantBusinessGetBusinessListGet(options).then((request) => request(axios, basePath));
-        },
-    };
-};
-
-/**
- * TenantBusinessApi - object-oriented interface
- * @export
- * @class TenantBusinessApi
- * @extends {BaseAPI}
- */
-export class TenantBusinessApi extends BaseAPI {
-    /**
-     * 
-     * @summary 增加租户业务数据
-     * @param {*} [options] Override http request option.
-     * @throws {RequiredError}
-     * @memberof TenantBusinessApi
-     */
-    public async apiTenantBusinessAddBusinessPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultBoolean>> {
-        return TenantBusinessApiFp(this.configuration).apiTenantBusinessAddBusinessPost(options).then((request) => request(this.axios, this.basePath));
-    }
-    /**
-     * 
-     * @summary 查询租户业务数据
-     * @param {*} [options] Override http request option.
-     * @throws {RequiredError}
-     * @memberof TenantBusinessApi
-     */
-    public async apiTenantBusinessGetBusinessListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListTenantBusiness>> {
-        return TenantBusinessApiFp(this.configuration).apiTenantBusinessGetBusinessListGet(options).then((request) => request(this.axios, this.basePath));
-    }
-}

+ 0 - 16
Web/src/api-services/_business/index.ts

@@ -1,16 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * 租户业务服务
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * 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 "./models";
-

+ 0 - 56
Web/src/api-services/_business/models/admin-result-boolean.ts

@@ -1,56 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * 租户业务服务
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * 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 AdminResultBoolean
- */
-export interface AdminResultBoolean {
-    /**
-     * 状态码
-     * @type {number}
-     * @memberof AdminResultBoolean
-     */
-    code?: number;
-    /**
-     * 类型success、warning、error
-     * @type {string}
-     * @memberof AdminResultBoolean
-     */
-    type?: string | null;
-    /**
-     * 错误信息
-     * @type {string}
-     * @memberof AdminResultBoolean
-     */
-    message?: string | null;
-    /**
-     * 数据
-     * @type {boolean}
-     * @memberof AdminResultBoolean
-     */
-    result?: boolean;
-    /**
-     * 附加数据
-     * @type {any}
-     * @memberof AdminResultBoolean
-     */
-    extras?: any | null;
-    /**
-     * 时间
-     * @type {Date}
-     * @memberof AdminResultBoolean
-     */
-    time?: Date;
-}

+ 0 - 57
Web/src/api-services/_business/models/admin-result-list-tenant-business.ts

@@ -1,57 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * 租户业务服务
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * 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 { TenantBusiness } from './tenant-business';
-/**
- * 全局返回结果
- * @export
- * @interface AdminResultListTenantBusiness
- */
-export interface AdminResultListTenantBusiness {
-    /**
-     * 状态码
-     * @type {number}
-     * @memberof AdminResultListTenantBusiness
-     */
-    code?: number;
-    /**
-     * 类型success、warning、error
-     * @type {string}
-     * @memberof AdminResultListTenantBusiness
-     */
-    type?: string | null;
-    /**
-     * 错误信息
-     * @type {string}
-     * @memberof AdminResultListTenantBusiness
-     */
-    message?: string | null;
-    /**
-     * 数据
-     * @type {Array<TenantBusiness>}
-     * @memberof AdminResultListTenantBusiness
-     */
-    result?: Array<TenantBusiness> | null;
-    /**
-     * 附加数据
-     * @type {any}
-     * @memberof AdminResultListTenantBusiness
-     */
-    extras?: any | null;
-    /**
-     * 时间
-     * @type {Date}
-     * @memberof AdminResultListTenantBusiness
-     */
-    time?: Date;
-}

+ 0 - 3
Web/src/api-services/_business/models/index.ts

@@ -1,3 +0,0 @@
-export * from './admin-result-boolean';
-export * from './admin-result-list-tenant-business';
-export * from './tenant-business';

+ 0 - 74
Web/src/api-services/_business/models/tenant-business.ts

@@ -1,74 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * 租户业务服务
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
- *
- * 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 TenantBusiness
- */
-export interface TenantBusiness {
-    /**
-     * 雪花Id
-     * @type {number}
-     * @memberof TenantBusiness
-     */
-    id?: number;
-    /**
-     * 创建时间
-     * @type {Date}
-     * @memberof TenantBusiness
-     */
-    createTime?: Date | null;
-    /**
-     * 更新时间
-     * @type {Date}
-     * @memberof TenantBusiness
-     */
-    updateTime?: Date | null;
-    /**
-     * 创建者Id
-     * @type {number}
-     * @memberof TenantBusiness
-     */
-    createUserId?: number | null;
-    /**
-     * 修改者Id
-     * @type {number}
-     * @memberof TenantBusiness
-     */
-    updateUserId?: number | null;
-    /**
-     * 软删除
-     * @type {boolean}
-     * @memberof TenantBusiness
-     */
-    isDelete?: boolean;
-    /**
-     * 姓名
-     * @type {string}
-     * @memberof TenantBusiness
-     */
-    name: string;
-    /**
-     * 年龄
-     * @type {number}
-     * @memberof TenantBusiness
-     */
-    age?: number;
-    /**
-     * 出生日期
-     * @type {Date}
-     * @memberof TenantBusiness
-     */
-    birthDate?: Date;
-}