limit.js 1.49 KB
//exports.domain = require('../config/common.js').domain;
exports.domain = 'http://172.16.6.240:8080/platform';


//路由配置
exports.res = [
    {
        //【限购商品】页面渲染
        route: '/limit/product/index',
        method: 'GET',
        view: 'pages/limit/index',
        isJsonRaw:true,
        src: '/product/limit'
    }, {
        // 【限购商品】ajax分页
        route: '/limit/product/page',
        method: 'POST',
        url: '/limitProduct/getLimitProductList',
        isJsonRaw:true
    },{
        // 【限购商品】添加页面渲染
        route: '/limit/product/add',
        method: 'GET',
        view: 'pages/limit/add',
        src: '/product/limit-add',
        isJsonRaw:true
    },{
        // 【限购商品】ajax添加
        route: '/limit/product/new',
        method: 'POST',
        url: '/limitProduct/addLimitProduct',
        isJsonRaw:true,
        params: [
            {
                name: 'attachmentContent',
                type: 'String'
            },
            {
                name: 'batchNo',
                type: 'Number'
            },{
                name: 'saleTime',
                type: 'String'
            },{
                name: 'hotFlag',
                type: 'Number'
            },{
                name:'orderBy',
                type: 'Number'
            },{
                name: 'notSaleOrderBy',
                type: 'Number'
            }
        ]
    }
];