From 64ff795479a7667f17c1a4349bb171f546a92a0b Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 11 八月 2025 17:03:07 +0800 Subject: [PATCH] feat: 接口对接 --- packages/services/apiV2/typings.d.ts | 185 +++++++++++++++++++++++++++++++++++---------- 1 files changed, 143 insertions(+), 42 deletions(-) diff --git a/packages/services/apiV2/typings.d.ts b/packages/services/apiV2/typings.d.ts index 8f283be..8638b22 100644 --- a/packages/services/apiV2/typings.d.ts +++ b/packages/services/apiV2/typings.d.ts @@ -69,6 +69,11 @@ roleId?: string; } + interface APIgetPersonalLoginInfoParams { + /** 鏌ヨ涓汉鐢ㄦ埛鐧诲綍淇℃伅 */ + request?: GetPersonalLoginInfoQuery; + } + interface APIgetResourceFieldsParams { /** Id */ id?: string; @@ -140,11 +145,32 @@ request?: GetUserResumeWorkExperienceQuery; } - interface BindPhoneNumberCommand { + interface ApplyTaskCommand { + /** 浠诲姟Id */ + ids?: string[]; + } + + interface BindWxmpUserInfoCommand { + /** 鍖呮嫭鏁忔劅鏁版嵁鍦ㄥ唴鐨勫畬鏁寸敤鎴蜂俊鎭殑鍔犲瘑鏁版嵁 */ + encryptedData: string; + /** 鍔犲瘑绠楁硶鐨勫垵濮嬪悜閲� */ + iv: string; + /** 鑾峰彇浼氳瘽瀵嗛挜 */ + sessionKey: string; + } + + interface ChangePhoneNumberCommand { /** 鎵嬫満鍙风爜 */ - phoneNumber?: string; + phoneNumber: string; /** 楠岃瘉鐮� */ - verifyCode?: string; + verifyCode: string; + } + + interface CollectTaskCommand { + /** 浠诲姟Id */ + ids?: string[]; + /** 鏄惁鏀惰棌 */ + isCollect?: boolean; } interface DeleteDictionaryCategoryCommand { @@ -248,20 +274,22 @@ Dictionary = 0, /**浠诲姟 */ Task = 1, + /**浠诲姟闆囦剑 */ + TaskUser = 2, /**鐢ㄦ埛璁よ瘉 */ - Auth = 2, + Auth = 3, /**鐢ㄦ埛鑿滃崟 */ - Menu = 3, + Menu = 4, /**鐢ㄦ埛璧勬簮 */ - Resource = 4, + Resource = 5, /**鐢ㄦ埛瑙掕壊 */ - Role = 5, + Role = 6, /**鐢ㄦ埛淇℃伅 */ - User = 6, + User = 7, /**鐢ㄦ埛绠�鍘� */ - UserResume = 7, + UserResume = 8, /**浼佷笟淇℃伅 */ - Enterprise = 8, + Enterprise = 9, } enum EnumResourceMethod { @@ -339,11 +367,29 @@ Complete = 20, } + enum EnumTaskUserHireStatus { + /**寰呭綍鐢� */ + Wait = 10, + /**宸插綍鐢� */ + Pass = 20, + /**宸茶阿缁� */ + Refuse = 30, + } + enum EnumUserGender { /**鐢� */ Male = 10, /**濂� */ Female = 20, + } + + enum EnumUserRealMethod { + /**涓汉鎵嬫満鍙蜂笁瑕佺礌 */ + Identity3 = 10, + /**閾惰鍗″瑕佺礌 */ + Identity4 = 20, + /**鍒疯劯璁よ瘉 */ + Face = 30, } enum EnumUserStatus { @@ -461,6 +507,24 @@ /** 閿欒鐮� */ errorCode?: string; data?: GetMenuQueryResult; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + msg?: any; + /** 闄勫姞鏁版嵁 */ + extras?: any; + /** 鏃堕棿鎴� */ + timestamp?: number; + } + + interface FriendlyResultGetPersonalLoginInfoQueryResult { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + data?: GetPersonalLoginInfoQueryResult; /** 鎵ц鎴愬姛 */ success?: boolean; /** 閿欒淇℃伅 */ @@ -944,9 +1008,9 @@ type GetCurrentLogierMenusQuery = Record<string, any>; interface GetDictionaryCategoriesQuery { - pageModel?: PagedListQueryPageModel; /** 鍏抽敭瀛� */ keywords?: string; + pageModel?: PagedListQueryPageModel; } interface GetDictionaryCategoriesQueryResultItem { @@ -965,7 +1029,6 @@ type GetDictionaryCategorySelectQuery = Record<string, any>; interface GetDictionaryDatasQuery { - pageModel?: PagedListQueryPageModel; /** 绫诲埆Id锛圛d/缂栧彿浜岄�変竴锛� */ categoryId?: string; /** 绫诲埆缂栧彿锛圛d/缂栧彿浜岄�変竴锛� */ @@ -974,6 +1037,7 @@ parentId?: string; /** 鍏抽敭瀛� */ keywords?: string; + pageModel?: PagedListQueryPageModel; } interface GetDictionaryDatasQueryResultItem { @@ -1065,11 +1129,11 @@ } interface GetEnterprisesQuery { - pageModel?: PagedListQueryPageModel; /** 鍏抽敭瀛� */ keywords?: string; /** 鏄惁宸查厤缃� */ isConfigured?: boolean; + pageModel?: PagedListQueryPageModel; } interface GetEnterprisesQueryResultItem { @@ -1214,9 +1278,9 @@ } interface GetOperationUserInfosQuery { - pageModel?: PagedListQueryPageModel; /** 鍏抽敭瀛� */ keywords?: string; + pageModel?: PagedListQueryPageModel; } interface GetOperationUserInfosQueryResultItem { @@ -1240,6 +1304,24 @@ id?: string; /** 鍚嶇О */ name?: string; + } + + type GetPersonalLoginInfoQuery = Record<string, any>; + + interface GetPersonalLoginInfoQueryResult { + /** Id */ + id?: string; + /** 濮撳悕 */ + name?: string; + /** 鏄惁瀹炲悕 */ + isReal?: boolean; + realMethod?: EnumUserRealMethod; + /** 鎴戠殑鎶ュ悕 */ + taskCount?: number; + /** 宸插綍鐢� */ + hirePassTaskCount?: number; + /** 宸插彇娑� */ + hireRefuseTaskCount?: number; } interface GetResourceFieldsQueryResultItem { @@ -1299,11 +1381,11 @@ } interface GetRolesQuery { - pageModel?: PagedListQueryPageModel; userType?: EnumUserType; clientType?: EnumClientType; /** 鍏抽敭瀛� */ keywords?: string; + pageModel?: PagedListQueryPageModel; } interface GetRolesQueryResultItem { @@ -1341,7 +1423,7 @@ /** 浼佷笟Id */ enterpriseId?: string; /** 浼佷笟鍏ㄧО */ - enterpriseEnterpriseName?: string; + enterpriseName?: string; /** 鍦ㄦ嫑宀椾綅鏁伴噺 */ taskCount?: number; /** 浠诲姟鍚嶇О */ @@ -1404,7 +1486,6 @@ } interface GetTaskInfosQuery { - pageModel?: PagedListQueryPageModel; /** 鍏抽敭瀛楋紙浠诲姟鍚嶇О锛� */ keywords?: string; /** 浼佷笟Id */ @@ -1423,13 +1504,16 @@ releaseStatus?: EnumTaskReleaseStatus; recommendStatus?: EnumTaskRecommendStatus; checkReceiveStatus?: EnumTaskCheckReceiveStatus; + /** 褰曠敤鐘舵�� */ + hireStatus?: EnumTaskUserHireStatus[]; + pageModel?: PagedListQueryPageModel; } interface GetTaskInfosQueryResult { + objectData?: GetTaskInfosQueryResultObjectData; pageModel?: PagedListQueryResultPageModel; /** 鏁版嵁 */ data?: GetTaskInfosQueryResultItem[]; - objectData?: GetTaskInfosQueryResultObjectData; } interface GetTaskInfosQueryResultItem { @@ -1477,6 +1561,7 @@ recommendStatus?: EnumTaskRecommendStatus; /** 鍒涘缓鏃堕棿 */ createdTime?: string; + hireStatus?: EnumTaskUserHireStatus; } interface GetTaskInfosQueryResultObjectData { @@ -1543,7 +1628,7 @@ /** 浣撻噸 */ weight?: number; /** 鐢熸椿鐓� */ - photoImgs?: string[]; + photos?: string[]; } type GetUserResumeJobSeekingQuery = Record<string, any>; @@ -1644,7 +1729,7 @@ /** 浣撻噸 */ weight?: number; /** 鐢熸椿鐓� */ - photoImgs?: string[]; + photos?: string[]; } interface GetUserResumeQueryResultCredential { @@ -1693,6 +1778,10 @@ accessToken?: string; /** 鍒锋柊浠ょ墝 */ refreshToken?: string; + /** 浼氳瘽绉橀挜锛堜粎鐢ㄤ簬寰俊灏忕▼搴忔巿鏉冪櫥褰曪級 */ + sessionKey?: string; + /** 鏄惁宸茬粦瀹氭墜鏈哄彿锛堜粎鐢ㄤ簬寰俊灏忕▼搴忔巿鏉冪櫥褰曪級 */ + isBindPhoneNumber?: boolean; } interface PagedListQueryPageModel { @@ -1741,16 +1830,16 @@ } interface PagedListQueryResultPageModel { + /** 鎬绘暟 */ + totalCount?: number; + /** 椤垫暟 */ + totalPage?: number; /** 琛屾暟 */ rows?: number; /** 椤电爜 */ page?: number; /** 鎺掑簭 */ orderInput?: PagedListQueryPageModelOrderInput[]; - /** 鎬绘暟 */ - totalCount?: number; - /** 椤垫暟 */ - totalPage?: number; } interface PasswordLoginCommand { @@ -1762,9 +1851,14 @@ clientType?: EnumClientType; } + interface RegisterPersonalUserCommand { + /** 鎵嬫満鍙风爜 */ + phoneNumber: string; + /** 楠岃瘉鐮� */ + verifyCode: string; + } + interface SaveDictionaryCategoryCommand { - /** Id */ - id?: string; /** 缂栧彿 */ code: string; /** 鍚嶇О */ @@ -1773,11 +1867,11 @@ fieldNames?: string; /** 鎺掑簭 */ sort?: number; + /** Id */ + id?: string; } interface SaveDictionaryDataCommand { - /** Id */ - id?: string; /** 绫诲埆Id锛圛d/缂栧彿浜岄�変竴锛� */ categoryId?: string; /** 绫诲埆缂栧彿锛圛d/缂栧彿浜岄�変竴锛� */ @@ -1802,11 +1896,11 @@ sort?: number; /** 鏄惁绂佺敤 */ isDisabled?: boolean; + /** Id */ + id?: string; } interface SaveEnterpriseCommand { - /** Id */ - id?: string; /** 浼佷笟鍏ㄧО */ enterpriseName: string; /** 缁熶竴绀句細淇$敤浠g爜 */ @@ -1833,11 +1927,11 @@ userName?: string; /** 瀵嗙爜 */ password?: string; + /** Id */ + id?: string; } interface SaveMenuButtonCommand { - /** Id */ - id?: string; /** 鑿滃崟Id */ parentId?: string; /** 缂栧彿 */ @@ -1856,11 +1950,11 @@ sort?: number; /** 澶囨敞 */ remark?: string; + /** Id */ + id?: string; } interface SaveMenuCommand { - /** Id */ - id?: string; userType?: EnumUserType; clientType?: EnumClientType; /** 涓婄骇Id */ @@ -1885,6 +1979,8 @@ remark?: string; /** 鍒嗙粍 */ groups?: SaveMenuCommandGroup[]; + /** Id */ + id?: string; } interface SaveMenuCommandButton { @@ -1936,8 +2032,6 @@ } interface SaveMenuFieldCommand { - /** Id */ - id?: string; /** 鑿滃崟Id */ parentId?: string; /** 缂栧彿 */ @@ -1956,6 +2050,8 @@ sort?: number; /** 澶囨敞 */ remark?: string; + /** Id */ + id?: string; } interface SaveRoleCommand { @@ -1986,8 +2082,6 @@ } interface SaveTaskInfoCommand { - /** Id */ - id?: string; /** 浠诲姟鍚嶇О */ name: string; billingMethod: EnumBillingMethod; @@ -2019,11 +2113,11 @@ beginTime: string; /** 浠诲姟缁撴潫鏃堕棿 */ endTime: string; + /** Id */ + id?: string; } interface SaveUserResumeCredentialCommand { - /** Id */ - id?: string; /** 璇佷功绫诲瀷缂栧彿 */ typeCode: string; /** 璇佷功缂栧彿 */ @@ -2040,6 +2134,8 @@ img: string; /** 璇佷功鍙嶉潰鐓х墖 */ backImg?: string; + /** Id */ + id?: string; } interface SaveUserResumeDetailCommand { @@ -2048,12 +2144,12 @@ /** 浣撻噸 */ weight?: number; /** 鐢熸椿鐓� */ - photosImg?: string[]; + photos?: string[]; } interface SaveUserResumeJobSeekingCommand { /** 鐢ㄦ埛淇℃伅鏈熸湜宀椾綅 */ - userExpectJobsExpectJobCode: string[]; + userExpectJobs: string[]; freeTime: EnumPersonalFreeTime; jobSeekingStatus: EnumPersonalJobSeekingStatus; } @@ -2192,6 +2288,11 @@ type SyncHumanResourcesAreaDictionaryDataCommand = Record<string, any>; + interface UpdatePhoneNumberVerifyCodeCommand { + /** 鎵嬫満鍙风爜 */ + phoneNumber: string; + } + interface WxmpLoginCommand { /** 鐢ㄦ埛鐧诲綍鍑瘉 */ code: string; -- Gitblit v1.9.1