创建投票
POST
/api/v1/miniapp/votes请求参数
Body 参数application/json
userName
string
Username
password
string
Password
userEmail
string <email>
Useremail
userGender
可选
Any of
枚举值:
123
默认值:
1
nickName
Nickname
Any of
userPhone
Userphone
Any of
userRoles
Userroles
Any of
status
可选
Any of
枚举值:
12
默认值:
1
示例
{
"title": "标题",
"description": "描述",
"startTime": "2024-12-12 23:59:59",
"endTime": "2099-12-12 23:59:59",
"statusType": "1",
"byVisibleIdList": [],
"byOptionInfoList": [
{
"id": "-1",
"content": "A. 测试",
"statusType": "1"
},
{
"id": "-1",
"content": "B. 测试333",
"statusType": "2"
}
]
}
示例代码
返回响应
成功(200)
Validation Error(422)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
msg
string
必需
data
object
必需
created_id
integer
必需
示例
{
"code": "0000",
"msg": "Created Successfully",
"data": {
"created_id": 7
}
}
最后修改时间: 2 个月前