mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
fix: #539
This commit is contained in:
parent
a8a12a3b91
commit
95e1fc6b5f
8
internal/pkg/vendors/cdnfly-sdk/models.go
vendored
8
internal/pkg/vendors/cdnfly-sdk/models.go
vendored
@ -1,17 +1,19 @@
|
||||
package cdnflysdk
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type BaseResponse interface {
|
||||
GetCode() string
|
||||
GetMessage() string
|
||||
}
|
||||
|
||||
type baseResponse struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"msg"`
|
||||
Code json.Number `json:"code"`
|
||||
Message string `json:"msg"`
|
||||
}
|
||||
|
||||
func (r *baseResponse) GetCode() string {
|
||||
return r.Code
|
||||
return r.Code.String()
|
||||
}
|
||||
|
||||
func (r *baseResponse) GetMessage() string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user