fix(core): 统一电话号码字段名称从 phonenumber 改为 phone

This commit is contained in:
dubai
2026-01-11 14:06:04 +08:00
parent d12769dd29
commit 1d78fec144
12 changed files with 27 additions and 27 deletions

View File

@@ -2,12 +2,12 @@ import { requestClient } from '#/api/request';
/**
* 发送短信验证码
* @param phonenumber 手机号
* @param phone 手机号
* @returns void
*/
export function sendSmsCode(phonenumber: string) {
export function sendSmsCode(phone: string) {
return requestClient.get<void>('/resource/sms/code', {
params: { phonenumber },
params: { phone },
});
}

View File

@@ -20,7 +20,7 @@ export interface User {
loginDate: string;
loginIp: string;
nick: string;
phonenumber: string;
phone: string;
remark: string;
roles: Role[];
sex: string;

View File

@@ -35,7 +35,7 @@ export interface User {
nick: string;
userType: string;
email: string;
phonenumber: string;
phone: string;
sex: string;
avatar: string;
status: string;