部署
This commit is contained in:
14
oa/role.go
14
oa/role.go
@@ -94,3 +94,17 @@ func (r *role) SetStaff(ctx context.Context, args ArgsRoleSetStaff) (err error)
|
||||
var reply int
|
||||
return xClient.Call(ctx, "SetStaff", args, &reply)
|
||||
}
|
||||
|
||||
type ArgsRoleStaffs struct {
|
||||
Name string // 角色名称
|
||||
}
|
||||
|
||||
// Staffs @TITLE 角色员工
|
||||
func (r *role) Staffs(ctx context.Context, args ArgsRoleStaffs) (reply []StaffItem, err error) {
|
||||
xClient, err := client.GetClient(r)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "Staffs", args, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user