作者 陈志颖

test:测试删除用户

@@ -121,7 +121,7 @@ func (repository *ColumnSettingRepository) FindOne(queryOptions map[string]inter @@ -121,7 +121,7 @@ func (repository *ColumnSettingRepository) FindOne(queryOptions map[string]inter
121 121
122 func (repository *ColumnSettingRepository) Find(queryOptions domain.ColumnSettingFindQuery) (int64, []*domain.ColumnSetting, error) { 122 func (repository *ColumnSettingRepository) Find(queryOptions domain.ColumnSettingFindQuery) (int64, []*domain.ColumnSetting, error) {
123 tx := repository.transactionContext.PgTx 123 tx := repository.transactionContext.PgTx
124 - var columnSettingModels []*models.ColumnSetting 124 + var columnSettingModels []models.ColumnSetting
125 columnSettings := make([]*domain.ColumnSetting, 0) 125 columnSettings := make([]*domain.ColumnSetting, 0)
126 query := tx.Model(&columnSettingModels) 126 query := tx.Model(&columnSettingModels)
127 if len(queryOptions.Ids) > 0 { 127 if len(queryOptions.Ids) > 0 {
@@ -170,7 +170,7 @@ func (repository *ColumnSettingRepository) Find(queryOptions domain.ColumnSettin @@ -170,7 +170,7 @@ func (repository *ColumnSettingRepository) Find(queryOptions domain.ColumnSettin
170 return 0, columnSettings, err 170 return 0, columnSettings, err
171 } else { 171 } else {
172 for _, columnSettingModel := range columnSettingModels { 172 for _, columnSettingModel := range columnSettingModels {
173 - if columnSetting, errTrans := repository.transformPgModelToDomainModel(columnSettingModel); errTrans != nil { 173 + if columnSetting, errTrans := repository.transformPgModelToDomainModel(&columnSettingModel); errTrans != nil {
174 return 0, columnSettings, errTrans 174 return 0, columnSettings, errTrans
175 } else { 175 } else {
176 columnSettings = append(columnSettings, columnSetting) 176 columnSettings = append(columnSettings, columnSetting)