Skip to content

Commit

Permalink
Update getAllMSUserListLogic.go
Browse files Browse the repository at this point in the history
  • Loading branch information
showurl committed Feb 21, 2023
1 parent 5170ed8 commit b0b68e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/mgmt/internal/logic/getAllMSUserListLogic.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ func (l *GetAllMSUserListLogic) GetAllMSUserList(in *pb.GetAllMSUserListReq) (*p
switch k {
case "username":
wheres = append(wheres, xorm.Where("id = ?", v))
case "nickname":
wheres = append(wheres, xorm.Where("nickname LIKE ?", "%"+v+"%"))
case "role":
// roleId
wheres = append(wheres, xorm.Where("roleId = ?", v))
}
}
}
Expand Down

0 comments on commit b0b68e1

Please sign in to comment.