diff --git a/epdc-resident-mp-yushan/utils/integralCentre.js b/epdc-resident-mp-yushan/utils/integralCentre.js new file mode 100644 index 0000000..cf94de1 --- /dev/null +++ b/epdc-resident-mp-yushan/utils/integralCentre.js @@ -0,0 +1,71 @@ +var fly = require('./request.js') +module.exports = { + pointsRecordlist: pointsRecordlist, + userPointsRankinglist:userPointsRankinglist, + gradeRankinglist:gradeRankinglist, + noticelist: noticelist, + noticeDetail:noticeDetail +} +/***********积分**********/ + /** + * 积分记录-积分记录接口 + * timestamp String 第一页查询发起时的时间 + * pageIndex Number 页码 + * pageSize Number 页容量 + */ +function pointsRecordlist ({ + timestamp, + pageIndex, + pageSize +}) { + return fly.get("points/pointsRecord/list", { + timestamp, + pageIndex, + pageSize + }) +} +/** + * 积分记录-锦水-积分排行接口 v2 排名方式发生改变 + * timestamp String 第一页查询发起时的时间 + * pageIndex Number 页码 + * pageSize Number 页容量 + * rankingType Number 排名方式:0-网格,1-街道 + */ +function userPointsRankinglist ({ + timestamp, + pageIndex, + pageSize, + rankingType +}) { + return fly.get("app-user/userPointsRanking/list", { + timestamp, + pageIndex, + pageSize, + rankingType + }) +} +/** + * 积分记录-等级排行接口 6.28 + * timestamp String 第一页查询发起时的时间 + * pageIndex Number 页码 + * pageSize Number 页容量 + */ +function gradeRankinglist ({ + timestamp, + pageIndex, + pageSize +}) { + return fly.get("app-user/user/gradeRanking/list", { + timestamp, + pageIndex, + pageSize + }) +} +// 通知列表(通) +function noticelist (params) { + return fly.get("news/v2/notice/list", params) +} +// 通知详情 +function noticeDetail (noticeId) { + return fly.get(`news/notice/detail/${noticeId}`) +} \ No newline at end of file