...
|
...
|
@@ -103,7 +103,7 @@ func (repo *UserRepository) FindOne(queryOptions map[string]interface{}) (*domai |
|
|
func (repo *UserRepository) Find(queryOptions map[string]interface{}) (int, []*domain.User, error) {
|
|
|
tx := repo.transactionContext.PgTx
|
|
|
userModel := []models.User{}
|
|
|
query := tx.Model(&userModel).Limit(20)
|
|
|
query := tx.Model(&userModel)
|
|
|
if v, ok := queryOptions["id"]; ok {
|
|
|
query.Where("id=?", v)
|
|
|
}
|
...
|
...
|
|