"use strict"; var fly = require("./request.js"); module.exports = { getToken: getToken, getCompleteName: getCompleteName, saveWxFormid: saveWxFormid, getScanSwitch: getScanSwitch, getTokenV2: getTokenV2, updateWxInfo: updateWxInfo, sendSms: sendSms, gridLeaderRegister: gridLeaderRegister, getGridList: getGridList, changeGrid: changeGrid, completeInfo: completeInfo, completeResidentInfo: completeResidentInfo, completePartyInfo: completePartyInfo, prepareComplete: prepareComplete, getUserInfo: getUserInfo, getMyAssociation: getMyAssociation, getCommandAssociation: getCommandAssociation, getMyTopicList: getMyTopicList, getMyTopicListV2: getMyTopicListV2, getMyIssueList: getMyIssueList, getMyProjectList: getMyProjectList, checkWxUnionId: checkWxUnionId, bannerList: bannerList, getFirstInfo: getFirstInfo, noticelist: noticelist, newsList: newsList, getIssueList: getIssueList, getProjectList: getProjectList, pointsRankinglist: pointsRankinglist, pointsRecordlist: pointsRecordlist, getVolunteerList: getVolunteerList, getActivityList: getActivityList, getInProgress: getInProgress, getImgUrl: getImgUrl, getMyActivityList: getMyActivityList, getHeartConfigs: getHeartConfigs, getActLookBack: getActLookBack, updateWxUserInfo: updateWxUserInfo, detail: detail, rejectDetail: rejectDetail, cancelDetail: cancelDetail, clockAddressDetail: clockAddressDetail, clockList: clockList, getPhraseList: getPhraseList, sagenumAddOne: sagenumAddOne, clock: clock, authenticate: authenticate, signup: signup, cancelsignup: cancelsignup, getSignedList: getSignedList, unpassActivityDetail: unpassActivityDetail, completeInfoV2: completeInfoV2, getTokenV3: getTokenV3, getWxPhone: getWxPhone, completeResidentInfoV2: completeResidentInfoV2, completePartyInfoV2: completePartyInfoV2, userPointsRankinglist: userPointsRankinglist, getDefaultGridInfo: getDefaultGridInfo, getResidentConfig: getResidentConfig, getScrip: getScrip, getHomePhone: getHomePhone, gradeRankinglist: gradeRankinglist, newlive: newlive }; function getToken(wxCode) { return fly.get("app-user/user/ma/getToken", { wxCode: wxCode }); } function bannerList(position) { return fly.get("news/banner/list", { position: position }); } function getIssueList(param) { return fly.get("events/issue/list", param); } function getProjectList(param) { return fly.get("events/item/list", param); } function getFirstInfo() { return fly.post("news/information/first"); } function noticelist(param) { return fly.get("news/notice/list", param); } function newsList(param) { return fly.get("news/news/list", param); } function getScanSwitch(versionNum) { return fly.get("ma/scanSwitch", { versionNum: versionNum }); } function getCompleteName(gridId) { return fly.get("admin/dept/completeName", { gridId: gridId }); } function saveWxFormid(wxCode, wxFormId) { return fly.post("app-user/wxformid/save", { wxCode: wxCode, wxFormId: wxFormId }); } function getTokenV2(_a) { var wxCode = _a.wxCode, gridId = _a.gridId, inviteUserId = _a.inviteUserId; return fly.get("app-user/user/ma/v2/getToken", { wxCode: wxCode, gridId: gridId, inviteUserId: inviteUserId }); } function updateWxInfo(wxCode, encryptedData, iv) { return fly.post("app-user/user/ma/updateWxInfo", { wxCode: wxCode, encryptedData: encryptedData, iv: iv }); } function gridLeaderRegister(mobile, smsCode, wxCode) { return fly.post("app-user/user/ma/gridLeaderRegister", { mobile: mobile, smsCode: smsCode, wxCode: wxCode }); } function prepareComplete() { return fly.post("heart/resi/volunteer/selectvolunteerinfo", {}); } function sendSms(mobile) { return fly.get("message/sms/sendCode", { mobile: mobile }); } function getGridList() { return fly.get("app-user/user/listGrid"); } function changeGrid(gridId) { return fly.get("app-user/user/switchGrid/" + gridId); } function getUserInfo() { return fly.get("app-user/user/getInfoById"); } function getMyAssociation() { return fly.get("group/group/listOfMine"); } function getCommandAssociation() { return fly.get("group/group/listOfRecommend"); } function getMyTopicList(_a) { var pageIndex = _a.pageIndex, pageSize = _a.pageSize; return fly.get("group/topic/listOfMine", { pageIndex: pageIndex, pageSize: pageSize }); } function getMyTopicListV2(_a) { var pageIndex = _a.pageIndex, pageSize = _a.pageSize, timestamp = _a.timestamp; return fly.get("partyGroup/myTopicList/list", { pageIndex: pageIndex, pageSize: pageSize, timestamp: timestamp }); } function getMyIssueList() { return fly.get("events/issue/listByUserId"); } function getMyProjectList(_a) { var pageIndex = _a.pageIndex, pageSize = _a.pageSize, timestamp = _a.timestamp; return fly.get("events/item/listByUserId", { pageIndex: pageIndex, pageSize: pageSize, timestamp: timestamp }); } function checkWxUnionId() { return fly.get("app-user/user/checkWxUnionId"); } function pointsRecordlist(_a) { var timestamp = _a.timestamp, pageIndex = _a.pageIndex, pageSize = _a.pageSize; return fly.get("points/pointsRecord/list", { timestamp: timestamp, pageIndex: pageIndex, pageSize: pageSize }); } function pointsRankinglist(_a) { var timestamp = _a.timestamp, pageIndex = _a.pageIndex, pageSize = _a.pageSize, rankingType = _a.rankingType; return fly.get("points/pointsRanking/list", { timestamp: timestamp, pageIndex: pageIndex, pageSize: pageSize, rankingType: rankingType }); } function userPointsRankinglist(_a) { var timestamp = _a.timestamp, pageIndex = _a.pageIndex, pageSize = _a.pageSize, rankingType = _a.rankingType; return fly.get("app-user/userPointsRanking/list", { timestamp: timestamp, pageIndex: pageIndex, pageSize: pageSize, rankingType: rankingType }); } function getVolunteerList(param) { return fly.post("heart/resi/act/leaderboard", { pageNo: param.pageIndex, pageSize: param.pageSize, customerId: param.customerId }); } function detail(id) { return fly.post("heart/resi/act/detail", { actId: id }); } function rejectDetail(id) { return fly.get("heart/act/rejectDetail/" + id); } function cancelDetail(id) { return fly.get("heart/act/cancelDetail/" + id); } function clockAddressDetail(id) { return fly.get("heart/act/clockAddressDetail", { actId: id }); } function clockList(actId) { return fly.post("heart/resi/act/livereclist", { actId: actId }); } function getPhraseList() { return fly.get("heart/phrase/getPhraseList"); } function sagenumAddOne(id) { return fly.post("heart/phrase/sagenumAddOne", { id: id }); } function getActivityList(params) { return fly.post("heart/resi/act/list", { pageNo: params.pageIndex, pageSize: params.pageSize, customerId: params.customerId }); } function getActLookBack(params) { return fly.post("heart/resi/act/actlookback", { pageNo: params.pageIndex, pageSize: params.pageSize, customerId: params.customerId }); } function bannerListV2() { return fly.get("heart/actbanner/banner/list"); } function getImgUrl(imgType) { return fly.get("imgConfig/getImgUrl/" + imgType); } function getInProgress() { return fly.post("heart/resi/act/inprogress"); } function getHeartConfigs(param) { return fly.post("heart/actcustomized/getconfigs", param); } function clock(data) { return fly.post("heart/resi/act/signin", data); } function newlive(data) { return fly.post("heart/resi/act/insertlive", data); } function getMyActivityList(param) { return fly.post("heart/resi/act/list/" + param.type, { pageSize: param.pageSize, pageNo: param.pageIndex, customerId: param.customerId }); } function authenticate(data) { return fly.post("heart/resi/volunteer/authenticate", data); } function signup(actId) { return fly.post("heart/act/signup?actId=" + actId); } function cancelsignup(id, cid, response) { return fly.post("heart/resi/act/cancelsignup", { actId: id, failureReason: response, customerId: cid }); } function getSignedList(_a) { var pageIndex = _a.pageIndex, pageSize = _a.pageSize, timestamp = _a.timestamp, actType = _a.actType; return fly.get("heart/act/signupList", { pageIndex: pageIndex, pageSize: pageSize, timestamp: timestamp, actType: actType }); } function unpassActivityDetail(id) { return fly.post("heart/resi/act/rejectdetail", { actId: id }); } function updateWxUserInfo(param) { return fly.post('epmetuser/user/updatewxuserinfo', param); } function completeInfoV2(para) { return fly.post("app-user/user/v2/completeInfo", para); } function completeInfo(data) { return fly.post("app-user/user/completeInfo", data); } function completeResidentInfo(data) { return fly.post("app-user/user/completeResidentInfo", data); } function completePartyInfo(data) { return fly.post("app-user/user/completePartyInfo", data); } function completeResidentInfoV2(para) { return fly.post("app-user/user/v2/completeResidentInfo", para); } function completePartyInfoV2(para) { return fly.post("app-user/user/v2/completePartyInfo", para); } function getTokenV3(para) { return fly.get("app-user/user/ma/v3/getToken", para); } function getWxPhone(_a) { var wxCode = _a.wxCode, encryptedData = _a.encryptedData, iv = _a.iv; return fly.post('auth/login/getresiwxphone', { wxCode: wxCode, encryptedData: encryptedData, iv: iv }); } function getDefaultGridInfo() { return fly.get("dic/getDefaultGridInfo"); } function getResidentConfig() { return fly.get("residentConfig/getResidentConfig"); } function getScrip() { return fly.post("admin/getScrip"); } function getHomePhone() { return fly.get("imgConfig/getImgUrl/3"); } function gradeRankinglist(_a) { var timestamp = _a.timestamp, pageIndex = _a.pageIndex, pageSize = _a.pageSize; return fly.get("app-user/user/gradeRanking/list", { timestamp: timestamp, pageIndex: pageIndex, pageSize: pageSize }); }