管理员登录
This commit is contained in:
parent
012d3e5ee8
commit
c2e8b739b9
20
oa/staff.go
20
oa/staff.go
@ -42,6 +42,26 @@ func (s *staff) Login(ctx context.Context, args ArgsStaffLogin) (reply ReplyStaf
|
|||||||
return
|
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 {
|
type ArgsStaffResetPass struct {
|
||||||
StaffId int64 // 员工id
|
StaffId int64 // 员工id
|
||||||
Password string // 密码
|
Password string // 密码
|
||||||
|
Loading…
x
Reference in New Issue
Block a user