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
|
package cdnflysdk
|
||||||
|
|
||||||
|
import "encoding/json"
|
||||||
|
|
||||||
type BaseResponse interface {
|
type BaseResponse interface {
|
||||||
GetCode() string
|
GetCode() string
|
||||||
GetMessage() string
|
GetMessage() string
|
||||||
}
|
}
|
||||||
|
|
||||||
type baseResponse struct {
|
type baseResponse struct {
|
||||||
Code string `json:"code"`
|
Code json.Number `json:"code"`
|
||||||
Message string `json:"msg"`
|
Message string `json:"msg"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *baseResponse) GetCode() string {
|
func (r *baseResponse) GetCode() string {
|
||||||
return r.Code
|
return r.Code.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *baseResponse) GetMessage() string {
|
func (r *baseResponse) GetMessage() string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user