limit.js 6.61 KB
/**
 * Created by ty on 2016/6/22.
 * 限售商品管理
 */

module.exports={
    namespace:"limit",
    apis:{
        getLimitProductList:{
            title: "【限购商品】ajax分页",
            url: '/limitProduct/getLimitProductList',
            params: [
                {name: 'hotFlag', type: 'Number'},
                {name: 'saleFlag', type: 'Number'},
                {name: 'showFlag', type: 'Number'},
                {name: 'productName', type: 'String'},
                {name: 'productSkn', type: 'String'},
                {name: 'page', type: 'Number'},
                {name: 'size', type: 'Number'}
            ]
        },
        addLimitProduct:{
            title: "【限购商品】ajax添加",
            url: '/limitProduct/addLimitProduct',
            params: [
                {name: 'productType', type: 'Number'},
                {name: 'productName', type: 'String'},
                {name: 'productSkn', type: 'Number'},
                {name: 'price', type: 'String'},
                {name: 'attachmentContent', type: 'String'},
                {name: 'batchNo', type: 'Number'},
                {name: 'dayFlag', type: 'Number'},
                {name: 'saleTimeStr', type: 'String'},
                {name: 'hotFlag', type: 'Number'},
                {name: 'orderBy', type: 'Number'},
                {name: 'notSaleOrderBy', type: 'Number'},
                {name: 'limitProductType', type: 'Number'},
                {name: 'activityId', type: 'Number'},
                {name: 'channelType', type: 'Number'},
                {name: 'helpLimit', type: 'Number'},
                {name: 'showTimeStr', type: 'String'},
                {name: 'isApp', type: 'String'},
                {name: 'isNew', type: 'String'}
            ]
        },
        updateLimitProduct:{
            title: "【限购商品】ajax修改",
            url: '/limitProduct/updateLimitProduct',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'productType', type: 'Number'},
                {name: 'productName', type: 'String'},
                {name: 'productSkn', type: 'Number'},
                {name: 'price', type: 'String'},
                {name: 'attachmentContent', type: 'String'},
                {name: 'batchNo', type: 'String'},
                {name: 'saleTimeStr', type: 'String'},
                {name: 'hotFlag', type: 'Number'},
                {name: 'orderBy', type: 'Number'},
                {name: 'notSaleOrderBy', type: 'Number'},
                {name: 'dayFlag', type: 'Number'},
                {name: 'showFlag', type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'limitProductType', type: 'Number'},
                {name: 'activityId', type: 'Number'},
                {name: 'limitProductTips', type: 'String'},
                {name: 'channelType', type: 'Number'},
                {name: 'helpLimit', type: 'Number'},
                {name: 'showTimeStr', type: 'String'},
                {name: 'isApp', type: 'String'},
                {name: 'isNew', type: 'String'}
            ]
        },
        getCountByStatus:{
            title: "获取各状态数量",
            url: '/limitProduct/getCountByStatus',
            params: [
                {name: 'hotFlag', type: 'Number'},
                {name: 'saleFlag', type: 'Number'},
                {name: 'showFlag', type: 'Number'},
                {name: 'productName', type: 'String'},
                {name: 'productSkn', type: 'String'}
            ]
        },
        auditLimitProduct:{
            title: "更改商品状态",
            url: '/limitProduct/auditLimitProduct',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'showFlag', type: 'Number'},
                {name: 'hotFlag', type: 'Number'},
                {name: 'orderBy', type: 'Number'},
                {name: 'notSaleOrderBy', type: 'Number'}
            ]
        },
        deleteLimitProduct:{
            title: "删除限购商品",
            url: '/limitProduct/deleteLimitProduct',
            params: [
                {name: 'id', type: 'Number'}
            ]
        },
        checkBatchNoExist:{
            title: "检查BatchNo是否存在",
            url: '/limitProduct/checkBatchNoExist',
            params: [
                {name: 'batchNo', type: 'Number'},
                {name: 'id', type: 'Number'}
            ]
        },
        checkLimitCodeByBatchNo:{
            title: "根据BatchNo检查限购码是否正确",
            url:'/limitCode/checkLimitCodeByBatchNo',
            params:[
                {name:"batchNo",type:'Number'},
                {name:"id",type:"Number"}
            ]
        },
        export:{
            title: "导出",
            url: '/batch/export',
            params: [
                {name: 'queryConf', type: 'String'},
                {name: 'type', type: 'String'}
            ]
        },
        checkActivityIdExists:{
            title: "检查活动是否存在",
            url:'/DrawlineActivityRest/checkActivityIdExists',
            params:[
                {name:"activityId",type:"Number"}
            ]
        },
        checkActivityIdNoExist:{
            title: "检查活动是否存在",
            url:'/limitProduct/checkActivityIdNoExist',
            params:[
                {name:"activityId",type:"Number"},
                {name:"id",type:"Number"}
            ]
        },
        getLimitProduct:{
            title: "根据id获取限购商品",
            url: '/limitProduct/getLimitProduct',
            params: [
                {name: "id", type: "String"}
            ]
        },
        batchSendLimitCode:{
            title: "发放限购码",
            url: '/limitProduct/batchSendLimitCode',
            params:[
                {name:"operationCode",type:"String"}
            ]
        },
        deleteLimitProductUidRecord:{
            title: "删除UID表格",
            url: '/limitProduct/deleteLimitProductUidRecord',
            params:[
                {name:"operationCode",type:"String"}
            ]
        },
        queryLimitCodeSendHistory:{
            title: "获取限购码发放记录",
            url: '/limitProduct/queryLimitCodeSendHistory',
            params:[
                {name:"limitProductCode",type:"String"},
                {name:"batchNo",type:"String"}
            ]
        },
        getSknInfoById:{
            title: "通过限购码查询绑定商品信息",
            url: '/limitProduct/getSknInfoById',
            params:[
                {name:"batchNo",type:"String"},
                {name:"productSkn",type:"Integer"},
            ]
        }
    }
}