创建考核副本
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>创建考核副本</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{BASE_URL}}/api/contest.files/index GET</code></li>
<li><code>filter{"belongs":"1(个人)2(公共)","subject":"竞赛主题搜索","type":"contest"} page:1,limit:9</code></li>
<li><code>{{BASE_URL}}/api/contest.files/add POST</code></li>
<li><code>{{BASE_URL}}/api/contest.files/edit/id/filesId POST</code></li>
<li><code>{{BASE_URL}}/api/contest.files/del/ids/filesId,filesId DELETE</code></li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">subject</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>竞赛主题</td>
</tr>
<tr>
<td style="text-align: left;">tagId</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>标签id</td>
</tr>
<tr>
<td style="text-align: left;">detail</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>竞赛详情</td>
</tr>
<tr>
<td style="text-align: left;">thumb</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>封面</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>竞赛类型, 1: 模拟, 2: 正式</td>
</tr>
<tr>
<td style="text-align: left;">belongs</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>1个人 2公共</td>
</tr>
<tr>
<td style="text-align: left;">annex</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>附件链接</td>
</tr>
<tr>
<td style="text-align: left;">annexName</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>附件名</td>
</tr>
<tr>
<td style="text-align: left;">raceType</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>竞赛类型, 1: 团队, 2: 个人</td>
</tr>
<tr>
<td style="text-align: left;">stepNode</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">array</td>
<td>竞赛模块详情</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"code": 20000,
"msg": "success",
"time": "2022-03-01 17:10:32",
"data": {
"count": 1,
"list": [
{
"filesId": 1,
"platformId": 527,
"belongs": 1,
"subject": "",
"type": 1,
"thumb": "",
"annex": "",
"annexName": "",
"detail": "",
"raceType": 1,
"stepNode": [
{
"groupId": 62,
"paperId": 483,
"startTime": "2022-02-28 10:21:00",
"endTime": "2022-03-31 10:21:00",
"step": "webLiveExistingProblems",
"duration": 1800,
"grades": 20,
"weigh": 0,
"job": 1
},
{
"groupId": 62,
"paperId": 4218,
"startTime": "2022-02-28 10:21:00",
"endTime": "2022-03-31 10:21:00",
"step": "webBasic",
"duration": 1200,
"grades": 10,
"weigh": 1,
"job": 1
},
{
"groupId": 275,
"paperId": 4219,
"startTime": "2022-02-28 16:37:00",
"endTime": "2022-03-31 16:37:00",
"step": "webBasic",
"duration": 2400,
"grades": 10,
"weigh": 0,
"job": 1
}
],
"addTime": "1970-01-01 00:00:00",
"updateTime": "1970-01-01 00:00:00",
"status": 1,
"platform": {
"platformId": 527,
"username": "zjp_test"
}
}
]
}
}</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>