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.

33 lines
472 B

  1. package orderrpcv2
  2. import (
  3. "testing"
  4. )
  5. func Test_GetUserBuyNum(t *testing.T) {
  6. site_id := "10110"
  7. dbname := "shop_v2"
  8. product_id := "51"
  9. user_id := "2"
  10. ret, err := GetUserBuyNum(site_id, dbname, product_id, user_id)
  11. t.Log(ret)
  12. t.Log(err)
  13. }
  14. func Test_GetUserBuyTotal(t *testing.T) {
  15. site_id := "10110"
  16. dbname := "shop_v2"
  17. product_id := "51"
  18. user_id := "2"
  19. ret, err := GetUserBuyTotal(site_id, dbname, product_id, user_id)
  20. t.Log(ret)
  21. t.Log(err)
  22. }