info.js 5.68 KB
/**
 * Created by ty on 2016/6/20.
 * 资讯管理
 */
module.exports={
    namespace:"infoManager",
    apis:{
        getList:{
            title: "资讯管理列表数据",
            url: '/guang/article/getList',
            params: [
                {name: 'articleTitle', type: 'String'},
                {name: 'articleGender', type: 'String'},
                {name: 'authorId', type: 'Number'},
                {name: 'maxSortId', type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'orderBy', type: 'String'},
                {name: 'startTime', type: 'String'},
                {name: 'endTime', type: 'String'},
                 {name: 'appType', type: 'Number'},
                {name: 'page', type: 'Number'},
                {name: 'size', type: 'Number'}
            ]
        },
        operation:{
            title: "资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)",
            url: '/guang/article/updateArticle',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'articleTitle', type: 'String'},
                {name: 'articleGender', type: 'String'},
                {name: 'authorId', type: 'Number'},
                {name: 'maxSortId', type: 'Number'},
                {name: 'minSortId', type: 'Number'},
                {name: 'articleSummary', type: 'String'},
                {name: 'coverImage', type: 'String'},
                {name: 'status', type: 'Number'},
                {name: 'coverImageType', type: 'Number'},
                {name: 'articleType', type: 'Number'},
                {name: 'adsImgSize', type: 'String'},
                {name: 'isRecommend', type: 'Number'}                
                
            ]
        },
        timePublish:{
            title: "资讯管理-定时",
            url: '/guang/article/timePublish',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'publishTime', type: 'String'}
            ]
        },
        delArticle:{
            title: "资讯管理-删除",
            url: '/guang/article/delArticle',
            params: [
                {name: 'id', type: 'Number'}
            ]
        },
        getAuthorList:{
            title: "作者列表",
            url: '/guang/article/getAuthorList',
            params: [
                {name: 'idName', type: 'String'},
            ]
        },
        //开启的作者列表
        getUsedAuthorList:{
            title: "作者列表",
            url: '/guang/article/getUsedAuthorList',
            params: [
                {name: 'idName', type: 'String'},
            ]
        },
        // getSortList:{
        //     title: "所有分类",
        //     url: '/guang/article/getSortList'
        // },
        getTagItems:{
            title: "根据是否启用获取标签分类列表",
            url: '/guang/tagSort/getTagItems',
            params: [
                {name: 'status', type: 'Number'},
                {name: 'idName', type: 'String'}
            ]
        },
        getCategoryNames:{
            title: "plus star 频道",
            url: '/guang/plustarcategory/getCategoryNames',
            params: [
                {name: 'status', type: 'Number'},
            ]
        },
        addArticle:{
            title: "添加文章",
            url:"/guang/article/addArticle",
            params:[
                {name:"articleTitle",type:"String"},
                {name:"articleGender",type:"String"},
                {name:"authorId",type:"Number"},
                {name:"maxSortId",type:"Number"},
                {name:"minSortId",type:"Number"},
                {name:"articleSummary",type:"String"},
                {name:"coverImage",type:"String"},
                {name:"coverImageType",type:"Number"},
                {name:"articleType",type:"Number"},
                {name:"adsImgSize",type:"String"},
                {name:"url",type:"String"},
                {name:"pcUrl",type:"String"},
                {name:"contentData",type:"String"},
                {name:"brands",type:"String"},
                {name:"tag",type:"String"},
                {name:"appType",type:"Number"}
            ]
        },
        updateArticle:{
            title: "更新文章",
            url:"/guang/article/updateArticle",
            params:[
                {name:"id",type:"Number"},
                {name:"articleTitle",type:"String"},
                {name:"articleGender",type:"String"},
                {name:"authorId",type:"Number"},
                {name:"maxSortId",type:"Number"},
                {name:"minSortId",type:"Number"},
                {name:"articleSummary",type:"String"},
                {name:"coverImage",type:"String"},
                {name:"coverImageType",type:"Number"},
                {name:"articleType",type:"Number"},
                {name:"adsImgSize",type:"String"},
                {name:"url",type:"String"},
                {name:"pcUrl",type:"String"},
                {name:"contentData",type:"String"},
                {name:"brands",type:"String"},
                {name:"tag",type:"String"},
                {name:"appType",type:"Number"}
            ]
        },
        getDetail:{
            title: "获取文章详细信息",
            url:'/guang/article/getDetail',
            params:[
                {name:"id",type:"Number"}
            ]
        },
        getTags:{
            title: "获取标签列表",
            url:'/guang/tags/getTags'
        },
        updateArticlePic: {
            title: "更新逛详情中图片大小",
            url: "/guang/article/updateArticlePic/background",
            params: [
                {name: "page", type:"Number"}
            ]
        }
    }
}