锦水居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

65 lines
1.7 KiB

var fly = require("./request.js")
module.exports = {
getNoticeList: getNoticeList,
getNoticeDetail: getNoticeDetail,
getNewsDetail: getNewsDetail,
browseNotice: browseNotice,
browseNews: browseNews,
newsPosition: newsPosition,
getInfoList: getInfoList,
infoDetail: infoDetail,
newsSupport: newsSupport,
newsOpposition: newsOpposition,
browsePoints:browsePoints,
getSdsDetail: getSdsDetail,
getGroupBuyDetail: getGroupBuyDetail
}
function getNoticeList (param) {
return fly.get("news/notice/list", param)
}
function getInfoList (param) {
return fly.get("news/information/listByUserId", param)
}
function getNoticeDetail (id) {
return fly.get("news/notice/detail/"+id)
}
function getNewsDetail (id) {
return fly.get(`news/news/detail/${id}`)
}
function browseNotice (param) {
return fly.post("news/notice/browse", param)
}
function browseNews (param) {
return fly.post("news/news/browse", param)
}
// 新闻支持原接口
function newsPosition (param) {
return fly.post("news/news/statement", param)
}
// 新闻支持 v2
function newsSupport (param) {
return fly.post("news/news/newsSupport", param)
}
// 新闻反对 v2
function newsOpposition (param) {
return fly.post("news/news/newsOpposition", param)
}
function infoDetail (param) {
return fly.post("news/information/read", param)
}
// 新闻浏览加积分
function browsePoints (param) {
return fly.post("news/news/browsePoints", param)
}
//顺道捎-我需要捎我可以捎详情接口
function getSdsDetail (id) {
return fly.get(`custom/sds/getSdsDetail/${id}`)
}
//拼团购-详情接口
function getGroupBuyDetail (id) {
return fly.get(`custom/groupBuy/getGroupBuyDetail/${id}`)
}