注册修改为绑定
This commit is contained in:
@@ -77,8 +77,8 @@ class EmployeeService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据手机号查找员工
|
||||
* @param phone 手机号
|
||||
* 根据工号查找员工
|
||||
* @param phone 工号
|
||||
* @returns 员工信息或null
|
||||
*/
|
||||
async findEmployeeByPhone(phone: string): Promise<EmployeeInfo | null> {
|
||||
@@ -87,9 +87,9 @@ class EmployeeService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证员工信息(用于注册时检查)
|
||||
* @param name 姓名
|
||||
* @param phone 手机号
|
||||
* 验证员工信息(用于绑定时检查)
|
||||
* @param name 姓名
|
||||
* @param phone 工号
|
||||
* @returns 验证结果
|
||||
*/
|
||||
async validateEmployee(name: string, phone: string): Promise<{ success: boolean; message?: string; employee?: EmployeeInfo }> {
|
||||
|
Reference in New Issue
Block a user