operations.hotRankTag.js 1.75 KB
/**
 * Created by ty on 2016/6/23.
 * Top100标签
 */

module.exports={
    namespace:"hotRankTag",
    apis:{
        selectTagList:{
            title: "搜索词列表",
            url: '/hotRankTag/selectTagList',
            params: [
                {name: 'page', type: 'Number', def: '1'},
                {name: 'size', type: 'Number', def: '10'},
                {name: 'platform', type: 'String'},//平台
                {name: 'channel', type: 'String'},//频道
                {name: 'status', type: 'Number'}
            ]
        },
        addTag:{
            title: "添加搜索词",
            url: '/hotRankTag/addTag',
            params: [
                {name: 'tagName', type: 'String'},
                {name: 'categoryId', type: 'String'},
                {name: 'platform', type: 'String'},
                {name: 'channel', type: 'String'},
                {name: 'orderBy', type: 'Number'}
            ]
        },
        updateTag:{
            title: "修改搜索词",
            url: '/hotRankTag/updateTag',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'tagName', type: 'String'},
                {name: 'categoryId', type: 'String'},
                {name: 'platform', type: 'String'},
                {name: 'channel', type: 'String'},
                {name: 'orderBy', type: 'Number'}

            ]
        },
        publishTag:{
            title: "发布搜索词",
            url: '/hotRankTag/publishTag',
            params: [
                {name: 'id', type: 'Number'}
            ]
        },
        closeTag:{
            title: "关闭搜索词",
            url: '/hotRankTag/closeTag',
            params: [
                {name: 'id', type: 'Number'}
            ]
        }
    }
}