Loading…

Like/dislike the article

Table of contents on this page
#Like/Dislike ```javascript WXAPI.cmsArticleUseless({ ID: 123 }) ``` + token The login credentials of the current like user + id article ID + isCheck true means it only detects whether the current user has operated, and does not actually submit it. + isUseful true means like, false means dislike The like was successful, or the like was already given when checking. ```json { code: 0, msg: 'success' } ``` When I checked, there were no likes yet. ```json { code: 700, msg: 'No data yet' } ``` # Get likes/dislike records ```json WXAPI.cmsArticleUsefulLogs({ 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 + id article ID + newsUid article attribution user number + newsUserRead Whether the user who owns the article has read this like, true / false + newsUserReaded The article belongs to the user and is marked as read, true / false + showNews returns the corresponding article information, true / false ```json { "code": 0, "data": { "newsMap": { "3545638": { "categoryId": 141459, "commentNumber": 0, "dateAdd": "2023-11-16 09:55:07", "dateUpdate": "2023-11-24 08:16:22", "descript": "Are there any big melons today?/:B-)", "hasTourJourney": false, "id": 3545638, "isDraft": false, "isRecommend": false, "numberExt1": 0, "numberExt2": 0, "numberFav": 0, "organizeEditable": false, "paixu": 0, "shopId": 76459, "signType": 0, "status": 2, "statusStr": "Approved", "title": "Tucao revelations", "uid": 10898334, "unusefulNumber": 0, "usefulNumber": 1, "userId": 121, "views": 94 } }, "result": [ { "avatarUrl": "https://dcdn.it120.cc/cuser/121/2023/11/09/d95b6dfd-41d7-43a5-83df-9cfafc552abc.png", "dateAdd": "2023-11-24 08:16:22", "isUseful": true, "newsId": 3545638, "newsUid": 10898334, "newsUserRead": true, "nick": "Qiao Huan" } ], "totalPage": 1, "totalRow": 1 }, "msg": "success" } ```