marketing.ShopCoupon.js 1.37 KB

/**
 * Created by yoho on 2016/6/21.
 */
module.exports = {
    namespace: "ShopCoupon",
    apis: {
        /************************************店铺优惠券*************************************/
        queryList: {
            title: "店铺优惠券数据",
            url: '/shopCoupon/queryList',
            params: {
                shopId: {type: String},
                status: {type: Number},
                couponsId: {type: Number},
                page: {type: Number},
                size: {type: Number}
            }
        },
        queryById: {
            title: "单个优惠券",
            url: '/shopCoupon/queryById',
            params: {
                id: {type: Number}
            }
        },
        add: {
            title: "新增店铺优惠券",
            url: '/shopCoupon/add',
            params: {
                shopName: {type: String},
                status: {type: Number},
                shopId: {type: Number},
                couponsId: {type: Number}
            }
        },
        update: {
            title: "编辑店铺优惠券",
            url: '/shopCoupon/update',
            params: {
                shopName: {type: String},
                status: {type: Number},
                id: {type: Number},
                shopId: {type: Number},
                couponsId: {type: Number}
            }
        }

    }
};