brandCoupon.js 1.88 KB
/**
 * Created by Arthur on 16/5/26.
 */
exports.domain = require('../config/common.js').domain;
//exports.domain ='http://172.16.6.120:8088/platform';//曹燕
exports.res = [
    {// 品牌发券空白页
        route: '/brandCoupons/index',
        method: 'GET',
        view: 'pages/operations/brandCoupon',
        src: '/operations/brandCoupon',
        data: {
            iscreate: true
        }
    }, {

        // 列表数据
        route: '/brandCoupon/queryList',
        method: 'POST',
        url: '/brandCoupon/queryList',
        params: [
            {name: 'brandId', type: 'String'},
            {name: 'status', type: 'Number'},
            {name: 'couponsId', type: 'Number'},
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    {
        route: '/brandCoupon/queryByParam',
        method: 'POST',
        url: '/brandCoupon/queryByParam',
        params: [
            {name: 'id', type: 'Number'}
        ]
    },
    {
        // 新增
        route: '/brandCoupon/add',
        method: 'POST',
        url: '/brandCoupon/add',
        params: [
            {name: 'brandName', type: 'String'},
            {name: 'status', type: 'Number'},
            {name: 'brandId', type: 'Number'},
            {name: 'couponsId', type: 'Number'}
        ]
    }, {
        // 删除
        route: '/brandCoupon/delete',
        method: 'POST',
        url: '/brandCoupon/delete',
        params: [
            {name: 'id', type: 'Number'}
        ]
    },{
        // 修改
        route: '/brandCoupon/update',
        method: 'POST',
        url: '/brandCoupon/update',
        params: [
            {name: 'brandName', type: 'String'},
            {name: 'status', type: 'Number'},
            {name: 'id', type: 'Number'},
            {name: 'brandId', type: 'Number'},
            {name: 'couponsId', type: 'Number'}
        ]
    }
];