marketing.LimitCode.js 3.36 KB
/**
 * Created by yoho on 2016/6/21.
 */
module.exports = {
    namespace: "LimitCode",
    apis: {
        /*************************************限购码管理*************************************/
        getLimitCodeList: {
            title: " 限购码列表",
            url: "/limitCode/getLimitCodeList",
            params: {
                page: {type: Number},
                size: {type: Number},
                status: {type: Number},
                batchNo: {type: String},
                name: {type: String},
                reqDepartment: {type: String},
                sku: {type: String},
                skn: {type: String}
            }
        },

        addLimitCode: {
            title: "添加限购码",
            url: '/limitCode/addLimitCode',
            params: {
                name: {type: String},
                limitTimes: {type: Number},
                reqDepartment: {type: String},
                limitDateFrom: {type: String},
                limitDateTo: {type: String},
                describe: {type: String},
                userUseLimit: {type: Number},
                userTypeLimit: {type: String},
                limitSkn: {type: String},
                creatorName: {type: String},
                creatorId: {type: Number},
                status: {type: Number},
                skus: {type: String},
                skuTimes: {type: String},
                limitCodeType: {type: String}
            }
        },

        checkSknValidity: {
            title: "检查SKN的合法性并且获得其下的所有SKU",
            url: "/limitCode/checkSknValidity",
            params: {
                skn: {type: String},
                id: {type: String}
            }
        },

        getLimitCode: {
            title: "获取某个限购码",
            url: "/limitCode/getLimitCode",
            params: {
                id: {type: String}
            }
        },
        updateLimitCode: {
            title: "编辑限购码",
            url: '/limitCode/updateLimitCode',
            params: {
                name: {type: String},
                limitTimes: {type: Number},
                reqDepartment: {type: String},
                limitDateFrom: {type: String},
                limitDateTo: {type: String},
                describe: {type: String},
                userUseLimit: {type: Number},
                userTypeLimit: {type: String},
                limitSkn: {type: String},
                creatorName: {type: String},
                creatorId: {type: Number},
                status: {type: Number},
                id: {type: Number},
                batchNo: {type: Number},
                skus: {type: String},
                skuTimes: {type: String},
                limitCodeType: {type: String}
            }
        },

        auditLimitCode: {
            title: " 通过、驳回、作废限购码接口",
            url: "/limitCode/auditLimitCode",
            params: {
                id: {type: Number},
                status: {type: Number},
                reason: {type: String}
            }
        },

        getLimitCodeCountByStatus: {
            title: "tab卡数据",
            url: '/limitCode/getLimitCodeCountByStatus',
            params: {
                reqDepartment: {type: String},
                name: {type: String},
                batchNo: {type: Number}
            }
        }
    }
};