mirror of
https://github.com/usual2970/certimate.git
synced 2025-09-23 08:16:02 +00:00
fix: #539
This commit is contained in:
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 {
|
||||||
|
Reference in New Issue
Block a user