This commit is contained in:
2024-09-26 16:58:48 +08:00
parent afabe1816b
commit 844533c5db
9 changed files with 500 additions and 80 deletions

View File

@@ -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
}