修改类型字段

This commit is contained in:
qiwang 2023-10-20 12:46:22 +08:00
parent e557bb857b
commit 489baa9359
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ func NewGetVolumeLimitsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *G
func (l *GetVolumeLimitsLogic) GetVolumeLimits(in *openstack.GetVolumeLimitsReq) (*openstack.GetVolumeLimitsResp, error) {
var resp openstack.GetVolumeLimitsResp
openstackUrl := "http://10.105.20.9:8776"
openstackUrl := l.svcCtx.Config.OpenstackVolumev2Url
token := common.GetToken()
statusCode, body, err := tool.HttpClientWithBodyAndCode(tool.GET, openstackUrl+"/v3/aa7366b7f0e9453a9ba8bc699aa97b1e/limits", nil, token)
statusCode, body, err := tool.HttpClientWithBodyAndCode(tool.GET, openstackUrl+"/limits", nil, token)
if err != nil {
return nil, err
}