enhance(user):用户列表中增加对于超管的屏蔽。
This commit is contained in:
parent
476c9d8cd5
commit
e1aa45a1d7
|
@ -54,6 +54,7 @@ func (_UserRepository) FindUserByID(uid string) (*model.User, error) {
|
|||
|
||||
func (_UserRepository) ListUserDetail(keyword string, userType int, userState *bool, page int) ([]model.JoinedUserDetail, int64, error) {
|
||||
var cond = builder.NewCond()
|
||||
cond = cond.And(builder.Neq{"d.id": "000"})
|
||||
if len(keyword) != 0 {
|
||||
keywordCond := builder.NewCond().
|
||||
Or(builder.Like{"u.username", keyword}).
|
||||
|
|
Loading…
Reference in New Issue
Block a user