DYH云

DYH开放接口


试卷管理

简要描述
  • 试卷管理
请求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"
            }
        ]
    }
}
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML