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

  1. package orderrpcv2
  2. import (
  3. "testing"
  4. )
  5. func Test_Create(t *testing.T) {
  6. // products := []map[string]string{
  7. // map[string]string{
  8. // "product_id": "18",
  9. // "sku_id": "6",
  10. // "quantity": "3",
  11. // },
  12. // map[string]string{
  13. // "product_id": "6",
  14. // "sku_id": "7",
  15. // "quantity": "2",
  16. // },
  17. // }
  18. data := map[string]string{
  19. "product_id": "19",
  20. "name": "5BC02AB31C",
  21. "mobile": "326598744",
  22. "user_id": "2",
  23. "quantity": "3",
  24. "business_id": "1",
  25. "sku_id": "5",
  26. }
  27. ret, err := Create("100064", "shop_v2", data)
  28. t.Log(ret)
  29. t.Log(err)
  30. }