marketing.CouponList.js 2.19 KB

/**
 * Created by yoho on 2016/6/21.
 */
module.exports = {
    namespace: "CouponList",
    apis: {
        /**************************************优惠券管理-庞洁*************************************/
        queryCouponList: {
            title: "优惠券列表",
            url: "/coupon/queryCouponList",
            params: {
                page: {type: Number},
                size: {type: Number},
                couponId: {type: Number},
                department: {type: Number},
                couponName: {type: String},
                status: {type: Number}
            }
        },
        getCouponDetailById:{
            title: "单张详情",
            url: "/coupon/getCouponDetailById",
            params: {
               
                couponsId: {type: Number}
            }
        },
        addOrUpdate: {
            title: "优惠券新增、修改",
            url: "/coupon/addOrUpdate",
            params: {
                id: {type: Number},
                couponType: {type: Number},
                couponName: {type: String},
                couponNum: {type: Number},
                useNum: {type: Number},
                department: {type: Number},
                startTime: {type: String},
                endTime: {type: String},
                explains: {type: String},
                useLimitType: {type: Number},
                useLimit: {type: Number},
                couponAmount: {type: Number},
                brandLimit: {type: String},
                sortLimit: {type: String},
                customType: {type: String}
            }
        },
        reject: {
            title: "驳回",
            url: "/coupon/reject",
            params: {
                couponId: {type: Number},
                rejectReason: {type: String}
            }
        },
        approve: {
            title: "通过",
            url: "/coupon/approve",
            params: {
                couponId: {type: Number}
            }
        },
        invalid: {
            title: "作废",
            url: "/coupon/invalid",
            params: {
                couponId: {type: Number},
                invalidReason: {type: String}
            }
        }
    }
};