文档
测试

创建、修改活动、投票设置、作品奖项设置

POST
http://zqh.5rkk.com/activity/api/pc/v1/activities

接口描述

创建或修改活动信息时,可调用该接口,修改哪些字段传哪些字段,程序有做验证,传空值的不做处理。传id为修改活动,不传id为创建活动。

请求头

参数名
类型
描述
必填
Authorization
string
a7be6d26-9052-4528-a7fc-d2249dfd147a
必填
User-Id
string
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBpZCI6MSwiZGV2aWNlX2lkIjoiMTAzOEQ4NEItRjc2NC00RUFBLTgyMUUtOEZCNkRCRDYyM0JDIiwiZXhwIjoxNjQ1NjcwOTIzLCJpc3MiOiI5cDZ5anVvYVZ4bjBWd3dtU3R0SWNtM1hKd21jZlJDayIsInBsYXRmb3JtIjoibW9iaWxlIiwic2l0ZSI6MCwidWlkIjoiYTdiZTZkMjYtOTA1Mi00NTI4LWE3ZmMtZDIyNDlkZmQxNDdhIn0.t_6edadWqzpuK1FH8bs0J6SpEceCUKmIblgciwztj28
必填
X-Request-Id
string
1038D84B-F764-4EAA-821E-8FB6DBD623BC
必填

请求参数

参数名
类型
描述
必填
id
int
活动id
可选
title
string
活动名称
可选
pro
string
活动简介
可选
pro_html
string
活动简介(html代码)
可选
img
string
封面图
可选
apply_start
string
征集开始时间
可选
apply_end
string
征集结束时间
可选
apply_num
int
每人可上传作品数量
可选
vote_start
string
投票开始时间
可选
vote_end
string
投票结束时间
可选
vote_name
string
投票名称(点赞名称)
可选
vote_time
string
点赞设置 1:整个评选阶段 2:每天
可选
vote_pnum
int
每人可投票作品数量
可选
vote_num
int
每个作品可投票数量
可选
award_switch
int
奖项开关 0:关 1:开
可选
award_remark
string
优秀作品公布说明(颁奖时输入)
可选
cate_list
array
作品分类列表(二维数组)
可选
0
int
索引
可选
id
int
分类id
可选
title
string
名称
可选
1
int
索引
可选
id
int
分类id
可选
title
string
名称
可选
award_list
array
奖项列表
可选
0
int
索引
可选
id
int
奖项id
可选
title
string
名称
可选
num
int
数量
可选
pro
string
详细要求
可选
1
int
索引
可选
id
int
奖项id
必填
title
string
名称
必填
num
int
数量
必填
pro
string
详细要求
必填
is_publish
int
过审后自动发布 0:否 1:是
可选
cate_del
array
删除的分类id数组(索引数组)
可选
1
int
分类id
可选
3
int
分类id
可选
award_del
array
删除的奖项id数组(索引数组)
可选
2
int
奖项id
可选
3
int
奖项id
可选
is_check
int
是否提交审核(点击完成时触发)1:是 0:否
可选

响应参数

参数名
类型
描述
必填
code
int
状态码 0:成功
必填
msg
string
提示语
必填
data
array
活动创建或修改后的详情数据(详见示例)
必填

说明 / 示例

``` 返回数据 { "code": 200, "msg": "请求成功", "data": { "id": 1, "uid": "1", "title": "asd333", "pro": "[{"type":"0","textContentHeight":"60.000000","content":"总标题"},{"type":"1","list":["0","0","0"],"textContentHeight":"44.000000","textType":"1","attributedText":"大标题","content":"大标题"},{"type":"1","list":["0","0","0"],"textContentHeight":"42.000000","showTextH":"36.000000","textType":"0","attributedText":"小标题","content":"小标题"},{"type":"1","list":["0001","0001"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"蓝色","content":"蓝色"},{"type":"1","list":["0004","0004"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"红色","content":"红色"},{"type":"1","list":["0005","0005"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"紫色","content":"紫色"},{"type":"1","list":["0003","0003"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"黄色","content":"黄色"},{"type":"1","list":["0002","0002"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"绿色","content":"绿色"},{"type":"1","list":["0100","0100"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"斜体","content":"斜体"},{"type":"1","list":["1000","1000"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"加粗","content":"加粗"},{"type":"1","list":["0010","0010","0010"],"textContentHeight":"40.000000","showTextH":"36.000000","textType":"0","attributedText":"下划线","content":"下划线"},{"type":"1","list":[],"textContentHeight":"51.000000","showTextH":"36.000000","textType":"0","attributedText":"","content":""},{"imgType":"png","type":"2","textContentHeight":"32.000000","showTextH":"32.000000","height":"2016.000000","imgDesc":"图片描述","imageFileUrl":"/var/mobile/Containers/Data/Application/DE89DE62-4097-4983-B05A-E35DF96AC93E/Documents/temp/PmnlAG.png","content":"","showImgH":"460.000000","width":"1512.000000"}]", "pro_html": "<p style="font-size: 40px;line-height: 60;"><h2>总标题</h2></p><p style="font-size: 32px;line-height: 44;"><h2>大标题</h2></p><p style="font-size:32px;line-height: 42;color:;">小标题</p><p style="font-size:32px;line-height: 40;color:#137efb;">蓝色</p><p style="font-size:32px;line-height: 40;color:#fc3042;">红色</p><p style="font-size:32px;line-height: 40;color:#d00bd7;">紫色</p><p style="font-size:32px;line-height: 40;color:#fed02f;">黄色</p><p style="font-size:32px;line-height: 40;color:#52d868;">绿色</p><p style="font-size:32px;line-height: 40;font-style: italic;color:#000000;">斜体</p><p style="font-size:32px;line-height: 40;font-weight:bold;color:#000000;">加粗</p><p style="font-size:32px;line-height: 40;text-decoration: underline;color:#000000;">下划线</p><p style="font-size:32px;line-height: 51;color:;"></p><img src="https://p.cyol.com//var/mobile/Containers/Data/Application/DE89DE62-4097-4983-B05A-E35DF96AC93E/Documents/temp/PmnlAG.png" style="max-height:2016px;max-width:1512px;" />", "img": "asdfasfd", "apply_start": "2021-11-11 13:54:38", "apply_end": "2021-11-19 13:54:38", "apply_num": 1, "vote_start": "2021-11-19 13:54:38", "vote_end": "2021-11-25 13:54:38", "vote_name": "点赞", "vote_time": 1, "vote_pnum": 1, "vote_num": 2, "cate_switch": 1, "award_switch": 1, "award_remark": "大家快去领奖吧", "program_num": 0, "person_num": 0, "vote_all": 0, "sort": 0, "is_publish":1, "statue": 5, "publish_at": "", "created_at": "2021-11-11 14:59:06", "updated_at": "2021-11-12 14:02:58", "deleted_at": null, "selection_type": 3, "collect_type": 3, "cate_list": [ { "id": 1, "title": "教育2" }, { "id": 2, "title": "娱乐2" } ], "award_list": [ { "id": 1, "title": "一等奖d2", "num": 1, "pro": "最好好d2" }, { "id": 2, "title": "二等奖d2", "num": 5, "pro": "亚好的d2" } ] } } ```