marketing.brandCoupon.js 1.56 KB

/**
 * Created by yoho on 2016/6/21.
 */
module.exports = {
    namespace: "BrandCoupon",
    apis: {
        /************************************品牌优惠券*************************************/
        queryList: {
            title: "品牌优惠券数据",
            url: '/brandCoupon/queryList',
            params: {
                brandId: {type: String},
                status: {type: Number},
                couponsId: {type: Number},
                page: {type: Number},
                size: {type: Number}
            }
        },
        queryByParam: {
            title: "单个优惠券",
            url: '/brandCoupon/queryByParam',
            params: {
                id: {type: Number}
            }
        },
        add: {
            title: "新增品牌优惠券",
            url: '/brandCoupon/add',
            params: {
                brandName: {type: String},
                status: {type: Number},
                brandId: {type: Number},
                couponsId: {type: Number}
            }
        },
        delete: {
            title: "删除品牌优惠券",
            url: '/brandCoupon/delete',
            params: {
                id: {type: Number}
            }
        },
        update: {
            title: "编辑品牌优惠券",
            url: '/brandCoupon/update',
            params: {
                brandName: {type: String},
                status: {type: Number},
                id: {type: Number},
                brandId: {type: Number},
                couponsId: {type: Number}
            }
        }

    }
};