From c5742b6e6eadda91a0cd99ebcc51d27d0f344c73 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 06 八月 2025 17:04:08 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobAdmin --- src/services/api/typings.d.ts | 528 +++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 485 insertions(+), 43 deletions(-) diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts index 8510633..e1074e7 100644 --- a/src/services/api/typings.d.ts +++ b/src/services/api/typings.d.ts @@ -4,7 +4,27 @@ } interface APIgetAliyunOSSAcsParams { - query?: GetAliyunOSSAcsQuery; + /** 鑾峰彇闃块噷浜慜SS鎺堟潈淇℃伅 */ + request?: GetAliyunOSSAcsQuery; + } + + interface APIgetCurrentLogierMenusParams { + /** 鑾峰彇褰撳墠鐧诲綍鐢ㄦ埛鑿滃崟 */ + request?: GetCurrentLogierMenusQuery; + } + + interface APIgetDictionaryCategorySelectParams { + /** 鏌ヨ鏁版嵁瀛楀吀绫诲埆閫夋嫨鍣ㄦ暟鎹� */ + request?: GetDictionaryCategorySelectQuery; + } + + interface APIgetDictionaryDataSelectParams { + /** 绫诲埆Id锛圛d/缂栧彿浜岄�変竴锛� */ + categoryId?: string; + /** 绫诲埆缂栧彿锛圛d/缂栧彿浜岄�変竴锛� */ + categoryCode?: string; + /** 涓婄骇Id */ + parentId?: string; } interface APIgetMenuParams { @@ -29,10 +49,8 @@ } interface APIgetResourcesParams { - /** 寰湇鍔� */ - service?: string; /** 璇锋眰鏂瑰紡 */ - method?: EnumWebApiMethod; + method?: EnumResourceMethod; /** 鍏抽敭瀛� */ keywords?: string; /** 瑙掕壊Id */ @@ -42,6 +60,22 @@ interface APIgetRoleParams { /** Id */ id?: string; + } + + interface APIgetRoleUserInfosParams { + /** 瑙掕壊Id */ + roleId?: string; + } + + interface APIgetUserInfoRolesParams { + /** 鐢ㄦ埛Id */ + userInfoId?: string; + /** 瀹㈡埛绔被鍨� */ + clientType?: EnumClientType; + } + + interface DeleteDictionaryCategoryCommand { + ids: string[]; } interface DeleteMenuCommand { @@ -83,9 +117,37 @@ enum EnumPagedListOrder { /**鍗囧簭 */ - Ascending = 0, + Asc = 0, /**闄嶅簭 */ - Descending = 1, + Desc = 1, + } + + enum EnumResourceController { + /**鏁版嵁瀛楀吀 */ + Dictionary = 0, + /**鐢ㄦ埛璁よ瘉 */ + Auth = 1, + /**鐢ㄦ埛鑿滃崟 */ + Menu = 2, + /**鐢ㄦ埛璧勬簮 */ + Resource = 3, + /**鐢ㄦ埛瑙掕壊 */ + Role = 4, + /**鐢ㄦ埛淇℃伅 */ + UserInfo = 5, + /**浼佷笟淇℃伅 */ + Enterprise = 6, + } + + enum EnumResourceMethod { + /**鏌ヨ */ + Get = 10, + /**鎻愪氦 */ + Post = 20, + /**淇敼 */ + Put = 30, + /**鍒犻櫎 */ + Delete = 40, } enum EnumRoleWebApiDataPower { @@ -103,6 +165,13 @@ All = 999, } + enum EnumUserInfoStatus { + /**姝e父 */ + Normal = 10, + /**绂佺敤 */ + Disabled = 100, + } + enum EnumUserType { /**涓汉 */ Personal = 10, @@ -110,17 +179,6 @@ Enterprise = 20, /**杩愯惀 */ Operation = 100, - } - - enum EnumWebApiMethod { - /**鏌ヨ */ - Get = 10, - /**鎻愪氦 */ - Post = 20, - /**淇敼 */ - Put = 30, - /**鍒犻櫎 */ - Delete = 40, } interface FriendlyResultGetAliyunOSSAcsQueryResult { @@ -131,24 +189,6 @@ /** 閿欒鐮� */ errorCode?: string; data?: GetAliyunOSSAcsQueryResult; - /** 鎵ц鎴愬姛 */ - success?: boolean; - /** 閿欒淇℃伅 */ - msg?: any; - /** 闄勫姞鏁版嵁 */ - extras?: any; - /** 鏃堕棿鎴� */ - timestamp?: number; - } - - interface FriendlyResultGetDictionaryDatasQueryResult { - /** 璺熻釜Id */ - traceId?: string; - /** 鐘舵�佺爜 */ - code?: number; - /** 閿欒鐮� */ - errorCode?: string; - data?: GetDictionaryDatasQueryResult; /** 鎵ц鎴愬姛 */ success?: boolean; /** 閿欒淇℃伅 */ @@ -290,6 +330,116 @@ timestamp?: number; } + interface FriendlyResultListGetRoleUserInfosQueryResultItem { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + /** 鏁版嵁 */ + data?: GetRoleUserInfosQueryResultItem[]; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + msg?: any; + /** 闄勫姞鏁版嵁 */ + extras?: any; + /** 鏃堕棿鎴� */ + timestamp?: number; + } + + interface FriendlyResultListGetUserInfoRolesQueryResultItem { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + /** 鏁版嵁 */ + data?: GetUserInfoRolesQueryResultItem[]; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + msg?: any; + /** 闄勫姞鏁版嵁 */ + extras?: any; + /** 鏃堕棿鎴� */ + timestamp?: number; + } + + interface FriendlyResultPagedListQueryResultGetDictionaryCategoriesQueryResultItem { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + data?: PagedListQueryResultGetDictionaryCategoriesQueryResultItem; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + 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 FriendlyResultPagedListQueryResultGetEnterprisesQueryResultItem { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + data?: PagedListQueryResultGetEnterprisesQueryResultItem; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + msg?: any; + /** 闄勫姞鏁版嵁 */ + extras?: any; + /** 鏃堕棿鎴� */ + timestamp?: number; + } + + interface FriendlyResultPagedListQueryResultGetOperationUserInfosQueryResultItem { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + data?: PagedListQueryResultGetOperationUserInfosQueryResultItem; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + msg?: any; + /** 闄勫姞鏁版嵁 */ + extras?: any; + /** 鏃堕棿鎴� */ + timestamp?: number; + } + interface FriendlyResultPagedListQueryResultGetRolesQueryResultItem { /** 璺熻釜Id */ traceId?: string; @@ -336,17 +486,84 @@ requestId?: string; } + type GetCurrentLogierMenusQuery = Record<string, any>; + + interface GetDictionaryCategoriesQuery { + pageModel?: PagedListQueryPageModel; + /** 鍏抽敭瀛� */ + keywords?: string; + } + + interface GetDictionaryCategoriesQueryResultItem { + /** Id */ + id?: string; + /** 缂栧彿 */ + code?: string; + /** 鍚嶇О */ + name?: string; + /** 瀛楁鍚嶏紙閫楀彿闅斿紑锛� */ + fieldNames?: string; + /** 鎺掑簭 */ + sort?: number; + } + interface GetDictionaryDatasQuery { pageModel?: PagedListQueryPageModel; + /** 绫诲埆Id */ + categoryId?: string; + /** 鍏抽敭瀛� */ + keywords?: string; } - interface GetDictionaryDatasQueryResult { - pageModel?: PagedListQueryResultPageModel; - /** 鏁版嵁 */ - data?: GetDictionaryDatasQueryResultItem[]; + interface GetDictionaryDatasQueryResultItem { + /** Id */ + id?: string; + /** 绫诲埆Id */ + categoryId?: string; + /** 涓婄骇Id */ + parentId?: string; + /** 缂栧彿 */ + code?: string; + /** 鏄剧ず鍐呭 */ + content: string; + /** 瀛楁1 */ + field1?: string; + /** 瀛楁2 */ + field2?: string; + /** 瀛楁3 */ + field3?: string; + /** 瀛楁4 */ + field4?: string; + /** 瀛楁5 */ + field5?: string; + /** 鎺掑簭 */ + sort?: number; + /** 鏄惁绂佺敤 */ + isDisabled?: boolean; } - type GetDictionaryDatasQueryResultItem = Record<string, any>; + interface GetEnterprisesQuery { + pageModel?: PagedListQueryPageModel; + /** 鍏抽敭瀛� */ + keywords?: string; + /** 鏄惁宸查厤缃� */ + isConfigured?: boolean; + } + + interface GetEnterprisesQueryResultItem { + /** Id */ + id?: string; + /** 浼佷笟鍏ㄧО */ + enterpriseName?: string; + /** 娉曚汉濮撳悕 */ + legalPerson?: string; + /** 缁熶竴绀句細淇$敤浠g爜 */ + societyCreditCode?: string; + /** 鑱旂郴浜� */ + contacts?: string; + /** 鑱旂郴鐢佃瘽 */ + contactNumber?: string; + } interface GetMenuQueryResult { /** Id */ @@ -464,6 +681,37 @@ remark?: string; } + interface GetOperationUserInfosQuery { + pageModel?: PagedListQueryPageModel; + /** 鍏抽敭瀛� */ + keywords?: string; + } + + interface GetOperationUserInfosQueryResultItem { + /** Id */ + id?: string; + /** 濮撳悕 */ + name?: string; + /** 鐢ㄦ埛鍚� */ + userName?: string; + /** 鎵嬫満鍙� */ + phoneNumber?: string; + /** 澶囨敞 */ + remark?: string; + /** 瑙掕壊 */ + roles?: GetOperationUserInfosQueryResultItemRole[]; + status?: EnumUserInfoStatus; + } + + interface GetOperationUserInfosQueryResultItemRole { + /** 鐢ㄦ埛Id */ + userInfoId?: string; + /** 瑙掕壊Id */ + id?: string; + /** 鍚嶇О */ + name?: string; + } + interface GetResourceFieldsQueryResultItem { /** 缂栧彿 */ code?: string; @@ -476,19 +724,24 @@ id?: string; /** 鏄惁閫変腑锛堢敤浜庤鑹叉巿鏉冿級 */ isChecked?: boolean; - /** 寰湇鍔� */ - service?: string; + controller?: EnumResourceController; + /** 濮旀墭鍚嶇О */ + actionName?: string; /** 缂栧彿 */ code?: string; /** 鍚嶇О */ name?: string; - method?: EnumWebApiMethod; + method?: EnumResourceMethod; /** 璺敱 */ route?: string; /** 璇锋眰绫诲瀷鍚嶇О */ requestTypeName?: string; + /** 璇锋眰绫诲瀷鍏ㄥ悕 */ + requestTypeFullName?: string; /** 鍝嶅簲绫诲瀷鍚嶇О */ responseTypeName?: string; + /** 鍝嶅簲绫诲瀷鍏ㄥ悕 */ + responseTypeFullName?: string; } interface GetRoleQueryResult { @@ -500,6 +753,9 @@ clientType?: EnumClientType; /** 鏈�浣庣骇鍒� */ minLevel?: number; + dataPower?: EnumRoleWebApiDataPower; + /** 澶囨敞 */ + remark?: string; /** 鑿滃崟Id */ menuIds?: string[]; /** 璧勬簮 */ @@ -516,6 +772,8 @@ pageModel?: PagedListQueryPageModel; userType?: EnumUserType; clientType?: EnumClientType; + /** 鍏抽敭瀛� */ + keywords?: string; } interface GetRolesQueryResultItem { @@ -527,6 +785,35 @@ clientType?: EnumClientType; /** 鏈�浣庣骇鍒� */ minLevel?: number; + dataPower?: EnumRoleWebApiDataPower; + /** 澶囨敞 */ + remark?: string; + /** 鏄惁绂佺敤 */ + isDisabled?: boolean; + /** 鐢ㄦ埛鏁伴噺 */ + userCount?: number; + } + + interface GetRoleUserInfosQueryResultItem { + /** 鐢ㄦ埛Id */ + id?: string; + /** 濮撳悕 */ + name?: string; + /** 鐢ㄦ埛鍚� */ + userName?: string; + /** 鏄惁閫変腑 */ + isChecked?: boolean; + } + + interface GetUserInfoRolesQueryResultItem { + /** 瑙掕壊Id */ + id?: string; + /** 鍚嶇О */ + name?: string; + /** 澶囨敞 */ + remark?: string; + /** 鏄惁閫変腑 */ + isChecked?: boolean; } interface PagedListQueryPageModel { @@ -542,6 +829,30 @@ /** 灞炴�� */ property?: string; order?: EnumPagedListOrder; + } + + interface PagedListQueryResultGetDictionaryCategoriesQueryResultItem { + pageModel?: PagedListQueryResultPageModel; + /** 鏁版嵁 */ + data?: GetDictionaryCategoriesQueryResultItem[]; + } + + interface PagedListQueryResultGetDictionaryDatasQueryResultItem { + pageModel?: PagedListQueryResultPageModel; + /** 鏁版嵁 */ + data?: GetDictionaryDatasQueryResultItem[]; + } + + interface PagedListQueryResultGetEnterprisesQueryResultItem { + pageModel?: PagedListQueryResultPageModel; + /** 鏁版嵁 */ + data?: GetEnterprisesQueryResultItem[]; + } + + interface PagedListQueryResultGetOperationUserInfosQueryResultItem { + pageModel?: PagedListQueryResultPageModel; + /** 鏁版嵁 */ + data?: GetOperationUserInfosQueryResultItem[]; } interface PagedListQueryResultGetRolesQueryResultItem { @@ -577,6 +888,67 @@ accessToken?: string; /** 鍒锋柊浠ょ墝 */ refreshToken?: string; + } + + interface SaveDictionaryCategoryCommand { + id?: string; + /** 缂栧彿 */ + code: string; + /** 鍚嶇О */ + name: string; + /** 瀛楁鍚嶏紙閫楀彿闅斿紑锛� */ + fieldNames?: string; + /** 鎺掑簭 */ + sort?: number; + } + + interface SaveDictionaryDataCommand { + id?: string; + /** 绫诲埆Id */ + categoryId?: string; + /** 涓婄骇Id */ + parentId?: string; + /** 缂栧彿 */ + code?: string; + /** 鏄剧ず鍐呭 */ + content: string; + /** 瀛楁1 */ + field1?: string; + /** 瀛楁2 */ + field2?: string; + /** 瀛楁3 */ + field3?: string; + /** 瀛楁4 */ + field4?: string; + /** 瀛楁5 */ + field5?: string; + /** 鎺掑簭 */ + sort?: number; + /** 鏄惁绂佺敤 */ + isDisabled?: boolean; + } + + 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 { @@ -656,6 +1028,29 @@ 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; @@ -665,9 +1060,56 @@ clientType?: EnumClientType; /** 鏈�浣庣骇鍒� */ minLevel?: number; + dataPower?: EnumRoleWebApiDataPower; + /** 澶囨敞 */ + remark?: string; /** 鑿滃崟Id */ menuIds?: string[]; /** 璧勬簮 */ resources?: GetRoleQueryResultResource[]; } + + interface SetDictionaryDataIsDisabledCommand { + /** Id */ + ids?: string[]; + /** 鏄惁绂佺敤 */ + isDisabled?: boolean; + } + + interface SetMenuSwitchCommand { + /** Id */ + ids?: string[]; + type?: EnumMenuType; + /** 鏄惁绂佺敤锛坣ull鏃朵笉鏇存柊锛� */ + isDisabled?: boolean; + /** 鏄惁缂撳瓨锛坣ull鏃朵笉鏇存柊锛� */ + isCache?: boolean; + } + + interface SetRoleIsDisabledCommand { + /** Id */ + ids: string[]; + /** 鏄惁绂佺敤 */ + isDisabled?: boolean; + } + + interface SetRoleUserInfosCommand { + /** 瑙掕壊Id */ + roleId?: string; + /** 鐢ㄦ埛Id */ + userInfoIds?: string[]; + } + + interface SetUserInfoRolesCommand { + /** 鐢ㄦ埛Id */ + userInfoId?: string; + /** 瑙掕壊Id */ + roleIds?: string[]; + } + + interface SetUserInfoStatusCommand { + /** Id */ + ids?: string[]; + status?: EnumUserInfoStatus; + } } -- Gitblit v1.9.1