添加接口
This commit is contained in:
20
oa/staff.go
20
oa/staff.go
@@ -241,3 +241,23 @@ func (s *staff) SetRoles(ctx context.Context, args ArgsStaffSetRoles) (err error
|
||||
var reply int
|
||||
return xClient.Call(ctx, "SetRoles", args, &reply)
|
||||
}
|
||||
|
||||
// Disable @TITLE 禁用员工
|
||||
func (s *staff) Disable(ctx context.Context, staffIds []int64) (err error) {
|
||||
xClient, err := client.GetClient(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var reply int
|
||||
return xClient.Call(ctx, "Disable", staffIds, &reply)
|
||||
}
|
||||
|
||||
// Enable @TITLE 启用员工
|
||||
func (s *staff) Enable(ctx context.Context, staffIds []int64) (err error) {
|
||||
xClient, err := client.GetClient(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var reply int
|
||||
return xClient.Call(ctx, "Enable", staffIds, &reply)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user