guang.info.js 5.44 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: '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'},
            ]
        },
        // 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:"contentData",type:"String"},
                {name:"brands",type:"String"},
                {name:"tag",type:"String"}
            ]
        },
        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:"contentData",type:"String"},
                {name:"brands",type:"String"},
                {name:"tag",type:"String"}
            ]
        },
        getDetail:{
            title: "获取文章详细信息",
            url:'/guang/article/getDetail',
            params:[
                {name:"id",type:"Number"}
            ]
        },
        getTags:{
            title: "获取标签列表",
            url:'/guang/tags/getTags'
        },
        queryAllGoodsSort:{
            title: "标签搜索,所有(没用到)",
            apis: {
                colorList: {
                    url: '/erpproduct/product/colorList'
                },
                materialList: {
                    url: '/erpproduct/attribute/index',
                    params: [{
                        name: 'status',
                        type: 'String',
                        def:1
                    }]
                }
            }
        },

    }
}