管理员登录

This commit is contained in:
守护自己的云 2025-04-08 16:38:54 +08:00
parent 012d3e5ee8
commit c2e8b739b9

View File

@ -42,6 +42,26 @@ func (s *staff) Login(ctx context.Context, args ArgsStaffLogin) (reply ReplyStaf
return
}
// LoginId @TITLE staffId登录
func (s *staff) LoginId(ctx context.Context, staffId int64) (reply ReplyStaffInfo, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "LoginId", staffId, &reply)
return
}
// LoginAccount @TITLE 登录
func (s *staff) LoginAccount(ctx context.Context, account string) (reply ReplyStaffInfo, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "LoginAccount", account, &reply)
return
}
type ArgsStaffResetPass struct {
StaffId int64 // 员工id
Password string // 密码