From c2e8b739b96f6d5108e9f56239f48ccf46fbff20 Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 8 Apr 2025 16:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oa/staff.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 // 密码