Skip to content

Commit

Permalink
solve queryparam
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 10, 2024
1 parent f724cf0 commit 80823c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion compress/api_customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ func (o *compress) GetCredentials() (*Credential, error) {
* @returns customer_s3
*/
func (o *compress) GetCustomerS3Zone() (*CustomerS3, error) {
resp, err := o.restyGet(GET_ZONE(), BaseModel{ClientId: o.GetCliendId(), ApiKey: o.apiKey})
//
queryParam := make(map[string]*string)
queryParam["client_id"] = o.GetCliendId()

Check failure on line 37 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

cannot use o.GetCliendId() (value of type string) as *string value in assignment

Check failure on line 37 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

cannot use o.GetCliendId() (value of type string) as *string value in assignment

Check failure on line 37 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

cannot use o.GetCliendId() (value of type string) as *string value in assignment
queryParam["api_key"] = o.apiKey

Check failure on line 38 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

cannot use o.apiKey (variable of type string) as *string value in assignment

Check failure on line 38 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

cannot use o.apiKey (variable of type string) as *string value in assignment

Check failure on line 38 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

cannot use o.apiKey (variable of type string) as *string value in assignment
//
resp, err := o.restyGet(GET_ZONE(), queryParam)

Check failure on line 40 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

cannot use queryParam (variable of type map[string]*string) as map[string]string value in argument to o.restyGet

Check failure on line 40 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

cannot use queryParam (variable of type map[string]*string) as map[string]string value in argument to o.restyGet

Check failure on line 40 in compress/api_customer.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

cannot use queryParam (variable of type map[string]*string) as map[string]string value in argument to o.restyGet
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 80823c4

Please sign in to comment.