#投票项目分页列表
GET /api/tcc-business-common/vote/project
类型 | 名称 | 说明 | 类型 |
---|---|---|---|
Query | title 选填 |
标题 | string |
Query | showStatus 选填 |
状态:0草稿,1待审批,2未开始,3投票中,4已结束,5已下架,6不通过 | integer(int32) |
Query | startDate 选填 |
开始日期 | string |
Query | endDate 选填 |
结束日期 | string |
Query | current 选填 |
当前页 | integer(int64) |
Query | size 选填 |
每页条数 | integer(int64) |
HTTP代码 | 说明 | 类型 |
---|---|---|
200 | OK | RestData |
201 | Created | 无内容 |
401 | Unauthorized | 无内容 |
403 | Forbidden | 无内容 |
404 | Not Found | 无内容 |
{
"code": 200,
"data": {
"records": [
{
"id": "1371335000635154434",
"orgId": "464909140298096640",
"title": "匿名投票",
"startTime": "2021-03-14 13:39:31",
"endTime": "2021-03-20 13:39:31",
"cover": null,
"optionNum": 1,
"restrictType": 0,
"restrictNum": 1,
"status": 1,
"examineStatus": 1,
"showStatus": 4,
"createBy": "admin",
"createTime": "2021-03-15 13:38:37",
"voteCount": 1,
"voteDate": "2021-03-14 13:39 ~ 2021-03-20 13:39",
"restrict": "每人最多投1个选项,最多可投1票"
},
{
"id": "1326728456081522690",
"orgId": "464909140298096640",
"title": "第二个投票项目",
"startTime": "2020-11-14 11:27:06",
"endTime": "2020-11-18 11:27:06",
"cover": "gys_tc/20201202/dac56e3e-d605-4229-94fb-089b263d2da4.png",
"optionNum": 1,
"restrictType": 0,
"restrictNum": 10,
"status": 1,
"examineStatus": 1,
"showStatus": 4,
"createBy": "admin",
"createTime": "2020-11-12 11:28:08",
"voteCount": 77,
"voteDate": "2020-11-14 11:27 ~ 2020-11-18 11:27",
"restrict": "每人最多投1个选项,最多可投10票"
}
],
"total": 5,
"size": 20,
"current": 1,
"orders": [],
"hitCount": false,
"searchCount": true,
"pages": 1
},
"desc": "操作成功"
}
名称 | 说明 | 类型 |
---|---|---|
id | 主键id | integer (int64) |
orgId | 租户id | integer (int64) |
title | 标题 | string |
startTime | 投票开始时间 | string (date-time) |
endTime | 投票结束时间 | string (date-time) |
cover | 封面 | string |
optionNum | 用户可投的选项数量 | integer (int32) |
restrictType | 投票限制类型:0/最多可投n票限制,1/每日最多可投n票限制 | integer (int32) |
restrictNum | 最多投票数量 | integer (int32) |
status | 状态:0/草稿,1/上架,2/下架 | integer (int32) |
examineStatus | 审批状态:0/待审批,1/审批通过,2/审批不通过 | integer (int32) |
showStatus | 状态:0/草稿,1/待审批,2/未开始,3/投票中,4/已结束,5/已下架,6/不通过 | integer (int32) |
createBy | 创建人 | string |
createTime | 创建时间 | string (date-time) |
voteCount | 总票数 | integer (int32) |
voteDate | 投票时间 | string |
restrict | 投票限制 | string |