marketing.CouponList.js 2.91 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},
                limitStartTime: {type: String},
                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},
                multipleNum: {type: Number},
                shopPriceLimits: {type: String},
                sknExclude: {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}
            }
        },
        getOperationRecords: {
            title: "查询优惠券操作记录",
            url: "/coupon/queryOperationRecord",
            params: {
                couponsId: {type: Number}
            }
        },
        updateCouponsUseRule: {
            title: "更新第三方信息",
            url: "/coupon/updateCouponsUseRule",
            params: {
                couponId: {type: Number},
                thirdType: {type: Number},
                thirdId: {type: String},
                publicNumberType: {type: Number}
            }
        }
    }
};