|
|
@@ -130,7 +130,7 @@ func (u UserDb) UserUpdateBySession(session *xorm.Session, id interface{}, user |
|
|
|
|
|
|
|
func (u UserDb) UserFindAndCount(uid int64, phone string, nickname string, level int, page, limit int) (*[]model.User, int64, error) { |
|
|
|
var m []model.User |
|
|
|
session := u.Db.NewSession() |
|
|
|
session := u.Db.Where("") |
|
|
|
if uid != 0 { |
|
|
|
session = session.Where("uid=?", uid) |
|
|
|
} |
|
|
|