refactor: reimpl 3rd sdks

This commit is contained in:
Fu Diwei
2025-02-19 21:55:38 +08:00
parent 688a013d73
commit 469c24751e
16 changed files with 131 additions and 189 deletions

View File

@@ -2,20 +2,20 @@ package gnamesdk
type BaseResponse interface {
GetCode() int
GetMsg() string
GetMessage() string
}
type baseResponse struct {
Code int `json:"code"`
Msg string `json:"msg"`
Code int `json:"code"`
Message string `json:"msg"`
}
func (r *baseResponse) GetCode() int {
return r.Code
}
func (r *baseResponse) GetMsg() string {
return r.Msg
func (r *baseResponse) GetMessage() string {
return r.Message
}
type AddDomainResolutionRequest struct {