struct 转map
func StructToMap(v interface{}) (map[string]interface{}, error) {
values := map[string]interface{}{}
bytes, err := json.Marshal(v)
if err != nil {
return values, err
}
err = json.Unmarshal(bytes, &values)
return values, err
}