brandCoupon.js 1.63 KB
/**
 * Created by Arthur on 16/5/26.
 */
exports.domain = require('../config/common.js').domain;
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/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'},
        ]
    }
];