mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-04 08:06:37 +08:00
fix(core): 统一电话号码字段名称从 phonenumber 改为 phone
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ export interface User {
|
||||
loginDate: string;
|
||||
loginIp: string;
|
||||
nick: string;
|
||||
phonenumber: string;
|
||||
phone: string;
|
||||
remark: string;
|
||||
roles: Role[];
|
||||
sex: string;
|
||||
|
||||
@@ -35,7 +35,7 @@ export interface User {
|
||||
nick: string;
|
||||
userType: string;
|
||||
email: string;
|
||||
phonenumber: string;
|
||||
phone: string;
|
||||
sex: string;
|
||||
avatar: string;
|
||||
status: string;
|
||||
|
||||
Reference in New Issue
Block a user