Prechádzať zdrojové kódy

替换api-services相关文件

LLL 1 rok pred
rodič
commit
a37aeac28e

+ 7 - 8
Web/src/api-services/apis/sys-auth-api.ts

@@ -21,7 +21,6 @@ import { AdminResultBoolean } from '../models';
 import { AdminResultLoginOutput } from '../models';
 import { AdminResultLoginUserOutput } from '../models';
 import { AdminResultObject } from '../models';
-import { AdminResultString } from '../models';
 import { LoginInput } from '../models';
 import { LoginPhoneInput } from '../models';
 import { UserRegistrationInput } from '../models';
@@ -324,7 +323,7 @@ export const SysAuthApiAxiosParamCreator = function (configuration?: Configurati
         /**
          * 
          * @summary 获取刷新Token 🔖
-         * @param {string} [accessToken] 
+         * @param {string} [accessToken] 旧的AccessToken
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
@@ -606,11 +605,11 @@ export const SysAuthApiFp = function(configuration?: Configuration) {
         /**
          * 
          * @summary 获取刷新Token 🔖
-         * @param {string} [accessToken] 
+         * @param {string} [accessToken] 旧的AccessToken
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
-        async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultString>>> {
+        async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultLoginOutput>>> {
             const localVarAxiosArgs = await SysAuthApiAxiosParamCreator(configuration).apiSysAuthRefreshTokenGet(accessToken, options);
             return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
                 const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
@@ -728,11 +727,11 @@ export const SysAuthApiFactory = function (configuration?: Configuration, basePa
         /**
          * 
          * @summary 获取刷新Token 🔖
-         * @param {string} [accessToken] 
+         * @param {string} [accessToken] 旧的AccessToken
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
-        async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultString>> {
+        async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultLoginOutput>> {
             return SysAuthApiFp(configuration).apiSysAuthRefreshTokenGet(accessToken, options).then((request) => request(axios, basePath));
         },
         /**
@@ -841,12 +840,12 @@ export class SysAuthApi extends BaseAPI {
     /**
      * 
      * @summary 获取刷新Token 🔖
-     * @param {string} [accessToken] 
+     * @param {string} [accessToken] 旧的AccessToken
      * @param {*} [options] Override http request option.
      * @throws {RequiredError}
      * @memberof SysAuthApi
      */
-    public async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultString>> {
+    public async apiSysAuthRefreshTokenGet(accessToken?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultLoginOutput>> {
         return SysAuthApiFp(this.configuration).apiSysAuthRefreshTokenGet(accessToken, options).then((request) => request(this.axios, this.basePath));
     }
     /**

+ 4 - 3
Web/src/api-services/apis/sys-database-api.ts

@@ -20,6 +20,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
 import { AdminResultListDbColumnOutput } from '../models';
 import { AdminResultListDbTableInfo } from '../models';
 import { AdminResultListString } from '../models';
+import { AdminResultListVisualDb } from '../models';
 import { AdminResultVisualDbTable } from '../models';
 import { CreateEntityInput } from '../models';
 import { CreateSeedDataInput } from '../models';
@@ -842,7 +843,7 @@ export const SysDatabaseApiFp = function(configuration?: Configuration) {
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
-        async apiSysDatabaseListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListString>>> {
+        async apiSysDatabaseListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListVisualDb>>> {
             const localVarAxiosArgs = await SysDatabaseApiAxiosParamCreator(configuration).apiSysDatabaseListGet(options);
             return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
                 const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
@@ -1009,7 +1010,7 @@ export const SysDatabaseApiFactory = function (configuration?: Configuration, ba
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
-        async apiSysDatabaseListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListString>> {
+        async apiSysDatabaseListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListVisualDb>> {
             return SysDatabaseApiFp(configuration).apiSysDatabaseListGet(options).then((request) => request(axios, basePath));
         },
         /**
@@ -1167,7 +1168,7 @@ export class SysDatabaseApi extends BaseAPI {
      * @throws {RequiredError}
      * @memberof SysDatabaseApi
      */
-    public async apiSysDatabaseListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListString>> {
+    public async apiSysDatabaseListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListVisualDb>> {
         return SysDatabaseApiFp(this.configuration).apiSysDatabaseListGet(options).then((request) => request(this.axios, this.basePath));
     }
     /**

+ 75 - 0
Web/src/api-services/apis/sys-region-api.ts

@@ -269,6 +269,49 @@ export const SysRegionApiAxiosParamCreator = function (configuration?: Configura
                 options: localVarRequestOptions,
             };
         },
+        /**
+         * 
+         * @summary 获取行政区域树 🔖
+         * @param {*} [options] Override http request option.
+         * @throws {RequiredError}
+         */
+        apiSysRegionTreeGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+            const localVarPath = `/api/sysRegion/tree`;
+            // 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 更新行政区域 🔖
@@ -395,6 +438,19 @@ export const SysRegionApiFp = function(configuration?: Configuration) {
                 return axios.request(axiosRequestArgs);
             };
         },
+        /**
+         * 
+         * @summary 获取行政区域树 🔖
+         * @param {*} [options] Override http request option.
+         * @throws {RequiredError}
+         */
+        async apiSysRegionTreeGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysRegion>>> {
+            const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionTreeGet(options);
+            return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
+                const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
+                return axios.request(axiosRequestArgs);
+            };
+        },
         /**
          * 
          * @summary 更新行政区域 🔖
@@ -467,6 +523,15 @@ export const SysRegionApiFactory = function (configuration?: Configuration, base
         async apiSysRegionSyncPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
             return SysRegionApiFp(configuration).apiSysRegionSyncPost(options).then((request) => request(axios, basePath));
         },
+        /**
+         * 
+         * @summary 获取行政区域树 🔖
+         * @param {*} [options] Override http request option.
+         * @throws {RequiredError}
+         */
+        async apiSysRegionTreeGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysRegion>> {
+            return SysRegionApiFp(configuration).apiSysRegionTreeGet(options).then((request) => request(axios, basePath));
+        },
         /**
          * 
          * @summary 更新行政区域 🔖
@@ -541,6 +606,16 @@ export class SysRegionApi extends BaseAPI {
     public async apiSysRegionSyncPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
         return SysRegionApiFp(this.configuration).apiSysRegionSyncPost(options).then((request) => request(this.axios, this.basePath));
     }
+    /**
+     * 
+     * @summary 获取行政区域树 🔖
+     * @param {*} [options] Override http request option.
+     * @throws {RequiredError}
+     * @memberof SysRegionApi
+     */
+    public async apiSysRegionTreeGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysRegion>> {
+        return SysRegionApiFp(this.configuration).apiSysRegionTreeGet(options).then((request) => request(this.axios, this.basePath));
+    }
     /**
      * 
      * @summary 更新行政区域 🔖

+ 4 - 4
Web/src/api-services/apis/sys-tenant-config-api.ts

@@ -180,7 +180,7 @@ export const SysTenantConfigApiAxiosParamCreator = function (configuration?: Con
         /**
          * 
          * @summary 根据Code获取配置参数值 🔖
-         * @param {string} code 
+         * @param {string} code 编码
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
@@ -567,7 +567,7 @@ export const SysTenantConfigApiFp = function(configuration?: Configuration) {
         /**
          * 
          * @summary 根据Code获取配置参数值 🔖
-         * @param {string} code 
+         * @param {string} code 编码
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
@@ -703,7 +703,7 @@ export const SysTenantConfigApiFactory = function (configuration?: Configuration
         /**
          * 
          * @summary 根据Code获取配置参数值 🔖
-         * @param {string} code 
+         * @param {string} code 编码
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
@@ -815,7 +815,7 @@ export class SysTenantConfigApi extends BaseAPI {
     /**
      * 
      * @summary 根据Code获取配置参数值 🔖
-     * @param {string} code 
+     * @param {string} code 编码
      * @param {*} [options] Override http request option.
      * @throws {RequiredError}
      * @memberof SysTenantConfigApi

+ 4 - 4
Web/src/api-services/apis/sys-user-config-api.ts

@@ -180,7 +180,7 @@ export const SysUserConfigApiAxiosParamCreator = function (configuration?: Confi
         /**
          * 
          * @summary 根据Code获取配置参数值 🔖
-         * @param {string} code 
+         * @param {string} code 编码
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
@@ -567,7 +567,7 @@ export const SysUserConfigApiFp = function(configuration?: Configuration) {
         /**
          * 
          * @summary 根据Code获取配置参数值 🔖
-         * @param {string} code 
+         * @param {string} code 编码
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
@@ -703,7 +703,7 @@ export const SysUserConfigApiFactory = function (configuration?: Configuration,
         /**
          * 
          * @summary 根据Code获取配置参数值 🔖
-         * @param {string} code 
+         * @param {string} code 编码
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
@@ -815,7 +815,7 @@ export class SysUserConfigApi extends BaseAPI {
     /**
      * 
      * @summary 根据Code获取配置参数值 🔖
-     * @param {string} code 
+     * @param {string} code 编码
      * @param {*} [options] Override http request option.
      * @throws {RequiredError}
      * @memberof SysUserConfigApi

+ 7 - 7
Web/src/api-services/models/add-tenant-input.ts

@@ -160,7 +160,7 @@ export interface AddTenantInput {
      * @type {string}
      * @memberof AddTenantInput
      */
-    logo: string;
+    logo?: string | null;
 
     /**
      * 水印
@@ -230,7 +230,7 @@ export interface AddTenantInput {
      * @type {string}
      * @memberof AddTenantInput
      */
-    title: string;
+    title?: string | null;
 
     /**
      * 系统副标题
@@ -238,7 +238,7 @@ export interface AddTenantInput {
      * @type {string}
      * @memberof AddTenantInput
      */
-    viceTitle: string;
+    viceTitle?: string | null;
 
     /**
      * 系统描述
@@ -246,7 +246,7 @@ export interface AddTenantInput {
      * @type {string}
      * @memberof AddTenantInput
      */
-    viceDesc: string;
+    viceDesc?: string | null;
 
     /**
      * 版权说明
@@ -254,7 +254,7 @@ export interface AddTenantInput {
      * @type {string}
      * @memberof AddTenantInput
      */
-    copyright: string;
+    copyright?: string | null;
 
     /**
      * ICP备案号
@@ -262,7 +262,7 @@ export interface AddTenantInput {
      * @type {string}
      * @memberof AddTenantInput
      */
-    icp: string;
+    icp?: string | null;
 
     /**
      * ICP地址
@@ -270,7 +270,7 @@ export interface AddTenantInput {
      * @type {string}
      * @memberof AddTenantInput
      */
-    icpUrl: string;
+    icpUrl?: string | null;
 
     /**
      * Logo图片Base64码

+ 71 - 0
Web/src/api-services/models/admin-result-list-visual-db.ts

@@ -0,0 +1,71 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Admin.NET 通用权限开发平台
+ * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
+ *
+ * OpenAPI spec version: 1.0.0
+ * 
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+import { VisualDb } from './visual-db';
+ /**
+ * 全局返回结果
+ *
+ * @export
+ * @interface AdminResultListVisualDb
+ */
+export interface AdminResultListVisualDb {
+
+    /**
+     * 状态码
+     *
+     * @type {number}
+     * @memberof AdminResultListVisualDb
+     */
+    code?: number;
+
+    /**
+     * 类型success、warning、error
+     *
+     * @type {string}
+     * @memberof AdminResultListVisualDb
+     */
+    type?: string | null;
+
+    /**
+     * 错误信息
+     *
+     * @type {string}
+     * @memberof AdminResultListVisualDb
+     */
+    message?: string | null;
+
+    /**
+     * 数据
+     *
+     * @type {Array<VisualDb>}
+     * @memberof AdminResultListVisualDb
+     */
+    result?: Array<VisualDb> | null;
+
+    /**
+     * 附加数据
+     *
+     * @type {any}
+     * @memberof AdminResultListVisualDb
+     */
+    extras?: any | null;
+
+    /**
+     * 时间
+     *
+     * @type {Date}
+     * @memberof AdminResultListVisualDb
+     */
+    time?: Date;
+}

+ 8 - 0
Web/src/api-services/models/database-output.ts

@@ -29,6 +29,14 @@ export interface DatabaseOutput {
      */
     configId?: string | null;
 
+    /**
+     * 库名
+     *
+     * @type {string}
+     * @memberof DatabaseOutput
+     */
+    dbNickName?: string | null;
+
     /**
      * @type {DbType}
      * @memberof DatabaseOutput

+ 3 - 0
Web/src/api-services/models/db-type.ts

@@ -48,6 +48,9 @@ export enum DbType {
     NUMBER_27 = 27,
     NUMBER_28 = 28,
     NUMBER_29 = 29,
+    NUMBER_30 = 30,
+    NUMBER_31 = 31,
+    NUMBER_32 = 32,
     NUMBER_900 = 900
 }
 

+ 2 - 0
Web/src/api-services/models/generate-qrimage-un-limit-input.ts

@@ -45,6 +45,8 @@ export interface GenerateQRImageUnLimitInput {
     width?: number;
 
     /**
+     * 二维码携带的参数 eg:a=1(最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:<!-- !#$&'()*+,/:;=?@-._~ -->)
+     *
      * @type {string}
      * @memberof GenerateQRImageUnLimitInput
      */

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

@@ -66,6 +66,7 @@ export * from './admin-result-list-sys-wechat-refund';
 export * from './admin-result-list-table-output';
 export * from './admin-result-list-tree-node';
 export * from './admin-result-list-user-reg-way-output';
+export * from './admin-result-list-visual-db';
 export * from './admin-result-login-output';
 export * from './admin-result-login-user-output';
 export * from './admin-result-object';
@@ -425,6 +426,7 @@ export * from './user-reg-way-output';
 export * from './user-registration-input';
 export * from './user-role-input';
 export * from './visual-column';
+export * from './visual-db';
 export * from './visual-db-table';
 export * from './visual-table';
 export * from './wechat-pay-output';

+ 1 - 1
Web/src/api-services/models/page-dict-data-input.ts

@@ -96,7 +96,7 @@ export interface PageDictDataInput {
      * @type {string}
      * @memberof PageDictDataInput
      */
-    lable?: string | null;
+    label?: string | null;
 
     /**
      * 编码

+ 8 - 0
Web/src/api-services/models/sys-code-gen.ts

@@ -109,6 +109,14 @@ export interface SysCodeGen {
      */
     configId?: string | null;
 
+    /**
+     * 库名
+     *
+     * @type {string}
+     * @memberof SysCodeGen
+     */
+    dbNickName?: string | null;
+
     /**
      * 数据库名(保留字段)
      *

+ 1 - 1
Web/src/api-services/models/tenant-output.ts

@@ -160,7 +160,7 @@ export interface TenantOutput {
      * @type {string}
      * @memberof TenantOutput
      */
-    logo: string;
+    logo?: string | null;
 
     /**
      * 标题

+ 7 - 7
Web/src/api-services/models/update-tenant-input.ts

@@ -160,7 +160,7 @@ export interface UpdateTenantInput {
      * @type {string}
      * @memberof UpdateTenantInput
      */
-    logo: string;
+    logo?: string | null;
 
     /**
      * 水印
@@ -230,7 +230,7 @@ export interface UpdateTenantInput {
      * @type {string}
      * @memberof UpdateTenantInput
      */
-    title: string;
+    title?: string | null;
 
     /**
      * 系统副标题
@@ -238,7 +238,7 @@ export interface UpdateTenantInput {
      * @type {string}
      * @memberof UpdateTenantInput
      */
-    viceTitle: string;
+    viceTitle?: string | null;
 
     /**
      * 系统描述
@@ -246,7 +246,7 @@ export interface UpdateTenantInput {
      * @type {string}
      * @memberof UpdateTenantInput
      */
-    viceDesc: string;
+    viceDesc?: string | null;
 
     /**
      * 版权说明
@@ -254,7 +254,7 @@ export interface UpdateTenantInput {
      * @type {string}
      * @memberof UpdateTenantInput
      */
-    copyright: string;
+    copyright?: string | null;
 
     /**
      * ICP备案号
@@ -262,7 +262,7 @@ export interface UpdateTenantInput {
      * @type {string}
      * @memberof UpdateTenantInput
      */
-    icp: string;
+    icp?: string | null;
 
     /**
      * ICP地址
@@ -270,7 +270,7 @@ export interface UpdateTenantInput {
      * @type {string}
      * @memberof UpdateTenantInput
      */
-    icpUrl: string;
+    icpUrl?: string | null;
 
     /**
      * Logo图片Base64码

+ 34 - 0
Web/src/api-services/models/visual-db.ts

@@ -0,0 +1,34 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Admin.NET 通用权限开发平台
+ * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
+ *
+ * OpenAPI spec version: 1.0.0
+ * 
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+ /**
+ * 
+ *
+ * @export
+ * @interface VisualDb
+ */
+export interface VisualDb {
+
+    /**
+     * @type {string}
+     * @memberof VisualDb
+     */
+    configId?: string | null;
+
+    /**
+     * @type {string}
+     * @memberof VisualDb
+     */
+    dbNickName?: string | null;
+}