Merge branch 'main' into master

This commit is contained in:
CommaHunger 2023-11-05 22:43:13 +01:00 committed by GitHub
commit 5601abdfe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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 {
s, _ := json.MarshalIndent(i, "", "\t")
return string(s)