hotBrands.js 1.88 KB
/**
 * Created by jiangmin on 16/5/11.
 * 热门品牌搜索词
 */

//接口主域
exports.domain = require('../config/common.js').domain;
//exports.domain = "http://172.16.6.214:8088/platform";
//路由配置
exports.res = [
    {
        //搜索词页面渲染
        route: '/hotSearchBrand/index',
        method: 'GET',
        view: 'pages/hotBrands/index',
        src: '/hotBrands/index'
    },
    //搜索词列表
    {
        route: '/hotSearchBrand/queryHotBrandList',
        method: 'POST',
        url: '/hotSearchBrand/queryHotBrandList',
        params: [
            {name: 'page', type: 'Number', def: '1'},
            {name: 'size', type: 'Number', def: '10'},
            {name: 'brandName', type: 'String'},
            {name: 'status', type: 'Number'}
        ]
    },
    {
        //添加搜索词
        route: '/hotSearchBrand/addHotBrand',
        method: 'POST',
        url: '/hotSearchBrand/addHotBrand',
        params: [
            {name: 'brandName', type: 'String'},
            {name: 'orderBy', type: 'Number'},
            {name: 'status', type: 'Number'}
        ]
    },
    {
        //搜索词修改
        route: '/hotSearchBrand/updateHotBrand',
        method: 'POST',
        url: '/hotSearchBrand/updateHotBrand',
        params: [
            {name: 'id', type: 'Number'},
            {name: 'brandName', type: 'String'},
            {name: 'orderBy', type: 'Number'},
            {name: 'status', type: 'Number'}

        ]
    },
    {
        //删除
        route: '/hotSearchBrand/delHotBrand',
        method: 'POST',
        url: '/hotSearchBrand/delHotBrand',
        params: [
            {name: 'id', type: 'Number'}
        ]
    },
    {
        //查询单个
        route: '/hotSearchBrand/queryHotBrand',
        method: 'POST',
        url: '/hotSearchBrand/queryHotBrand',
        params: [
            {name: 'id', type: 'Number'}
        ]
    }
];