operations.hotsuggest.js 2.62 KB
/**
 * Created by ty on 2016/6/21.
 * 热门意见管理
 */

module.exports={
    namespace:"hotsuggest",
    apis:{
        getSuggestHotList:{
            title: "获取热门意见列表",
            url:'/suggest/suggestHot/getSuggestHotList',
            params: [
                {name: "startTime", type:"string"},
                {name: "endTime", type:"string"},
                {name: "status", type:"string"},
                {name: "clientType", type: "string"},
                {name: "hasImage", type:"string"},
                {name: "isReliable", type:"string"},
                {name: "page", type:"number"},
                {name: "size", type: "number"}
            ]
        },
        addSuggestHot:{
            title: "新增热门意见",
            url: '/suggest/suggestHot/addSuggestHot',
            params: [
                {name: "status", type:"number"},
                {name: "clientType", type:"string"},
                {name: "coverImage", type:"string"},
                {name: "orderBy", type:"number"},
                {name: "content", type:"string"},
                {name: "replyContent", type:"string"}
            ]
        },
        updateSuggestHot:{
            title: "修改热门意见",
            url: '/suggest/suggestHot/updateSuggestHot',
            params: [
                {name: "id", type:"number"},
                {name: "status", type:"number"},
                {name: "clientType", type:"string"},
                {name: "coverImage", type:"string"},
                {name: "orderBy", type:"number"},
                {name: "content", type:"string"},
                {name: "replyContent", type:"string"}
            ]
        },
        deleteSuggestHot:{
            title: "删除/取消热门意见",
            url: '/suggest/suggestHot/deleteSuggestHot',
            params: [
                {name: "id", type: "string"}
            ]
        },
        publishSuggestHot:{
            title: "发布/撤回热门",
            url: '/suggest/suggestHot/publishSuggestHot',
            params: [
                {name: "id", type: "string"},
                {name: "status", type: "number"}
            ]
        },
        batchPublishSuggestHot:{
            title: "批量发布热门意见",
            url: '/suggest/suggestHot/batchPublishSuggestHot',
            params: [
                {name: "id", type: "string"}
            ]
        },
        getSuggestHotById:{
            title: "根据id查询热门意见---------暂未用到",
            url: '/suggest/suggestHot/getSuggestHotById',
            params: [
                {name: "id", type: "string"}
            ]
        }
    }
}