This commit is contained in:
wuhewuhe 2023-11-05 23:19:08 +01:00
commit 39b0d3bd15
1 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,14 @@ func WithBaseURL(baseURL string) ClientOption {
} }
} }
type ServerResponse struct {
RetCode int `json:"retCode"`
RetMsg string `json:"retMsg"`
Result interface{} `json:"result"`
RetExtInfo struct{} `json:"retExtInfo"`
Time int64 `json:"time"`
}
func PrettyPrint(i interface{}) string { func PrettyPrint(i interface{}) string {
s, _ := json.MarshalIndent(i, "", "\t") s, _ := json.MarshalIndent(i, "", "\t")
return string(s) return string(s)