- 京东直降限时抢添加添加取消部分商品接口接口

- 京东重构单品促销接口
This commit is contained in:
gazebo
2019-05-22 12:11:33 +08:00
parent 41a2d7ed5d
commit 3fc08fb52c
2 changed files with 80 additions and 63 deletions

View File

@@ -11,7 +11,7 @@ func TestCreatePromotionSingle(t *testing.T) {
t.Fatal(err)
}
t.Log(infoId)
err = api.CreatePromotionRules(infoId, "", 1, 1, 1, 1)
err = api.CreatePromotionRulesSingle(infoId, "", 1, 1, 1, 1)
if err != nil {
t.Fatal(err)
}
@@ -39,7 +39,7 @@ func TestCreatePromotionLimitTime(t *testing.T) {
t.Fatal(err)
}
t.Log(infoId)
err = api.CreatePromotionRules(infoId, "", 1, 1, 5, 1)
err = api.CreatePromotionRulesLimitTime(infoId, "", 1, 1, 5, 1)
if err != nil {
t.Fatal(err)
}