From b15a997e95d715c41df3a76aecbf58ec1141ab53 Mon Sep 17 00:00:00 2001 From: qiyunfeng-create <1940665526@qq.com> Date: 星期四, 21 八月 2025 18:37:17 +0800 Subject: [PATCH] 个人中心-接口测试 --- src/assets/js/middleGround/api/identity.js | 171 +++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 107 insertions(+), 64 deletions(-) diff --git a/src/assets/js/middleGround/api/identity.js b/src/assets/js/middleGround/api/identity.js index bdd37e4..848d772 100644 --- a/src/assets/js/middleGround/api/identity.js +++ b/src/assets/js/middleGround/api/identity.js @@ -1,181 +1,224 @@ -import request from "@/plugin/axios/index.ts"; +import request from '@/plugin/axios/index.ts' const identityApi = { // 鑾峰彇鍥惧舰楠岃瘉鐮� getImgCode() { return request({ - url: "/identity/NewCaptcha", - method: "post", - }); + url: '/identity/NewCaptcha', + method: 'post', + }) }, // 楠岃瘉鍥惧舰楠岃瘉鐮� verificationImgCode(data) { return request({ - url: "/identity/ValidCaptcha", - method: "post", + url: '/identity/ValidCaptcha', + method: 'post', data, - }); + }) }, // 鑾峰彇鐭俊楠岃瘉鐮� getPhoneCode(data) { return request({ - url: "/identity/NewSms", - method: "post", + url: '/identity/NewSms', + method: 'post', data, - }); + }) }, // 楠岃瘉鐭俊楠岃瘉鐮� verificationPhoneCode(data) { return request({ - url: "/identity/api/ApiValidMobilePhone", - method: "post", + url: '/identity/api/ApiValidMobilePhone', + method: 'post', data, - }); + }) }, // 閫氳繃鎵嬫満鍙锋敞鍐岀敤鎴� registerAppUserWithPhone(data) { return request({ - url: "/identity/api/RegisterAppUserWithPhone", - method: "post", + url: '/identity/api/RegisterAppUserWithPhone', + method: 'post', data, - }); + }) }, // 璐﹀彿瀵嗙爜鐧诲綍 loginByPassword(data) { return request({ - url: "/identity/api/LoginByPassword", - method: "post", + url: '/identity/api/LoginByPassword', + method: 'post', data, - }); + }) }, // 鐭俊楠岃瘉鐮佺櫥褰� loginByMobilePhone(data) { return request({ - url: "/identity/api/LoginByMobilePhone", - method: "post", + url: '/identity/api/LoginByMobilePhone', + method: 'post', data, - }); + }) }, // 璁剧疆鐢ㄦ埛key setUserKey(data) { return request({ - url: "/identity/api/ApiAppUserSetKey", - method: "post", + url: '/identity/api/ApiAppUserSetKey', + method: 'post', data, - }); + }) }, // 鑾峰彇鐢ㄦ埛key getUserKey(data) { return request({ - url: "/identity/api/ApiGetAppUserKey", - method: "post", + url: '/identity/api/ApiGetAppUserKey', + method: 'post', data, - }); + }) }, // 鍒犻櫎鐢ㄦ埛key delUserKey(data) { return request({ - url: "/identity/api/ApiDelAppUserKey", - method: "post", + url: '/identity/api/ApiDelAppUserKey', + method: 'post', data, - }); + }) }, // 鑾峰彇鍘诲綋鍓嶇敤鎴蜂俊鎭� getCurrentAppUser() { return request({ - url: "/identity/api/GetCurrentAppUser", - method: "post", - }); + url: '/identity/api/GetCurrentAppUser', + method: 'post', + }) }, // 娣诲姞鐢ㄦ埛淇℃伅 setAppUserInfo(data) { return request({ - url: "/identity/api/SetAppUserInfoRequest", - method: "post", + url: '/identity/api/SetAppUserInfoRequest', + method: 'post', data, - }); + }) }, // 鐢ㄦ埛鏇存崲缁戝畾鎵嬫満鍙凤紝濡傛病鏈夌粦瀹氭墜鏈哄垯鑷姩鍒涘缓 userSetPhoneNumber(data) { return request({ - url: "/identity/api/ApiUserSetPhoneNumber", - method: "post", + url: '/identity/api/ApiUserSetPhoneNumber', + method: 'post', data, - }); + }) }, // 妫�娴嬬敤鎴锋槸鍚︾粦瀹氬井淇� checkBuildingWeChat(data) { return request({ - url: "/identity/api/ApiCheckBuildingWeChat", - method: "post", + url: '/identity/api/ApiCheckBuildingWeChat', + method: 'post', data, - }); + }) }, - // 閫氳繃鎵嬫満鍙烽噸缃瘑鐮� changePasswordByMobilePhone(data) { return request({ - url: "/identity/api/ChangePasswordByMobilePhone", - method: "post", + url: '/identity/api/ChangePasswordByMobilePhone', + method: 'post', data, - }); + }) }, // 寰俊寮�鏀惧钩鍙版壂鐮佺櫥褰� loginByWeChatOpenCode(data) { return request({ - url: "/identity/api/LoginByWeChatOpenCode", - method: "post", + url: '/identity/api/LoginByWeChatOpenCode', + method: 'post', data, - }); + }) }, // 鐢ㄦ埛缁戝畾寰俊鍙� bindingWeChat(data) { return request({ - url: "/identity/api/ApiBindingWeChat", - method: "post", + url: '/identity/api/ApiBindingWeChat', + method: 'post', data, - }); + }) }, // 璁剧疆鐧诲綍鐨勭敤鎴峰悕鍜屽瘑鐮侊紝鐢ㄦ埛鍚嶅拰瀵嗙爜鑷冲皯6浣� setLoginNameAndPassword(data) { return request({ - url: "/identity/api/ApiUserSetLoginNameAndPassword", - method: "post", + url: '/identity/api/ApiUserSetLoginNameAndPassword', + method: 'post', data, - }); + }) }, // 鑾峰彇閭楠岃瘉鐮� getEmailCode(data) { return request({ - url: "/identity/api/SendVerifyEMail", - method: "post", + url: '/identity/api/SendVerifyEMail', + method: 'post', data, - }); + }) }, // 鐢ㄦ埛缁戝畾閭 bindingEmail(data) { return request({ - url: "/identity/api/ApiBindEMail", - method: "post", + url: '/identity/api/ApiBindEMail', + method: 'post', data, - }); + }) }, -}; + // 閫氳繃refcode鍔犲叆鐝骇/缁� + joinGroupByRefCode(data) { + return request({ + url: '/identity/api/ApiJoinGroupByRefCode', + method: 'post', + data, + }) + }, -export default identityApi; \ No newline at end of file + // 鑾峰彇鍔犲叆缁勭殑鍒楄〃淇℃伅 + joinedGroupByList(data) { + return request({ + url: '/identity/api/ApiGetJoinedGroupByList', + method: 'post', + data, + }) + }, + + // 鑾峰彇缁勬垨鐝骇鎴愬憳 + getGroupUserList(data) { + return request({ + url: '/identity/api/ApiGetGroupUserList', + method: 'post', + data, + }) + }, + + // 鏇存柊缁勬垚鍛樻垨鐝骇鎴愬憳鐘舵�� + updateAppUserGroupLink(data) { + return request({ + url: '/identity/api/ApiUpdateAppUserGroupLink', + method: 'post', + data, + }) + }, + + // 鍒犻櫎缁勬垚鍛樻垨鐝骇鎴愬憳鐘舵�� + removeAppUserFromGroup(data) { + return request({ + url: '/identity/api/ApiRemoveAppUserFromGroup', + method: 'post', + data, + }) + }, +} + +export default identityApi -- Gitblit v1.9.1