index.js 3.99 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},
                timeStatus: {type: Number},
                page: {type: Number},
                size: {type: Number}
            }
        },

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

        updateSearchWords: {
            title: "编辑搜索词",
            url: '/searchWords/updateSearchWords',
            params: {
                searchType: {type: Number },
                matchPcUrl: { type: String },
                matchAppAction: { type: String },
                matchAppUrl: { type: String },
                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},
                icon: {type: String}
            }
        },
      delSearchWords: {
            title: "删除搜索词",
            url: '/searchWords/delSearchWords',
            params: {
                id: {type: Number}
            }
        },

        clearSearchWordsCache: {
            title: "清除搜索词缓存",
            url: '/searchWords/clearSearchWordsCache'
        },

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

        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}
            }
        }
    }
};