index.js 3.18 KB
/**
 * Created by yoho on 2016/6/20.
 * 搜索词 接口定义
 */

module.exports = {
    namespace: "searchWords",
    apis: {
        /*************************************搜索词管理*************************************/
        querySearchWords: {
            title: "获取所有搜索词数据",
            url: '/searchWords/querySearchWords',
            params: {
                type: {type: Number},
                channelIds: {type: String},
                startTime: {type: String},
                endTime: {type: String},
                content: {type: String},
                status: {type: Number},
                page: {type: Number},
                size: {type: Number}
            }
        },

        addSearchWords: {
            title: "新增搜索词",
            url: '/searchWords/addSearchWords',
            params: {
                type: {type: Number},
                content: {type: Number},
                channelIds: {type: String},
                url: {type: String},
                startTime: {type: String},
                endTime: {type: String},
                goodsNum: {type: Number},
                sort: {type: Number}
            }
        },

        updateSearchWords: {
            title: "编辑搜索词",
            url: '/searchWords/updateSearchWords',
            params: {
                id: {type: Number},
                type: {type: Number},
                content: {type: String},
                channelIds: {type: String},
                url: {type: String},
                startTime: {type: String},
                endTime: {type: String},
                goodsNum: {type: Number},
                status: {type: Number},
                sort: {type: Number}
            }
        },

        /*************************************品牌热搜词管理*************************************/

        queryHotBrandList: {
            title: "获取所有品牌热搜词数据",
            url: '/hotSearchBrand/queryHotBrandList',
            params: {
                page: {type: Number},
                size: {type: Number},
                brandName: {type: String},
                status: {type: Number}
            }
        },

        addHotBrand: {
            title: "添加品牌热搜词",
            url: '/hotSearchBrand/addHotBrand',
            params: {
                brandName: {type: String},
                orderBy: {type: Number},
                status: {type: Number}
            }
        },

        updateHotBrand: {
            title: "编辑品牌热搜词",
            url: '/hotSearchBrand/updateHotBrand',
            params: {
                id: {type: Number},
                brandName: {type: String},
                orderBy: {type: Number},
                status: {type: Number}
            }
        },

        delHotBrand: {
            title: "删除品牌热搜词",
            url: '/hotSearchBrand/delHotBrand',
            params: {
                id: {type: Number}
            }
        },

        queryHotBrand: {
            title: "查询单个品牌热搜词",
            url: '/hotSearchBrand/queryHotBrand',
            params: {
                id: {type: Number}
            }
        }
    }
};