marketing.CouponList.js 4.35 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},
                couponType: {type: Number},
                feeSharingType: {type: Number},
                startTimeStr: {type: String},
                endTimeStr: {type: String}

            }
        },
        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},
                tPlusN: {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},
                shopLimit: {type: String},
                feeSharingType: {type: Number},
                feeSharingRatio: {type: Number},
                productLimit: {type: String},
                isNew: {type: Number},
                isUseLimitRule: {type: String},
                prdPoolLimit: {type: String},
                cusPublicCouponName: {type: String},
                publicCouponType: {type: Number},
                channel: {type: String},
                showScope : {type: String},
                checkRequired: {type: Number},
                mutexLimit: {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}
            }
        },
        updateH5Link: {
            title: "更新微信卡券H5链接",
            url: "/coupon/updateH5Link",
            params: {
                h5Link: {type: String},
                miniappPages: {type: String},
                cardId: {type: String},
                publicNumberCode: {type: Number}
            }
        },
        cleanPrdLimit: {
            title: "清除指定商品",
            url: "/coupon/cleanPrdLimit",
            params: {
                param: {type: Number}
            }
        },
        queryChannelGroups: {
            title: "券可用渠道",
            url: "/channel/queryChannelGroups"
        }
    }
};