作者 庄敏学

合并分支 'test' 到 'master'

Test



查看合并请求 !5
不能预览此文件类型
@@ -103,7 +103,7 @@ func (repo *UserRepository) FindOne(queryOptions map[string]interface{}) (*domai @@ -103,7 +103,7 @@ func (repo *UserRepository) FindOne(queryOptions map[string]interface{}) (*domai
103 func (repo *UserRepository) Find(queryOptions map[string]interface{}) (int, []*domain.User, error) { 103 func (repo *UserRepository) Find(queryOptions map[string]interface{}) (int, []*domain.User, error) {
104 tx := repo.transactionContext.PgTx 104 tx := repo.transactionContext.PgTx
105 userModel := []models.User{} 105 userModel := []models.User{}
106 - query := tx.Model(&userModel).Limit(20) 106 + query := tx.Model(&userModel)
107 if v, ok := queryOptions["id"]; ok { 107 if v, ok := queryOptions["id"]; ok {
108 query.Where("id=?", v) 108 query.Where("id=?", v)
109 } 109 }