Merge branch 'main' into master
This commit is contained in:
commit
5601abdfe1
|
@ -56,6 +56,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)
|
||||||
|
|
Loading…
Reference in New Issue