operations.limit.js 4.73 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: 'productName', 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'}
            ]
        },
        updateLimitProduct:{
            title: "【限购商品】ajax修改",
            url: '/limitProduct/updateLimitProduct',
            params: [
                {name: 'id', type: 'Number'},
                {name: 'productName', 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'}
            ]
        },
        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"}
            ]
        }
    }
}