From 9858d46df9d2902630f3f21f4130c7f9fc81bf47 Mon Sep 17 00:00:00 2001 From: sian Date: Sat, 8 Oct 2022 14:33:58 +0800 Subject: [PATCH] - --- customer/user.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 +}