- store and product api for jd and elm added.

This commit is contained in:
gazebo
2018-08-27 17:22:15 +08:00
parent 8357982612
commit cc7be396ea
7 changed files with 706 additions and 9 deletions

View File

@@ -240,3 +240,13 @@ func Map2URLValues(mapData map[string]interface{}) (retVal url.Values) {
}
return retVal
}
func MapKV2List(mapData map[string]interface{}) []map[string]interface{} {
retVal := make([]map[string]interface{}, len(mapData))
index := 0
for _, v := range mapData {
retVal[index] = v.(map[string]interface{})
index++
}
return retVal
}