From ef37c59e055a990ce247b265b27d3fcef430a243 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期五, 15 八月 2025 10:19:18 +0800 Subject: [PATCH] first submit --- src/assets/js/middleGround/api/identity.js | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 155 insertions(+), 0 deletions(-) diff --git a/src/assets/js/middleGround/api/identity.js b/src/assets/js/middleGround/api/identity.js new file mode 100644 index 0000000..1f851c8 --- /dev/null +++ b/src/assets/js/middleGround/api/identity.js @@ -0,0 +1,155 @@ +import request from "@/plugin/axios"; +const identityApi = { + // 鑾峰彇鍥惧舰楠岃瘉鐮� + getImgCode() { + return request({ + url: "/identity/NewCaptcha", + method: "post", + }); + }, + + // 楠岃瘉鍥惧舰楠岃瘉鐮� + verificationImgCode(data) { + return request({ + url: "/identity/ValidCaptcha", + method: "post", + data, + }); + }, + + // 鑾峰彇鐭俊楠岃瘉鐮� + getPhoneCode(data) { + return request({ + url: "/identity/NewSms", + method: "post", + data, + }); + }, + // 楠岃瘉鐭俊楠岃瘉鐮� + verificationPhoneCode(data) { + return request({ + url: "/identity/api/ApiValidMobilePhone", + method: "post", + data, + }); + }, + + // 閫氳繃鎵嬫満鍙锋敞鍐岀敤鎴� + registerAppUserWithPhone(data) { + return request({ + url: "/identity/api/RegisterAppUserWithPhone", + method: "post", + data, + }); + }, + + // 璐﹀彿瀵嗙爜鐧诲綍 + loginByPassword(data) { + return request({ + url: "/identity/api/LoginByPassword", + method: "post", + data, + }); + }, + + // 鐭俊楠岃瘉鐮佺櫥褰� + loginByMobilePhone(data) { + return request({ + url: "/identity/api/LoginByMobilePhone", + method: "post", + data, + }); + }, + + // 璁剧疆鐢ㄦ埛key + setUserKey(data) { + return request({ + url: "/identity/api/ApiAppUserSetKey", + method: "post", + data, + }); + }, + + // 鑾峰彇鐢ㄦ埛key + getUserKey(data) { + return request({ + url: "/identity/api/ApiGetAppUserKey", + method: "post", + data, + }); + }, + + // 鍒犻櫎鐢ㄦ埛key + delUserKey(data) { + return request({ + url: "/identity/api/ApiDelAppUserKey", + method: "post", + data, + }); + }, + + // 鑾峰彇鍘诲綋鍓嶇敤鎴蜂俊鎭� + getCurrentAppUser() { + return request({ + url: "/identity/api/GetCurrentAppUser", + method: "post", + }); + }, + + // 娣诲姞鐢ㄦ埛淇℃伅 + setAppUserInfo(data) { + return request({ + url: "/identity/api/SetAppUserInfoRequest", + method: "post", + data, + }); + }, + + // 鐢ㄦ埛鏇存崲缁戝畾鎵嬫満鍙凤紝濡傛病鏈夌粦瀹氭墜鏈哄垯鑷姩鍒涘缓 + userSetPhoneNumber(data) { + return request({ + url: "/identity/api/ApiUserSetPhoneNumber", + method: "post", + data, + }); + }, + + // 妫�娴嬬敤鎴锋槸鍚︾粦瀹氬井淇� + checkBuildingWeChat(data) { + return request({ + url: "/identity/api/ApiCheckBuildingWeChat", + method: "post", + data, + }); + }, + + + // 閫氳繃鎵嬫満鍙烽噸缃瘑鐮� + changePasswordByMobilePhone(data) { + return request({ + url: "/identity/api/ChangePasswordByMobilePhone", + method: "post", + data, + }); + }, + + // 寰俊寮�鏀惧钩鍙版壂鐮佺櫥褰� + loginByWeChatOpenCode(data) { + return request({ + url: "/identity/api/LoginByWeChatOpenCode", + method: "post", + data, + }); + }, + + // 鐢ㄦ埛缁戝畾寰俊鍙� + bindingWeChat(data) { + return request({ + url: "/identity/api/ApiBindingWeChat", + method: "post", + data, + }); + }, +}; + +export default identityApi; \ No newline at end of file -- Gitblit v1.9.1