锦水居民端小程序
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")
6 years ago
module.exports = {
getNoticeList: getNoticeList,
getNoticeDetail: getNoticeDetail,
getNewsDetail: getNewsDetail,
browseNotice: browseNotice,
browseNews: browseNews,
newsPosition: newsPosition,
getInfoList: getInfoList,
5 years ago
infoDetail: infoDetail,
newsSupport: newsSupport,
newsOpposition: newsOpposition,
browsePoints:browsePoints
6 years ago
}
function getNoticeList (param) {
return fly.get("news/notice/list", param)
6 years ago
}
function getInfoList (param) {
return fly.get("news/information/listByUserId", param)
6 years ago
}
function getNoticeDetail (id) {
return fly.get("news/notice/detail/"+id)
6 years ago
}
function getNewsDetail (id) {
6 years ago
return fly.get(`news/news/detail/${id}`)
}
function browseNotice (param) {
return fly.post("news/notice/browse", param)
6 years ago
}
function browseNews (param) {
return fly.post("news/news/browse", param)
6 years ago
}
5 years ago
// 新闻支持原接口
function newsPosition (param) {
return fly.post("news/news/statement", param)
6 years ago
}
5 years ago
// 新闻支持 v2
function newsSupport (param) {
return fly.post("news/news/newsSupport", param)
5 years ago
}
// 新闻反对 v2
function newsOpposition (param) {
return fly.post("news/news/newsOpposition", param)
5 years ago
}
function infoDetail (param) {
return fly.post("news/information/read", param)
6 years ago
}
// 新闻浏览加积分
function browsePoints (param) {
return fly.post("news/news/browsePoints", param)
}