|
|
@@ -45,7 +45,7 @@ func (l *CenterResourcesLogic) CenterResources() (*types.CenterResourcesResp, er |
|
|
} |
|
|
} |
|
|
for _, centerIndex := range centersIndex { |
|
|
for _, centerIndex := range centersIndex { |
|
|
// Query the types of resource centers |
|
|
// Query the types of resource centers |
|
|
tx := l.svcCtx.DbEngin.Raw("select name,type as CenterType from t_adapter where id = ?", centerIndex.Id).Scan(¢erIndex) |
|
|
|
|
|
|
|
|
tx := l.svcCtx.DbEngin.Raw("select id,name,type as CenterType from t_adapter where id = ?", centerIndex.Id).Scan(¢erIndex) |
|
|
if tx.Error != nil { |
|
|
if tx.Error != nil { |
|
|
return nil, tx.Error |
|
|
return nil, tx.Error |
|
|
} |
|
|
} |
|
|
|