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

94 lines
2.5 KiB

var fly = require("./request.js")
module.exports = {
modulelist: modulelist,
deptinfolist:deptinfolist,
noticelist: noticelist,
noticeDetail:noticeDetail,
archivedepts:archivedepts,
archivelist:archivelist,
archiveDetail:archiveDetail,
bannerList:bannerList,
videoBannerList:videoBannerList,
getFullDictInfo:getFullDictInfo,
moduleCategory:moduleCategory,
getCommentList: getCommentList,
commentSupport: commentSupport,
commentOpposition: commentOpposition,
commentSubmit: commentSubmit,
commentReplySubmit: commentReplySubmit
}
// 了解锦水-模块管理接口
function modulelist(moduleCategory='') {
return fly.get(`custom/module/list/${moduleCategory}`)
}
//了解锦水-硬核管理接口
function deptinfolist (params) {
return fly.get("custom/deptinfo/list",params)
}
// 通知列表(通)
function noticelist (params) {
return fly.get("news/v2/notice/list", params)
}
// 通知详情
function noticeDetail (noticeId) {
return fly.get(`news/notice/detail/${noticeId}`)
}
// 了解锦水-锦水档案归属部门列表
function archivedepts(params) {
return fly.get('custom/archive/depts', params)
}
// 了解锦水-锦水档案列表
function archivelist(params) {
return fly.get('custom/archive/list', params)
}
// 了解锦水-锦水档案详情
function archiveDetail(archiveId) {
return fly.get(`custom/archive/detail/${archiveId}`)
}
//获取锦水警事banner列表
function bannerList(position) {
return fly.get('news/banner/list', {
position
})
}
//获取锦水印象-详情-视频banner列表
function videoBannerList(position) {
return fly.get('news/banner/list', {
position
})
}
// 老兵在线
function getFullDictInfo (dictType) {
return fly.get(`dic/getFullDictInfo/${dictType}`)
}
// 一键服务/解码锦水 改版模块类别接口
function moduleCategory(params) {
return fly.get('news/module/moduleCategory', params)
}
//内容评论列表【最新/最热列表】
function getCommentList(params) {
return fly.get('news/notice/comment/list', params)
}
//表态内容评论(赞)
function commentSupport (data) {
return fly.post("news/notice/comment/statement/support", data)
}
//表态内容评论(踩)
function commentOpposition (data) {
return fly.post("news/notice/comment/statement/opposition", data)
}
//内容评论提交
function commentSubmit (data) {
return fly.post("news/notice/comment/submit", data)
}
//内容评论的回复提交
function commentReplySubmit (data) {
return fly.post("news/notice/comment/reply/submit", data)
}