This commit is contained in:
gazebo
2019-08-06 11:09:04 +08:00
parent 96a160e3b5
commit d0821c05b0
2 changed files with 4 additions and 1 deletions

View File

@@ -24,6 +24,9 @@ func GetUserByID(db *DaoDB, fieldName, fieldValue string) (user *model.User, err
}
func GetUsers(db *DaoDB, userType int, userID2, mobile, userName string) (userList []*model.User, err error) {
if userType == 0 {
userType = 255
}
sql := `
SELECT *
FROM user t1