diff --git a/oa/staff.go b/oa/staff.go index ee54e34..8bcec23 100644 --- a/oa/staff.go +++ b/oa/staff.go @@ -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 // 密码