operations.subject.js 3.15 KB
/**
 * Created by ty on 2016/6/23.
 * 专题管理
 */

module.exports={
    namespace:"subject",
    apis:{
        querySpecialActivityPage:{
            title: "活动列表",
            url: '/activity/querySpecialActivityPage',
            params: [
                {name: 'page', type: 'number'},
                {name: 'size', type: 'number',default:10},
                {name: 'sort', type: 'string'},
                {name: 'title', type: 'string'},
                {name: 'plateform', type: 'string'},
                {name: 'status', type: 'number'},
                {name: 'isShow', type: 'number'},
                {name:'startTimeStr',type:'string'},
                {name:'endTimeStr',type:'string'}
            ]
        },
        addSpecialActivity:{
            title: "添加活动",
            url: '/activity/addSpecialActivity',
            params: [
                {name: 'sort', type: 'string'},
                {name: 'title', type: 'string'},
                {name: 'plateform', type: 'string'},
                {name: 'promotionName', type: 'string'},
                {name: 'startTime', type: 'number'},
                {name: 'endTime', type: 'number'},
                {name: 'startTime', type: 'number'},
                {name: 'productPoolId', type: 'number'},
                {name: 'coverUrl', type: 'string'},
                {name: 'logoUrl', type: 'string'},
                {name: 'webUrl', type: 'string'},
                {name: 'orderNum', type: 'number'},
                {name: 'yhChannel', type: 'string'},
                {name: 'webCoverUrl', type: 'string'},
                {name: 'isShow',type:'number'}
            ]
        },
        updateByPrimaryKey:{
            title: "修改活动",
            url: '/activity/updateByPrimaryKey',
            params: [
                {name: 'id', type: 'number'},
                {name: 'sort', type: 'string'},
                {name: 'title', type: 'string'},
                {name: 'plateform', type: 'string'},
                {name: 'promotionName', type: 'string'},
                {name: 'startTime', type: 'number'},
                {name: 'endTime', type: 'number'},
                {name: 'startTime', type: 'number'},
                {name: 'productPoolId', type: 'number'},
                {name: 'coverUrl', type: 'string'},
                {name: 'logoUrl', type: 'string'},
                {name: 'webUrl', type: 'string'},
                {name: 'orderNum', type: 'number'},
                {name: 'yhChannel', type: 'string'},
                {name: 'webCoverUrl', type: 'string'},
                {name: 'isShow', type: 'number'}
            ]
        },
        deleteSpecialActivity:{
            title: "删除活动",
            url: '/activity/deleteSpecialActivity',
            params: [
                {name: 'id', type: 'number'}
            ]
        },
        queryBaseProductPoolList:{
            title: "根据名称获取商品池",
            url: '/pool/queryBaseProductPoolList',
            params: [
                {name: 'poolName', type: 'string'},
                {name: 'diffType', type: 'number'},
                {name: 'idName', type: 'string'}
            ]
        }
    }
}