promotion.js 6.16 KB
module.exports={
    namespace:"promotion",
    apis:{
        addPromotionInfo:{
            title:"新增",
            url:"/promotion/addPromotionInfo",
            params:[
                {name: 'title', type: 'string'},
                {name: 'description', type: 'string'},
                {name: 'fitChannel', type: 'string'},
                {name: 'startTimeStr', type: 'string'},
                {name: 'endTimeStr', type: 'string'},
                {name: 'priority', type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'erpPromotionType', type: 'Number'},
                {name: 'erpPromotionId', type: 'Number'},
                {name: 'noticeStatus', type: 'Number'},
                {name: 'noticeDesc', type: 'string'},
        		{name: 'showStatus', type: 'Number'}
            ]
        },
        updatePromotionInfo:{
            title:"修改",
            url:"/promotion/updatePromotionInfo",
            params:[
                {name: 'id', type: 'Number'},
                {name: 'title', type: 'string'},
                {name: 'description', type: 'string'},
                {name: 'fitChannel', type: 'string'},
                {name: 'startTimeStr', type: 'string'},
                {name: 'endTimeStr', type: 'string'},
                {name: 'priority', type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'erpPromotionType', type: 'Number'},
                {name: 'erpPromotionId', type: 'Number'},
                {name: 'noticeStatus', type: 'Number'},
                {name: 'noticeDesc', type: 'string'},
                {name: 'showStatus', type: 'Number'}
            ]
        },
        getPromotionInfo:{
            title:"查询",
            url:"/promotion/getPromotionInfo",            
            params:[
                {name: 'param', type: 'Number'}
            ]
        },
        deletePromotionInfo:{
            title:"删除",
            url:"/promotion/deletePromotionInfo",
            params:[
                {name: 'param', type: 'Number'}
            ]
        },
        updatePromotionNoticeStatus:{
            title:"开启促销预告",
            url:"/promotion/updatePromotionNoticeStatus",
            params:[
                {name: 'id', type: 'Number'},
                {name: 'noticeStatus', type: 'Number'}
            ]
        },
        updatePromotionStatus:{
            title:"开启促销",
            url:"/promotion/updatePromotionStatus",
            params:[
                {name: 'id', type: 'Number'},
                {name: 'status', type: 'Number'}
            ]
        },
        getPromotionInfoList:{
            title:"查询列表",
            url:"/promotion/getPromotionInfoList",
            params:[
                {name: 'status', type: 'Number'},
                {name:'is_valid',type:'Number'},
                {name:'show_status',type:'Number'},
                {name: 'sort_type', type: 'Number'},
                {name: 'title', type: 'string'},
                {name: 'description', type: 'string'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
            ]
        },
        getpromotionProductFlags:{
            title:"查询促销标记列表",
            url:"/promotionProductFlags/getAllPromotionProductFlags",
            params:[]
        },
        setReject:{
            title:"设置促销互斥",
            url:"/promotion/setReject",
            params:[
                {name: 'promotionId', type: 'Number'},
                {name: 'rejectParam', type: 'string'}
                ]
        },
        setCondition:{
            title:"设置促销条件",
            url:"/promotion/setCondition",
            params:[
                {name: 'promotionId', type: 'Number'},
                {name: 'conditionParam', type: 'string'}
            ]
        },
        setLimit:{
            title:"设置促销限制",
            url:"/promotion/setLimit",
            params:[
                {name: 'promotionId', type: 'Number'},
                {name: 'limitParam', type: 'string'}
            ]
        },
        setOperation:{
            title:"设置促销操作",
            url:"/promotion/setOperation",
            params:[{name: 'promotionId', type: 'Number'},
                {name: 'promotionType', type: 'string'},
                {name: 'actionParam', type: 'string'}
            ]
        },
        setDisplay:{
            title:"设置促销显示",
            url:"/promotion/setDisplay",
            params:[{name: 'id', type: 'Number'},
                {name: 'promotionUrl', type: 'string'},
                {name: 'commonBanner', type: 'string'},
                {name: 'shoppingCartBanner', type: 'string'},
            ]
        },
        setMulti:{
            title:"设置促销多档",
            url:"/promotion/setMulti",
            params:[{name:'promotionId',type:'Number'},
                {name:'multiParam',type:'string'}]
        },
        getMultiPromotionPage:{
            title:"促销多档列表",
            url:"/promotion/getMultiPromotionPage",
            params:[
                {name: 'id',type: 'Number'},
                {name: 'promotionType', type: 'string'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
            ]
        },
        getActivePromotionInfoList:{
            title:"设置促销显示",
            url:"/promotion/getActivePromotionInfoList",
            params:[
                {name: 'id', type: 'Number'},
                {name: 'startTimeStr', type: 'string'},
                {name: 'endTimeStr', type: 'string'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
                ]
        },
        getPromotionLogList:{
            title:"促销日志",
            url:"/promotionLog/getPromotionLogList",
            params:[
                {name: 'promotionId', type: 'Number'},
                {name: 'startTimeStr', type: 'string'},
                {name: 'endTimeStr', type: 'string'},
                {name:'type',type:'Number'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
            ]
        }
    }
}