Skip to content

Let's use AI to Earn!

feat: 用户设置或绑定手机号

yikaJasonMic65b5ec96cf85
diff --git a/src/api/user.ts b/src/api/user.ts
index 8fb72d13..c5a08a35 100644
--- a/src/api/user.ts
+++ b/src/api/user.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-01-17 20:21:07
- * @LastEditTime: 2025-02-26 09:09:07
+ * @LastEditTime: 2025-03-03 14:13:26
* @LastEditors: nevin
* @Description: 用户
*/
@@ -56,4 +56,11 @@ export const userApi = {
isToken: false,
});
},
+
+ // 用户设置或绑定手机号
+ upUserPhone(data: { phone: string; code: string }) {
+ return http.put<string>('/user/updatePhone', data, {
+ isToken: true,
+ });
+ },
};