简要描述
请求URL
- 列表
/api/contest/goods_paper
GET
- 添加
/api/contest/goods_paper/add
POST
- 编辑
/api/contest/goods_paper/edit/:id
POST
- 删除
/api/contest/goods_paper/del/:ids
DELETE
参数
参数名 |
必选 |
类型 |
说明 |
name |
是 |
string |
试卷名称 |
anchorType |
是 |
int |
主播类型 |
portrait |
是 |
string |
用户画像 富文本 |
questionList |
是 |
array |
商品列表 |
请求参数 添加、编辑
{
"name" : "试卷名称",
"anchorType": "1",
"portrait": "11",
"questionList":[
{"contestGoodsId":20, "score":10},
{"contestGoodsId":21, "score":10},
{"contestGoodsId":22, "score":10}
]
}
返回示例 列表
{
"code": 20000,
"msg": "success",
"time": "2021-09-06 14:57:50",
"data": {
"count": 1,
"list": [
{
"contestGoodsPaperId": 1,
"name": "11",
"anchorType": 1,
"platformId": 527,
"score": 1,
"status": 1,
"addTime": "2021-09-06 14:52:59",
"updateTime": "2021-09-06 14:52:59"
}
]
}
}
备注