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

package couponrpc
import (
"testing"
)
func Test_IsAvailable(t *testing.T) {
dbname := "shop_v2"
user_id := "2"
product_id := "2"
user_coupon_id := "3"
res, err := IsAvailable(dbname, user_id, product_id, user_coupon_id)
t.Log(res)
t.Log(err)
}