Add account APIs.

This commit is contained in:
Yang Luo
2021-02-11 22:56:08 +08:00
parent 09ffe69382
commit 3ea58a0cdc
7 changed files with 263 additions and 0 deletions

13
util/json.go Normal file
View File

@ -0,0 +1,13 @@
package util
import "encoding/json"
func StructToJson(v interface{}) string {
//data, err := json.MarshalIndent(v, "", " ")
data, err := json.Marshal(v)
if err != nil {
panic(err)
}
return string(data)
}