productPool.js 1.88 KB
// exports.domain = require('../config/common.js').domain;
exports.domain = "http://192.168.102.201:8082/platform";

exports.res = [
{
    //商品池管理 -> 页面渲染
    route: '/market/productPool/index',
    method: 'GET',
    view: 'pages/market/productPool',
    src: '/market/productPool'
}, {
    //商品池管理 ->查询商品池分页
    route: '/market/productPool/queryProductPoolPage',
    method: 'POST',
    url: '/pool/queryProductPoolPage',
    params: [
        {name: 'page', type: 'number'},
        {name: 'size', type: 'number',def:10},
        {name: 'id', type: 'number'},
        {name: 'poolName', type: 'string'}
    ]
}, {
    //添加商品池
    route: '/market/productPool/addProductPoolBo',
    method: 'POST',
    url: '/pool/addProductPoolBo',
    params: [
        {name: 'activityid', type: 'number'},
        {name: 'poolName', type: 'string'},
        {name: 'comment', type: 'string'},
        {name: 'producttype', type: 'string'},
        {name: 'productSkn', type: 'string'}
    ]
}, {
    //商品池详细列表分页
    route: '/market/productPool/queryProductPoolDetailPage',
    method: 'POST',
    url: '/pool/queryProductPoolDetailPage',
    params: [
        {name: 'page', type: 'number'},
        {name: 'size', type: 'number',def:10},
        {name: 'id', type: 'number'}
    ]
}, {
    //商品池详细列表删除
    route: '/market/productPool/deleteProductPoolDetailBo',
    method: 'POST',
    url: '/pool/deleteProductPoolDetailBo',
    params: [
        {name: 'id', type: 'number'}
    ]
}, {
    //商品池详细列表添加
    route: '/market/productPool/addProductPoolDetailBo',
    method: 'POST',
    url: '/pool/addProductPoolDetailBo',
    params: [
        {name: 'activityid', type: 'number'},
        {name: 'poolId', type: 'number'},
        {name: 'productskn', type: 'number'},
        {name: 'producttype', type: 'number'}
    ]
}];