DYH云

DYH开放接口


添加试卷

<h5>简要描述</h5> <ul> <li>添加试卷, 页面展示类似商品档案表, 做的时候找我下, 我说下页面 ui</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{BASE_URL}}/api/job.paper/addAccountPositioning</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <pre><code>{ "video": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/d6771c8c1f65e9a1ae320d35f96a5d01/8e3766f5b773a22fd55fe983293b0e2f.m3u8", # 视频链接 "name": "小林测试试卷", # 卷子 "step": "webPersonalAccountPositioning", # 固定值 "score": 6, # 总分, 计算后给我, 关键字分数也要加 "extra": [], # 固定值 "objectiveList": [ # 客观题列表 { "type": "1", # 题目类型 "question": "从默认题库中获取的题目", # 问题 "option": [ # 选项, 使用数组 "我是一选项", "我是二选项" ], "answer": "0,1", # 逗号分隔, 正确答案为数组索引 "tag": "1", # 固定值 "belongs": 1, # 固定值 "score": 2 # 单题分数 } ], "subjectiveList": [ { "type": "5", # 题目类型, 这里固定值 "question": "从默认题库中获取的题目", # 题目 "keywords": "关键字 1, 关键字二", # 答案关键字 "answer": "0,1", # 答案 "tag": "1", # 固定值 "belongs": 1, # 固定值 "score": 2, # 主观分多少分 "keyword_score": 20 # 关键字多少分 "subjective_score": 10,主观分 } ] }</code></pre> <h5>返回示例</h5> <pre><code>{ "code": 20000, "msg": "success", "time": "2021-09-14 10:04:50", "data": [] }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML