简要描述
请求URL
{{BASE_URL}}/api/job.sales_promotion/index
index filter{'paperId':xxx}
{{BASE_URL}}/api/job.sales_promotion/add
POST
{{BASE_URL}}/api/job.sales_promotion/edit/id/:id
POST
{{BASE_URL}}/api/job.sales_promotion/del/ids/:ids
DELETE
参数
{
"paperId":123, #试卷id
"type":"1", # 固定值, 题目类型 1 第一个纪念促销 2第二个引用举例促销 3第三个限定促销...
"name" : "活动名称",
"activityType" : "20", # 活动类型 1,2,3
"activityPrice" : "20", # 商品活动价格
"count": "1", # 个数
"contestGoodsId": "1,2,3", # 商品id字符串 注:组合促销 多个商品 其他单个
"step": "webSalesPromotion" #固定值
"introduce": "这是一个商品介绍", # 商品介绍
"reward": "1", # 奖励 0无 1优惠券 2 红包 3商品
"startTime": "'1970-01-01 00:00:00'", # 开始时间
"endTime": "'1970-01-01 00:00:00'", # 结束时间
"borrowingEvent": "xxxxxxxxx", # 借力事件
#题目
"questionList":[]
}
放questionList里
示例:[
#type 第几题
#question 要考的字段
#score 分数
#answer 正确答案
{question: 'name',name: '活动名称',score: '10',answer:'这是一个抽奖'},
{question: 'activityType',name: '活动类型',score: '10',answer:'1'},
{question: 'count',name: '个数',score: '',answer:'1'},
{question: 'contestGoodsId',name: '商品',score: '',answer:'1,2'}
...
]