38 lines
788 B
Go
38 lines
788 B
Go
package test
|
|
|
|
import "testing"
|
|
|
|
func Test_MarketingSend(t *testing.T) {
|
|
tests := []struct {
|
|
name string
|
|
}{
|
|
{
|
|
name: "给指定用户报名多笔立减活动",
|
|
},
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
MarketingSend()
|
|
})
|
|
}
|
|
}
|
|
|
|
func Test_MarketingQuery(t *testing.T) {
|
|
tests := []struct {
|
|
name string
|
|
appId, openId, couponId string
|
|
}{
|
|
{
|
|
name: "查询绑定多笔立减活动的代金券详情", // 查询的商户非创建方商户 查询商户要为创建方商户
|
|
appId: "wx619991cc795028f5",
|
|
openId: "oSNb4ftgnWC22Z0cWTjsQebdr2Yk",
|
|
couponId: "122529292094",
|
|
},
|
|
}
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
MarketingQuery(tt.appId, tt.openId, tt.couponId)
|
|
})
|
|
}
|
|
}
|