|
@@ -3,11 +3,16 @@ package zyos_go_coupon |
|
|
import ( |
|
|
import ( |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_coupon.git/db" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_coupon.git/db" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_coupon.git/md" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_coupon.git/md" |
|
|
|
|
|
"fmt" |
|
|
"testing" |
|
|
"testing" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func TestCouponCommCheck(t *testing.T) { |
|
|
func TestCouponCommCheck(t *testing.T) { |
|
|
|
|
|
|
|
|
|
|
|
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>") |
|
|
|
|
|
err := Init("119.23.182.117:3306", "fnuoos_test1", "root", "Fnuo123com@") |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
t.Errorf("Reverse == %s", err) |
|
|
|
|
|
} |
|
|
req := md.CouponCheckRequest{ |
|
|
req := md.CouponCheckRequest{ |
|
|
CouponAmount: "", |
|
|
CouponAmount: "", |
|
|
Uid: "21702", |
|
|
Uid: "21702", |
|
|