This commit is contained in:
fallen-angle
2022-01-20 16:49:37 +08:00
parent 2280679053
commit 582807ae10
13 changed files with 182 additions and 16 deletions

8
utils/map.go Normal file
View File

@@ -0,0 +1,8 @@
package utils
import "encoding/json"
func MapToJson(param map[string]interface{}) string {
jsonStr, _ := json.Marshal(param)
return string(jsonStr)
}