文档
测试

赛事项目下创建赛段

POST
/admin/match/events/stages/add

请求头

参数名
类型
描述
必填
token
string
用户token
必填

请求参数

参数名
类型
描述
必填
sys_match_id
string
赛事项目ID
必填
match_stage_title
string
赛段名称
必填
match_stage_start_time
string
赛段开始时间
必填
match_stage_stop_time
string
赛段结束时间
必填
max_integral
int
赛段最多积分
必填
sub_integral
int
每降低一名,积分递减数
必填
get_integral_type
int
获取积分人数类型,0:指定人数,1:按参赛人数/队伍数比例
必填
get_integral_value
float
能够获得积分的人群值,0:人/队,1:百分比
必填
match_promotion_type
int
赛段晋级类型 0:指定晋级人数,1:按参与人数晋级
必填
match_promotion_value
float
赛段晋级值,人数,百分比
必填
sys_sys_match_id
string
赛事ID
必填
match_stage_distance
float
赛段需运动的距离
必填
view_type
int
前端UI界面 1:标准赛事,2:摇跑
必填
matchs_stage_id
string
赛段ID,存在即为编辑赛段
必填
is_exponent
是否为摇跑指数 0:否 1:是
必填

响应参数

参数名
类型
描述
必填
code
int
响应状态值
必填
msg
string
响应信息
必填
data
Object
响应数据
必填

说明 / 示例

请求示例 ```json { "sys_match_id":"48994755022950400", "sys_sys_match_id":"48988132351152128", "match_stage_title":"第一赛段", "match_stage_start_time":"1621395920", "match_stage_stop_time":"1621568720", "max_integral":1000, "sub_integral":100, "get_integral_type":0, "get_integral_value":10, "match_promotion_type":0, "match_promotion_value":8, "match_stage_distance":1000, "view_type":1, "is_exponent":1 } ``` 返回示例: ```json { "code": 1, "msg": "创建成功" } { "code": 1, "msg": "编辑成功" } ```