🔧 update the IP address and key in the configuration file

This commit is contained in:
2025-04-03 13:10:58 +08:00
parent afcd128256
commit ec03d1b865
6 changed files with 29 additions and 23 deletions

View File

@@ -24,7 +24,13 @@ func NewGetAllStorageListLogic(ctx context.Context, svcCtx *svc.ServiceContext)
}
func (l *GetAllStorageListLogic) GetAllStorageList() (resp *types.AllStorageListResponse, err error) {
// todo: add your logic here and delete this line
return
storageConfig := l.svcCtx.DB.ScaStorageConfig
var records []types.StorageConfigMeta
err = storageConfig.Scan(&records)
if err != nil {
return nil, err
}
return &types.AllStorageListResponse{
Records: records,
}, nil
}