🔧 update the IP address and key in the configuration file
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user