锦水居民端小程序
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.
 

54 lines
1.3 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
}
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)
}