- v1
- auth
- route
- system-manage
- miniapp
查看投票列表
POST
/api/v1/miniapp/votes/all/
v1系统管理用户管理
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
Body 参数application/json
current
integer
必需
size
integer
必需
title
null
必需
byVisibleIdList
null
必需
byCreateAtId
string
必需
startTimeRange
array[string]
必需
endTimeRange
array[string]
必需
示例
{
"current": 1,
"size": 10,
"title": null,
"byVisibleIdList":null,
"byCreateAtId": "1",
"startTimeRange": ["2024-12-26 00:00:00","2099-12-26 00:00:00"],
"endTimeRange": ["2024-12-26 00:00:00","2099-12-26 00:00:00"]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/miniapp/votes/all/' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"current": 1,
"size": 10,
"title": null,
"byVisibleIdList":null,
"byCreateAtId": "1",
"startTimeRange": ["2024-12-26 00:00:00","2099-12-26 00:00:00"],
"endTimeRange": ["2024-12-26 00:00:00","2099-12-26 00:00:00"]
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
records
array [object {19}]
必需
total
integer
必需
current
integer
必需
size
integer
必需
示例
{"code":"0000","msg":"OK","data":{"records":[{"title":"test111","fmtCreateTime":"2024-12-26 17:34:03","createTime":1735205643071,"fmtUpdateTime":"2024-12-26 17:34:03","updateTime":1735205643071,"byCreateAtId":1,"fmtEndTime":"2099-01-01 00:00:00","endTime":4070880000000,"description":"test111","id":1,"statusType":"1","fmtStartTime":"2024-12-26 00:00:00","startTime":1735142400000,"byVisibleIdList":[],"byVisibleInfoList":[],"byCreateAtInfo":{"userName":"Soybean","nickName":"Soybean","id":1},"byOptionInfoList":[{"byVoteId":1,"fmtCreateTime":"2024-12-26 17:34:03","createTime":1735205643073,"fmtUpdateTime":"2024-12-26 17:34:03","updateTime":1735205643073,"content":"test111","id":1,"statusType":"1"}],"byOptionCount":1,"byRecordCount":0}],"total":1,"current":1,"size":10}}
🟠422Validation Error
修改于 2024-12-26 09:35:36