优惠券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.

17 lines
257 B

  1. package couponrpc
  2. import (
  3. "testing"
  4. )
  5. func Test_IsAvailable(t *testing.T) {
  6. dbname := "shop_v2"
  7. user_id := "2"
  8. product_id := "2"
  9. user_coupon_id := "3"
  10. res, err := IsAvailable(dbname, user_id, product_id, user_coupon_id)
  11. t.Log(res)
  12. t.Log(err)
  13. }