问卷/试卷服务
成长值服务
短信服务

投票服务


新增投票项目

POST /api/tcc-business-common/vote/project

参数

类型 名称 说明 类型
Body dto
必填
DTO 新增投票项目表单DTO

新增投票项目表单DTO

名称 说明 类型
orgId 租户id integer (int64)
title 标题
不能超过50个字符
必填
string
startTime 投票开始时间
必填
string (date-time)
endTime 投票结束时间
必填
string (date-time)
cover 封面
不能超过255个字符
string
optionNum 用户可投的选项数量
必填
integer (int32)
restrictType 投票限制类型:0/最多可投n票限制,1/每日最多可投n票限制
必填
integer (int32)
restrictNum 最多投票数量
必填
integer (int32)
rule 投票规则 string
voteDesc 投票简介 string
status 状态:0/草稿,1/上架,2/下架 integer (int32)
examineStatus 审批状态:0/待审批,1/审批通过,2/审批不通过 integer (int32)
viewCount 浏览数 integer (int32)

调用示例

{
  "orgId": 123221421421,
  "title": "新增投票项目示例",
  "startTime": "2021-03-22 03:32:55",
  "endTime": "2021-03-24 03:32:55",
  "cover": null,
  "optionNum": 1,
  "restrictType": 0,
  "examineStatus": 0,
  "restrictNum": 10,
  "rule": "投票规则", 
  "voteDesc": "投票简介",
  "status": 0,
  "viewCount": 10

}
响应
HTTP代码 说明 类型
200 OK RestData
201 Created 无内容
401 Unauthorized 无内容
403 Forbidden 无内容
404 Not Found 无内容

响应示例

{
	"code": 200,
	"data": {},
	"desc": ""
}