CouponSend.js 2.18 KB
/**
 * Created by yoho on 2016/6/20.
 */
module.exports = function (app) {
    /*************************************发券管理*************************************/
    //列表页
    app.get("/market/couponSend/index", "marketing.CouponSend.Index",function(){
        this.$extend={
            moduleName:'营销管理',
            pageName:'发券管理'
        }
    });

    //优惠券列表
    app.post("/coupon/querySendCouponList", "CouponSend_querySendCouponList");

    //单个优惠券
    //app.post("/coupon/getCouponDetailById", "CouponSend_getCouponDetailById");

    //发券页
    app.get("/market/couponSend/send/:param", "marketing.CouponSend.Send",function(){
        this.$extend={
            moduleName:'营销管理',
            pageName:'发券'
        }
    });
    //手工发券
    app.post("/coupon/sendCoupon", "CouponSend_sendCoupon");

    //文件上传重发
    app.post("/couponSendInfo/sendAgainById", "CouponSend_sendAgainById");

    //发放记录页
    app.get("/market/couponSend/sendHistory/:param", "marketing.CouponSend.SendHistory",function(){
        this.$extend={
            moduleName:'营销管理',
            pageName:'发放记录'
        }
    });
    
    //使用记录页
    app.get("/market/couponSend/useHistory/:param", "marketing.CouponSend.UseHistory",function(){
        this.$extend={
            moduleName:'营销管理',
            pageName:'使用记录'
        }
    });

    //查询用户券列表
    //app.post("/couponLogs/queryUserCouponLogsList", "CouponSend_queryUserCouponLogsList");

    //查询文件发券列表
    app.post("/couponSendInfo/getListByCouponId", "CouponSend_getListByCouponId");

    //券码页面
    app.get("/market/couponSend/pCouponSn/:param", "marketing.CouponSend.PublicCoupon",function(){
        this.$extend={
            moduleName:'营销管理',
            pageName:'券码'
        }
    });
    
    //公开券列表
    app.post("/pCouponSn/queryCouponSnList", "CouponSend_queryCouponSnList");

    //发券异常列表查询
    app.post("/couponSendError/query", "CouponSend_couponSendError");

    //重新请求发券
    app.post("/couponSendError/retrySend", "CouponSend_retrySend");
};