Loading…

Read the list of voting items (pull questionnaire)

```javascript WXAPI.voteItems({ page: 1 }) ``` + page gets the page data. If this parameter is not passed, the default value is 1. + pageSize How many records are obtained per page? If this parameter is not passed, the default is 50 + status status 0 normal 1 closed + categoryId pulls the voting items of the specified category + orderBy sorting: idAsc, idDesc + pass showItems true, the list will display all voting options ```json { "code": 0, "data": { "result": [ { "categoryId": 78201, "content": "", "id": 147, "isLimitGroup": false, "isPublic": false, "items": [ { "id": 919, "isBest": false, "paixu": 0, "status": 0, "title": "https://dcdn.it120.cc/2022/04/20/b86c5c91-f6c6-4600-9cfe-e76f2e834a49.jpeg", "titleType": 1, "type": 0, "userId": 10, "voteId": 147, "voteNum": 0 }, { "id": 920, "isBest": false, "paixu": 0, "status": 0, "title": "https://dcdn.it120.cc/2022/04/20/fd9809d5-f76c-4f79-9d4d-a04638487b58.jpeg", "titleType": 1, "type": 0, "userId": 10, "voteId": 147, "voteNum": 0 }, { "id": 921, "isBest": false, "paixu": 0, "status": 0, "title": "https://dcdn.it120.cc/2022/04/20/35251b0d-d54d-4f0b-8929-2889945b59c6.jpeg", "titleType": 1, "type": 0, "userId": 10, "voteId": 147, "voteNum": 0 }, { "id": 922, "isBest": false, "paixu": 0, "status": 0, "title": "https://dcdn.it120.cc/2022/04/20/7290a799-1867-4b87-bab2-2f7ec2a70c4d.jpeg", "titleType": 1, "type": 0, "userId": 10, "voteId": 147, "voteNum": 0 } ], "joinNum": 0, "limitUserDay": 1, "limitUserTotal": 1, "rule": 0, "status": 0, "title": "Which type of tongue does it belong to?", "type": 0, "userId": 10 }, { "categoryId": 78201, "content": "", "id": 146, "isLimitGroup": false, "isPublic": false, "items": [ { "id": 912, "isBest": false, "paixu": 0, "status": 0, "title": "Under 30 years old", "titleType": 0, "type": 0, "userId": 10, "voteId": 146, "voteNum": 0 }, { "id": 913, "isBest": false, "paixu": 0, "status": 0, "title": "30-40", "titleType": 0, "type": 0, "userId": 10, "voteId": 146, "voteNum": 0 }, { "id": 914, "isBest": false, "paixu": 0, "status": 0, "title": "40-50", "titleType": 0, "type": 0, "userId": 10, "voteId": 146, "voteNum": 0 }, { "id": 915, "isBest": false, "paixu": 0, "status": 0, "title": "50-60", "titleType": 0, "type": 0, "userId": 10, "voteId": 146, "voteNum": 0 }, { "id": 916, "isBest": false,"paixu": 0, "status": 0, "title": "Over 60 years old", "titleType": 0, "type": 0, "userId": 10, "voteId": 146, "voteNum": 0 } ], "joinNum": 0, "limitUserDay": 1, "limitUserTotal": 1, "rule": 0, "status": 0, "title": "What age group are you in?", "type": 0, "userId": 10 } ], "totalRow": 9, "totalPage": 1 }, "msg": "success" } ``` + id question record ID + title title + rule 0 single choice 1 multiple choice + items question options - id answer record ID - title the answer title (or the image address of the image answer) - titleType 0 is text answer; 1 is picture answer