This commit is contained in:
@@ -32,7 +32,7 @@ func (ctl *users) List(ctx fiber.Ctx, pagination *requests.Pagination, query *Us
|
||||
conds := []gen.Condition{}
|
||||
if query.Keyword != nil && *query.Keyword != "" {
|
||||
conds = append(conds,
|
||||
models.UserQuery.Username.Like(database.WrapLike(*query.Keyword)),
|
||||
models.UserQuery.Phone.Like(database.WrapLike(*query.Keyword)),
|
||||
)
|
||||
}
|
||||
return services.Users.List(ctx, pagination, conds...)
|
||||
|
||||
Reference in New Issue
Block a user