文档
测试

根据分类获取活动列表

POST
{{host}}Score/getListByType

请求头

参数名
类型
描述
必填
token
string
示例:{{token}}
必填
shopid
int
示例:9
必填
sid
int
示例:1
必填

请求参数

参数名
类型
描述
必填
type
int
示例:1
必填
page
int
示例:1
必填
limit
int
示例:10
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:请求成功
必填
time
string
示例:1606993803
必填
data
array
数据列表
必填
id
int
示例:1
必填
title
string
示例:参加小区疫情防控志愿服务工作
必填
type
int
示例:1
必填
types
string
示例:0
必填
score
string
示例:40.00
必填
s_time
int
示例:1606812545
必填
e_time
int
示例:1609404545
必填
createtime
int
示例:1606726298
必填
updatetime
int
示例:1606726298
必填
shop_id
int
示例:9
必填
store_id
int
示例:1
必填
text
object
示例:null
必填
wenti
object
示例:null
必填
types_text
string
示例:Types 0
必填
s_time_text
string
示例:2020-12-01 16:49:05
必填
e_time_text
string
示例:2020-12-31 16:49:05
必填

说明 / 示例

{ "code": 1, "msg": "请求成功", "time": "1606993803", "data": [ { "id": 1, "title": "参加小区疫情防控志愿服务工作", ==活动标题== "type": 1, "types": "0", ==状态 0为提交信息 1: 在线答题== "score": "40.00", ==积分== "s_time": 1606812545, ==开始时间== "e_time": 1609404545, ==结束时间== "createtime": 1606726298, "updatetime": 1606726298, "shop_id": 9, "store_id": 1, "text": null, "wenti": null, "types_text": "Types 0", "s_time_text": "2020-12-01 16:49:05", "e_time_text": "2020-12-31 16:49:05" } ] } { "code": 1, "msg": "请求成功", "time": "1606994115", "data": [ { "id": 3, "title": "测试文章2", "type": 2, "types": "1", ==在线答题== "score": "60.00", "s_time": "2020-11-30 17:40:11", "e_time": "2020-12-31 17:40:11", "createtime": 1606729517, "updatetime": 1606993240, "shop_id": 9, "store_id": 1, "text": null, "wenti": [ { "title": "测试问题1", ==问题== "an": [ ==答案== "1", "2", "3", "4" ], "r_an": "1,2,3,4" ==正确答案== }, { "title": "测试问题2", "an": [ "5", "6", "7", "8" ], "r_an": "5,6,7,8" }, { "title": "测试问题3", "an": [ "9", "10", "11", "12" ], "r_an": "9,10,11,12" } ], "types_text": "Types 1", "s_time_text": "2020-11-30 17:40:11", "e_time_text": "2020-12-31 17:40:11" } ] }