|
|
@ -165,3 +165,19 @@ func (u *user) FindByIds(ctx context.Context, userIds []uint) (reply []UserInfoI
|
|
|
|
err = xClient.Call(ctx, "FindByIds", userIds, &reply)
|
|
|
|
err = xClient.Call(ctx, "FindByIds", userIds, &reply)
|
|
|
|
return
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|