Fusion
  1. contest
Fusion
  • user
    • profile
      • 用户档案信息
      • 上传用户档案
    • 用户登录
      POST
    • 用户注册
      POST
    • 用户基本信息
      GET
    • 上传用户基本信息
      POST
  • contest
    • 赛事板块列表
      GET
    • 赛事板块信息
      GET
    • 创建赛事
      POST
  • team
    • 创建队伍
      POST
    • 队伍列表
      GET
    • 队伍信息
      GET
    • 队伍申请
      POST
    • 收到请求列表
      GET
    • 请求管理
      POST
  • favorite
    • 收藏赛事操作
      POST
    • 收藏赛事列表
      GET
  • article
    • 赛事资讯文章列表
      GET
    • 赛事资讯文章信息-后续迭代
      GET
    • 创建文章
      POST
  • utils
    • 图片上传
      POST
  1. contest

赛事板块信息

开发中
正式环境
http://101.35.229.143:8888/fusion
正式环境
http://101.35.229.143:8888/fusion
GET
http://101.35.229.143:8888/fusion
/contest/info/{contest_id}
根据赛事板块 ID 获取赛事板块的信息,user_id为0表示未登陆, 非0表示已登陆

请求参数

Path 参数
contest_id
integer 
赛事资讯 ID
必需
Query 参数
user_id
integer 
用户ID
必需

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://101.35.229.143:8888/fusion/contest/info/?user_id='

返回响应

🟢200成功
application/json
Body
status_code
integer 
状态码,0-成功,其他值-失败
必需
status_msg
string  | null 
返回状态描述
必需
contest
object 
赛事资讯信息
必需
contest_id
integer 
赛事资讯 ID
必需
title
string 
标题
必需
image_url
string 
图片 URL
必需
field
string 
所属领域
必需
format
string 
竞赛形式
必需
description
string 
封面文字描述
必需
contest_core_info
object 
比赛核心信息
必需
created_time
integer 
创建时间
必需
is_favorite
boolean 
必需
指示当前用户是否已收藏该赛事。如果用户未登录,则此字段为 false
示例
{
    "status_code": 0,
    "status_msg": "Success",
    "contest": {
        "contest_id": 1,
        "title": "全国大学生数学建模竞赛",
        "image_url": "https://yra-typora-image.oss-cn-hangzhou.aliyuncs.com/DALL%C2%B7E%202023-10-27%2014.53.50%20-%20Vector%20artwork%20inspired%20by%20electronic%20music%20album%20covers,%20featuring%20neon%20grids,%20digital%20landscapes,%20and%20holographic%20mathematical%20formulas.%20In%20the%20cent.png",
        "field": "engineering",
        "format": "team",
        "description": "全国大学生数学建模竞赛是由中国高等教育学会、中国工业与应用数学学会共同主办的全国性竞赛,旨在提高大学生的综合素质,培养学生的创新能力与团队合作精神。",
        "contest_core_info": {
            "deadline": 1700000000,
            "fee": "每队200元",
            "contact": [
                {
                    "name": "张教授",
                    "phone": "12345678901",
                    "email": "zhang@mathcomp.cn"
                },
                {
                    "name": "吴老师",
                    "phone": "12345678901",
                    "email": "wu@mathcomp.cn"
                }
            ],
            "team_size": {
                "min": 3,
                "max": 5
            },
            "participant_requirements": "全日制大学本科生或研究生",
            "official_website": "http://mathcomp.cn",
            "additional_info": "请确保在截止日期前完成报名。"
        },
        "created_time": 1679861162
    }
}
修改于 2023-11-23 11:12:47
上一页
赛事板块列表
下一页
创建赛事
Built with