- store and product api for jd and elm added.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user