DYH云

DYH开放接口


创建考核副本

[TOC]

简要描述
  • 创建考核副本
请求URL
  • {{BASE_URL}}/api/contest.files/index GET
  • filter{"belongs":"1(个人)2(公共)","subject":"竞赛主题搜索","type":"contest"} page:1,limit:9
  • {{BASE_URL}}/api/contest.files/add POST
  • {{BASE_URL}}/api/contest.files/edit/id/filesId POST
  • {{BASE_URL}}/api/contest.files/del/ids/filesId,filesId DELETE
参数
参数名 必选 类型 说明
subject string 竞赛主题
tagId int 标签id
detail string 竞赛详情
thumb string 封面
type int 竞赛类型, 1: 模拟, 2: 正式
belongs int 1个人 2公共
annex string 附件链接
annexName string 附件名
raceType string 竞赛类型, 1: 团队, 2: 个人
stepNode array 竞赛模块详情
返回示例
  {
    "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"
                }
            }
        ]
    }
}
返回参数说明
参数名 类型 说明
groupid int 用户组id,1:超级管理员;2:普通用户
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML