promotion.js 2.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: 'startTime', type: 'string'},
                {name: 'endTime', type: 'string'},
                {name: 'priority', type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'erpPromotionType', type: 'Number'},
                {name: 'erpPromotionId', 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: 'startTime', type: 'string'},
                {name: 'endTime', type: 'string'},
                {name: 'priority', type: 'Number'},
                {name: 'status', type: 'Number'},
                {name: 'erpPromotionType', type: 'Number'},
                {name: 'erpPromotionId', type: 'Number'}
            ]
        },
        getPromotionInfo:{
            title:"查询",
            url:"/promotion/getPromotionInfo",
            params:{
                param:{type:Number}
            }
        },
        deletePromotionInfo:{
            title:"删除",
            url:"/promotion/deletePromotionInfo",
            params:[
                {name: 'param', type: 'Number'}
            ]
        },
        getPromotionInfoList:{
            title:"查询列表",
            url:"/promotion/getPromotionInfoList",
            params:[
                {name: 'status', type: 'Number'},
                {name:'is_valid',type:'Number'},
                {name: 'sort_type', type: 'Number'},
                {name: 'title', type: 'string'},
                {name: 'page',type: 'Number'},
                {name: 'size',type: 'Number'}
            ]
        }
    }
}