2.0订单rpc数据结构
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
613 B

package orderrpcv2
import (
"testing"
)
func Test_Create(t *testing.T) {
// products := []map[string]string{
// map[string]string{
// "product_id": "18",
// "sku_id": "6",
// "quantity": "3",
// },
// map[string]string{
// "product_id": "6",
// "sku_id": "7",
// "quantity": "2",
// },
// }
data := map[string]string{
"product_id": "19",
"name": "5BC02AB31C",
"mobile": "326598744",
"user_id": "2",
"quantity": "3",
"business_id": "1",
"sku_id": "5",
}
ret, err := Create("100064", "shop_v2", data)
t.Log(ret)
t.Log(err)
}