diff --git a/customer/user.go b/customer/user.go index 432b23e..edc14a4 100644 --- a/customer/user.go +++ b/customer/user.go @@ -165,3 +165,19 @@ func (u *user) FindByIds(ctx context.Context, userIds []uint) (reply []UserInfoI err = xClient.Call(ctx, "FindByIds", userIds, &reply) return } + +type UserSelectItem struct { + Id uint `json:"id"` + Name string `json:"name"` +} + +// Select @Title 用户筛选 +func (u *user) Select(ctx context.Context) (reply []UserSelectItem, err error) { + xClient, err := client.GetClient(u) + if err != nil { + return + } + args := 0 + err = xClient.Call(ctx, "Select", args, &reply) + return +}