From 9d8ef3a592b3102c8d4133e601b31aacb91866f6 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 05 八月 2025 10:34:54 +0800
Subject: [PATCH] fix: 修改功能模块

---
 src/services/api/typings.d.ts |  363 ++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 311 insertions(+), 52 deletions(-)

diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts
index 5317b70..d97b45f 100644
--- a/src/services/api/typings.d.ts
+++ b/src/services/api/typings.d.ts
@@ -3,7 +3,51 @@
     [key: string]: any;
   }
 
+  interface APIgetAliyunOSSAcsParams {
+    /** 鑾峰彇闃块噷浜慜SS鎺堟潈淇℃伅 */
+    request?: GetAliyunOSSAcsQuery;
+  }
+
+  interface APIgetMenuParams {
+    /** Id */
+    id?: string;
+    /** 瑙掕壊Id */
+    roleId?: string;
+  }
+
+  interface APIgetMenusParams {
+    /** 鐢ㄦ埛绫诲瀷 */
+    userType?: EnumUserType;
+    /** 瀹㈡埛绔被鍨� */
+    clientType?: EnumClientType;
+    /** 瑙掕壊Id */
+    roleId?: string;
+  }
+
+  interface APIgetResourceFieldsParams {
+    /** Id */
+    id?: string;
+  }
+
+  interface APIgetResourcesParams {
+    /** 璇锋眰鏂瑰紡 */
+    method?: EnumResourceMethod;
+    /** 鍏抽敭瀛� */
+    keywords?: string;
+    /** 瑙掕壊Id */
+    roleId?: string;
+  }
+
+  interface APIgetRoleParams {
+    /** Id */
+    id?: string;
+  }
+
   interface DeleteMenuCommand {
+    ids: string[];
+  }
+
+  interface DeleteRoleCommand {
     ids: string[];
   }
 
@@ -43,16 +87,20 @@
     Descending = 1,
   }
 
-  enum EnumUserType {
-    /**涓汉 */
-    Personal = 10,
-    /**浼佷笟 */
-    Enterprise = 20,
-    /**杩愯惀 */
-    Operation = 100,
+  enum EnumResourceController {
+    /**鏁版嵁瀛楀吀 */
+    Dictionary = 0,
+    /**鐢ㄦ埛璁よ瘉 */
+    Auth = 1,
+    /**鐢ㄦ埛鑿滃崟 */
+    Menu = 2,
+    /**鐢ㄦ埛璧勬簮 */
+    Resource = 3,
+    /**鐢ㄦ埛瑙掕壊 */
+    Role = 4,
   }
 
-  enum EnumWebApiMethod {
+  enum EnumResourceMethod {
     /**鏌ヨ */
     Get = 10,
     /**鎻愪氦 */
@@ -63,16 +111,42 @@
     Delete = 40,
   }
 
-  interface FriendlyResultGetDictionaryDatasQueryResult {
+  enum EnumRoleWebApiDataPower {
+    /**鑷畾涔� */
+    Custom = 1,
+    /**鏌ヨ涓汉鍒涘缓鏁版嵁 */
+    Creator = 10,
+    /**鏌ヨ褰撳墠閮ㄩ棬鏁版嵁 */
+    CurrentDepartment = 20,
+    /**鏌ヨ褰撳墠鍙婁笅绾ч儴闂ㄦ暟鎹� */
+    NestingDepartment = 21,
+    /**鏌ヨ褰撳墠浼佷笟鎵�鏈夋暟鎹� */
+    CurrentEnterprise = 30,
+    /**鏌ヨ鎵�鏈� */
+    All = 999,
+  }
+
+  enum EnumUserType {
+    /**涓汉 */
+    Personal = 10,
+    /**浼佷笟 */
+    Enterprise = 20,
+    /**杩愯惀 */
+    Operation = 100,
+  }
+
+  interface FriendlyResultGetAliyunOSSAcsQueryResult {
     /** 璺熻釜Id */
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
-    data?: GetDictionaryDatasQueryResult;
+    /** 閿欒鐮� */
+    errorCode?: string;
+    data?: GetAliyunOSSAcsQueryResult;
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
@@ -84,11 +158,31 @@
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
     data?: GetMenuQueryResult;
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
+    /** 闄勫姞鏁版嵁 */
+    extras?: any;
+    /** 鏃堕棿鎴� */
+    timestamp?: number;
+  }
+
+  interface FriendlyResultGetRoleQueryResult {
+    /** 璺熻釜Id */
+    traceId?: string;
+    /** 鐘舵�佺爜 */
+    code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
+    data?: GetRoleQueryResult;
+    /** 鎵ц鎴愬姛 */
+    success?: boolean;
+    /** 閿欒淇℃伅 */
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
@@ -100,12 +194,14 @@
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
     /** 鏁版嵁 */
     data?: string;
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
@@ -117,12 +213,14 @@
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
     /** 鏁版嵁 */
     data?: number;
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
@@ -134,12 +232,14 @@
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
     /** 鏁版嵁 */
     data?: GetMenusQueryResultItem[];
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
@@ -151,12 +251,14 @@
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
     /** 鏁版嵁 */
     data?: GetResourceFieldsQueryResultItem[];
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
@@ -168,12 +270,50 @@
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
     /** 鏁版嵁 */
     data?: GetResourcesQueryResultItem[];
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
+    /** 闄勫姞鏁版嵁 */
+    extras?: any;
+    /** 鏃堕棿鎴� */
+    timestamp?: number;
+  }
+
+  interface FriendlyResultPagedListQueryResultGetDictionaryDatasQueryResultItem {
+    /** 璺熻釜Id */
+    traceId?: string;
+    /** 鐘舵�佺爜 */
+    code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
+    data?: PagedListQueryResultGetDictionaryDatasQueryResultItem;
+    /** 鎵ц鎴愬姛 */
+    success?: boolean;
+    /** 閿欒淇℃伅 */
+    msg?: any;
+    /** 闄勫姞鏁版嵁 */
+    extras?: any;
+    /** 鏃堕棿鎴� */
+    timestamp?: number;
+  }
+
+  interface FriendlyResultPagedListQueryResultGetRolesQueryResultItem {
+    /** 璺熻釜Id */
+    traceId?: string;
+    /** 鐘舵�佺爜 */
+    code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
+    data?: PagedListQueryResultGetRolesQueryResultItem;
+    /** 鎵ц鎴愬姛 */
+    success?: boolean;
+    /** 閿欒淇℃伅 */
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
@@ -185,37 +325,40 @@
     traceId?: string;
     /** 鐘舵�佺爜 */
     code?: number;
+    /** 閿欒鐮� */
+    errorCode?: string;
     data?: PasswordLoginCommandCallback;
     /** 鎵ц鎴愬姛 */
     success?: boolean;
     /** 閿欒淇℃伅 */
-    errors?: any;
+    msg?: any;
     /** 闄勫姞鏁版嵁 */
     extras?: any;
     /** 鏃堕棿鎴� */
     timestamp?: number;
   }
 
+  type GetAliyunOSSAcsQuery = Record<string, any>;
+
+  interface GetAliyunOSSAcsQueryResult {
+    expiration?: string;
+    ossAccessSecret?: string;
+    ossAccessKeyId?: string;
+    securityToken?: string;
+    requestId?: string;
+  }
+
   interface GetDictionaryDatasQuery {
     pageModel?: PagedListQueryPageModel;
   }
 
-  interface GetDictionaryDatasQueryResult {
-    pageModel?: PagedListQueryResultPageModel;
-    /** 鏁版嵁 */
-    data?: GetDictionaryDatasQueryResultItem[];
-  }
-
-  type GetDictionaryDatasQueryResultItem = true;
-
-  interface GetMenuQuery {
-    /** Id */
-    id?: string;
-  }
+  type GetDictionaryDatasQueryResultItem = Record<string, any>;
 
   interface GetMenuQueryResult {
     /** Id */
     id?: string;
+    /** 鏄惁閫夋嫨锛堢敤鎴疯鑹叉巿鏉冿級 */
+    isChecked?: boolean;
     userType?: EnumUserType;
     clientType?: EnumClientType;
     /** 涓婄骇Id */
@@ -247,6 +390,8 @@
   interface GetMenuQueryResultButton {
     /** Id */
     id?: string;
+    /** 鏄惁閫夋嫨锛堢敤鎴疯鑹叉巿鏉冿級 */
+    isChecked?: boolean;
     /** 缂栧彿 */
     code?: string;
     /** 鍚嶇О */
@@ -271,6 +416,8 @@
   interface GetMenuQueryResultField {
     /** Id */
     id?: string;
+    /** 鏄惁閫夋嫨锛堢敤鎴疯鑹叉巿鏉冿級 */
+    isChecked?: boolean;
     /** 缂栧彿 */
     code?: string;
     /** 鍚嶇О */
@@ -292,18 +439,15 @@
     fields?: GetMenuQueryResultField[];
   }
 
-  interface GetMenusQuery {
-    userType?: EnumUserType;
-    clientType?: EnumClientType;
-  }
-
   interface GetMenusQueryResultItem {
     /** Id */
     id?: string;
+    /** 鏄惁閫夋嫨锛堢敤鎴疯鑹叉巿鏉冿級 */
+    isChecked?: boolean;
     /** 涓婄骇Id */
     parentId?: string;
     /** 涓嬬骇 */
-    childrens?: GetMenusQueryResultItem[];
+    children?: GetMenusQueryResultItem[];
     /** 缂栧彿 */
     code?: string;
     /** 鍚嶇О */
@@ -326,11 +470,6 @@
     remark?: string;
   }
 
-  interface GetResourceFieldsQuery {
-    /** Id */
-    id?: string;
-  }
-
   interface GetResourceFieldsQueryResultItem {
     /** 缂栧彿 */
     code?: string;
@@ -338,30 +477,67 @@
     name?: string;
   }
 
-  interface GetResourcesQuery {
-    /** 寰湇鍔� */
-    service?: string;
-    method?: EnumWebApiMethod;
-    /** 鍏抽敭瀛� */
-    keywords?: string;
-  }
-
   interface GetResourcesQueryResultItem {
     /** Id */
     id?: string;
-    /** 寰湇鍔� */
-    service?: string;
+    /** 鏄惁閫変腑锛堢敤浜庤鑹叉巿鏉冿級 */
+    isChecked?: boolean;
+    controller?: EnumResourceController;
+    /** 濮旀墭鍚嶇О */
+    actionName?: string;
     /** 缂栧彿 */
     code?: string;
     /** 鍚嶇О */
     name?: string;
-    method?: EnumWebApiMethod;
+    method?: EnumResourceMethod;
     /** 璺敱 */
     route?: string;
     /** 璇锋眰绫诲瀷鍚嶇О */
     requestTypeName?: string;
+    /** 璇锋眰绫诲瀷鍏ㄥ悕 */
+    requestTypeFullName?: string;
     /** 鍝嶅簲绫诲瀷鍚嶇О */
     responseTypeName?: string;
+    /** 鍝嶅簲绫诲瀷鍏ㄥ悕 */
+    responseTypeFullName?: string;
+  }
+
+  interface GetRoleQueryResult {
+    /** Id */
+    id?: string;
+    /** 鍚嶇О */
+    name?: string;
+    userType?: EnumUserType;
+    clientType?: EnumClientType;
+    /** 鏈�浣庣骇鍒� */
+    minLevel?: number;
+    /** 鑿滃崟Id */
+    menuIds?: string[];
+    /** 璧勬簮 */
+    resources?: GetRoleQueryResultResource[];
+  }
+
+  interface GetRoleQueryResultResource {
+    /** 璧勬簮Id */
+    resourceId?: string;
+    dataPower?: EnumRoleWebApiDataPower;
+  }
+
+  interface GetRolesQuery {
+    pageModel?: PagedListQueryPageModel;
+    userType?: EnumUserType;
+    clientType?: EnumClientType;
+  }
+
+  interface GetRolesQueryResultItem {
+    /** Id */
+    id?: string;
+    /** 鍚嶇О */
+    name?: string;
+    userType?: EnumUserType;
+    clientType?: EnumClientType;
+    /** 鏈�浣庣骇鍒� */
+    minLevel?: number;
   }
 
   interface PagedListQueryPageModel {
@@ -377,6 +553,18 @@
     /** 灞炴�� */
     property?: string;
     order?: EnumPagedListOrder;
+  }
+
+  interface PagedListQueryResultGetDictionaryDatasQueryResultItem {
+    pageModel?: PagedListQueryResultPageModel;
+    /** 鏁版嵁 */
+    data?: GetDictionaryDatasQueryResultItem[];
+  }
+
+  interface PagedListQueryResultGetRolesQueryResultItem {
+    pageModel?: PagedListQueryResultPageModel;
+    /** 鏁版嵁 */
+    data?: GetRolesQueryResultItem[];
   }
 
   interface PagedListQueryResultPageModel {
@@ -406,6 +594,29 @@
     accessToken?: string;
     /** 鍒锋柊浠ょ墝 */
     refreshToken?: string;
+  }
+
+  interface SaveMenuButtonCommand {
+    /** Id */
+    id?: string;
+    /** 鑿滃崟Id */
+    parentId?: string;
+    /** 缂栧彿 */
+    code?: string;
+    /** 鍚嶇О */
+    name?: string;
+    /** 鍒嗙粍鍚嶇О锛堢敤浜庢寜閽�/瀛楁锛� */
+    group?: string;
+    /** 浣嶇疆锛堢敤浜庢寜閽級 */
+    location?: string;
+    /** 鍥炬爣 */
+    icon?: string;
+    /** 瀹藉害锛堢敤浜庢寜閽�/鍒�/鍏冪礌锛� */
+    width?: string;
+    /** 鎺掑簭 */
+    sort?: number;
+    /** 澶囨敞 */
+    remark?: string;
   }
 
   interface SaveMenuCommand {
@@ -484,4 +695,52 @@
     /** 瀛楁 */
     fields?: SaveMenuCommandField[];
   }
+
+  interface SaveMenuFieldCommand {
+    /** Id */
+    id?: string;
+    /** 鑿滃崟Id */
+    parentId?: string;
+    /** 缂栧彿 */
+    code?: string;
+    /** 鍚嶇О */
+    name?: string;
+    /** 鍒嗙粍鍚嶇О锛堢敤浜庢寜閽�/瀛楁锛� */
+    group?: string;
+    /** 浣嶇疆锛堢敤浜庢寜閽級 */
+    location?: string;
+    /** 鍥炬爣 */
+    icon?: string;
+    /** 瀹藉害锛堢敤浜庢寜閽�/鍒�/鍏冪礌锛� */
+    width?: string;
+    /** 鎺掑簭 */
+    sort?: number;
+    /** 澶囨敞 */
+    remark?: string;
+  }
+
+  interface SaveRoleCommand {
+    /** Id */
+    id?: string;
+    /** 鍚嶇О */
+    name?: string;
+    userType?: EnumUserType;
+    clientType?: EnumClientType;
+    /** 鏈�浣庣骇鍒� */
+    minLevel?: number;
+    /** 鑿滃崟Id */
+    menuIds?: string[];
+    /** 璧勬簮 */
+    resources?: GetRoleQueryResultResource[];
+  }
+
+  interface SetMenuSwitchCommand {
+    /** Id */
+    ids?: string[];
+    type?: EnumMenuType;
+    /** 鏄惁绂佺敤锛坣ull鏃朵笉鏇存柊锛� */
+    isDisabled?: boolean;
+    /** 鏄惁缂撳瓨锛坣ull鏃朵笉鏇存柊锛� */
+    isCache?: boolean;
+  }
 }

--
Gitblit v1.9.1