This commit is contained in:
Fu Diwei 2025-03-21 01:30:35 +08:00
parent a8a12a3b91
commit 95e1fc6b5f

View File

@ -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 {