Jelajahi Sumber

chore: 更新前端API代码

喵你个旺呀 1 tahun lalu
induk
melakukan
339a655c86

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

@@ -19,6 +19,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
 import { AddSysLdapInput } from '../models';
 import { AdminResultInt64 } from '../models';
 import { AdminResultListSysLdap } from '../models';
+import { AdminResultListSysUserLdap } from '../models';
 import { AdminResultSqlSugarPagedListSysLdap } from '../models';
 import { AdminResultSysLdap } from '../models';
 import { DeleteSysLdapInput } from '../models';
@@ -513,7 +514,7 @@ export const SysLdapApiFp = function(configuration?: Configuration) {
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
-        async apiSysLdapSyncUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
+        async apiSysLdapSyncUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysUserLdap>>> {
             const localVarAxiosArgs = await SysLdapApiAxiosParamCreator(configuration).apiSysLdapSyncUserPost(body, options);
             return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
                 const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
@@ -609,7 +610,7 @@ export const SysLdapApiFactory = function (configuration?: Configuration, basePa
          * @param {*} [options] Override http request option.
          * @throws {RequiredError}
          */
-        async apiSysLdapSyncUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
+        async apiSysLdapSyncUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysUserLdap>> {
             return SysLdapApiFp(configuration).apiSysLdapSyncUserPost(body, options).then((request) => request(axios, basePath));
         },
         /**
@@ -705,7 +706,7 @@ export class SysLdapApi extends BaseAPI {
      * @throws {RequiredError}
      * @memberof SysLdapApi
      */
-    public async apiSysLdapSyncUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
+    public async apiSysLdapSyncUserPost(body?: SyncSysLdapInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysUserLdap>> {
         return SysLdapApiFp(this.configuration).apiSysLdapSyncUserPost(body, options).then((request) => request(this.axios, this.basePath));
     }
     /**

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

@@ -73,49 +73,6 @@ export const SysUserMenuApiAxiosParamCreator = function (configuration?: Configu
                 options: localVarRequestOptions,
             };
         },
-        /**
-         * 
-         * @summary 清空当前用户收藏的菜单 🔖
-         * @param {*} [options] Override http request option.
-         * @throws {RequiredError}
-         */
-        apiSysUserMenuClearUserMenuPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
-            const localVarPath = `/api/sysUserMenu/clearUserMenu`;
-            // use dummy base URL string because the URL constructor only accepts absolute URLs.
-            const localVarUrlObj = new URL(localVarPath, 'https://example.com');
-            let baseOptions;
-            if (configuration) {
-                baseOptions = configuration.baseOptions;
-            }
-            const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
-            const localVarHeaderParameter = {} as any;
-            const localVarQueryParameter = {} as any;
-
-            // authentication Bearer required
-            // http bearer authentication required
-            if (configuration && configuration.accessToken) {
-                const accessToken = typeof configuration.accessToken === 'function'
-                    ? await configuration.accessToken()
-                    : await configuration.accessToken;
-                localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
-            }
-
-            const query = new URLSearchParams(localVarUrlObj.search);
-            for (const key in localVarQueryParameter) {
-                query.set(key, localVarQueryParameter[key]);
-            }
-            for (const key in options.params) {
-                query.set(key, options.params[key]);
-            }
-            localVarUrlObj.search = (new URLSearchParams(query)).toString();
-            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
-            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
-            return {
-                url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
-                options: localVarRequestOptions,
-            };
-        },
         /**
          * 
          * @summary 取消收藏菜单 🔖
@@ -273,19 +230,6 @@ export const SysUserMenuApiFp = function(configuration?: Configuration) {
                 return axios.request(axiosRequestArgs);
             };
         },
-        /**
-         * 
-         * @summary 清空当前用户收藏的菜单 🔖
-         * @param {*} [options] Override http request option.
-         * @throws {RequiredError}
-         */
-        async apiSysUserMenuClearUserMenuPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
-            const localVarAxiosArgs = await SysUserMenuApiAxiosParamCreator(configuration).apiSysUserMenuClearUserMenuPost(options);
-            return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
-                const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
-                return axios.request(axiosRequestArgs);
-            };
-        },
         /**
          * 
          * @summary 取消收藏菜单 🔖
@@ -345,15 +289,6 @@ export const SysUserMenuApiFactory = function (configuration?: Configuration, ba
         async apiSysUserMenuAddPost(body?: UserMenuInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
             return SysUserMenuApiFp(configuration).apiSysUserMenuAddPost(body, options).then((request) => request(axios, basePath));
         },
-        /**
-         * 
-         * @summary 清空当前用户收藏的菜单 🔖
-         * @param {*} [options] Override http request option.
-         * @throws {RequiredError}
-         */
-        async apiSysUserMenuClearUserMenuPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
-            return SysUserMenuApiFp(configuration).apiSysUserMenuClearUserMenuPost(options).then((request) => request(axios, basePath));
-        },
         /**
          * 
          * @summary 取消收藏菜单 🔖
@@ -403,16 +338,6 @@ export class SysUserMenuApi extends BaseAPI {
     public async apiSysUserMenuAddPost(body?: UserMenuInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
         return SysUserMenuApiFp(this.configuration).apiSysUserMenuAddPost(body, options).then((request) => request(this.axios, this.basePath));
     }
-    /**
-     * 
-     * @summary 清空当前用户收藏的菜单 🔖
-     * @param {*} [options] Override http request option.
-     * @throws {RequiredError}
-     * @memberof SysUserMenuApi
-     */
-    public async apiSysUserMenuClearUserMenuPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
-        return SysUserMenuApiFp(this.configuration).apiSysUserMenuClearUserMenuPost(options).then((request) => request(this.axios, this.basePath));
-    }
     /**
      * 
      * @summary 取消收藏菜单 🔖

+ 57 - 0
Web/src/api-services/models/admin-result-list-sys-user-ldap.ts

@@ -0,0 +1,57 @@
+/* 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 { SysUserLdap } from './sys-user-ldap';
+/**
+ * 全局返回结果
+ * @export
+ * @interface AdminResultListSysUserLdap
+ */
+export interface AdminResultListSysUserLdap {
+    /**
+     * 状态码
+     * @type {number}
+     * @memberof AdminResultListSysUserLdap
+     */
+    code?: number;
+    /**
+     * 类型success、warning、error
+     * @type {string}
+     * @memberof AdminResultListSysUserLdap
+     */
+    type?: string | null;
+    /**
+     * 错误信息
+     * @type {string}
+     * @memberof AdminResultListSysUserLdap
+     */
+    message?: string | null;
+    /**
+     * 数据
+     * @type {Array<SysUserLdap>}
+     * @memberof AdminResultListSysUserLdap
+     */
+    result?: Array<SysUserLdap> | null;
+    /**
+     * 附加数据
+     * @type {any}
+     * @memberof AdminResultListSysUserLdap
+     */
+    extras?: any | null;
+    /**
+     * 时间
+     * @type {Date}
+     * @memberof AdminResultListSysUserLdap
+     */
+    time?: Date;
+}

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

@@ -58,6 +58,7 @@ export * from './admin-result-list-sys-region';
 export * from './admin-result-list-sys-schedule';
 export * from './admin-result-list-sys-user';
 export * from './admin-result-list-sys-user-ext-org';
+export * from './admin-result-list-sys-user-ldap';
 export * from './admin-result-list-sys-wechat-refund';
 export * from './admin-result-list-table-output';
 export * from './admin-result-login-output';
@@ -345,6 +346,7 @@ export * from './sys-role';
 export * from './sys-schedule';
 export * from './sys-user';
 export * from './sys-user-ext-org';
+export * from './sys-user-ldap';
 export * from './sys-wechat-pay';
 export * from './sys-wechat-refund';
 export * from './sys-wechat-user';

+ 134 - 0
Web/src/api-services/models/sys-user-ldap.ts

@@ -0,0 +1,134 @@
+/* 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 SysUserLdap
+ */
+export interface SysUserLdap {
+    /**
+     * 雪花Id
+     * @type {number}
+     * @memberof SysUserLdap
+     */
+    id?: number;
+    /**
+     * 创建时间
+     * @type {Date}
+     * @memberof SysUserLdap
+     */
+    createTime?: Date;
+    /**
+     * 更新时间
+     * @type {Date}
+     * @memberof SysUserLdap
+     */
+    updateTime?: Date | null;
+    /**
+     * 创建者Id
+     * @type {number}
+     * @memberof SysUserLdap
+     */
+    createUserId?: number | null;
+    /**
+     * 创建者姓名
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    createUserName?: string | null;
+    /**
+     * 修改者Id
+     * @type {number}
+     * @memberof SysUserLdap
+     */
+    updateUserId?: number | null;
+    /**
+     * 修改者姓名
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    updateUserName?: string | null;
+    /**
+     * 软删除
+     * @type {boolean}
+     * @memberof SysUserLdap
+     */
+    isDelete?: boolean;
+    /**
+     * 租户Id
+     * @type {number}
+     * @memberof SysUserLdap
+     */
+    tenantId?: number | null;
+    /**
+     * 用户Id
+     * @type {number}
+     * @memberof SysUserLdap
+     */
+    userId?: number;
+    /**
+     * 域账号  AD域对应sAMAccountName  Ldap对应uid
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    account: string;
+    /**
+     * 域用户名
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    userName?: string | null;
+    /**
+     * 对应EmployeeId(用于数据导入对照)
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    employeeId?: string | null;
+    /**
+     * 组织代码
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    deptCode?: string | null;
+    /**
+     * 最后设置密码时间
+     * @type {Date}
+     * @memberof SysUserLdap
+     */
+    pwdLastSetTime?: Date | null;
+    /**
+     * 邮箱
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    mail?: string | null;
+    /**
+     * 检查账户是否已过期
+     * @type {boolean}
+     * @memberof SysUserLdap
+     */
+    accountExpiresFlag?: boolean;
+    /**
+     * 密码设置是否永不过期
+     * @type {boolean}
+     * @memberof SysUserLdap
+     */
+    dontExpiresFlag?: boolean;
+    /**
+     * DN
+     * @type {string}
+     * @memberof SysUserLdap
+     */
+    dn?: string | null;
+}