couponActivity.js 2.46 KB
/**
 * Created by ty on 2016/6/23.
 * 优惠券活动
 */

module.exports={
    namespace:"couponActivity",
    apis:{
        queryList:{
            title: "优惠券活动列表",
            url: '/couponActivity/queryList',
            params: [
                {name: 'page', type: 'Number'},
                {name: 'size', type: 'Number'}
            ]
        },
        update:{
            title: "修改优惠券活动",
            url: '/couponActivity/update',
            params: [
                {name: 'id', type: 'Number'},//主键
                {name: 'actName', type: 'string'},//
                {name: 'activityType', type: 'Number'},//
                {name: 'actUrl', type: 'string'},
                {name: 'startTime', type: 'Number'},//
                {name: 'endTime', type: 'Number'},//
                {name: 'bgImageUrl', type: 'string'},//
                {name: 'shareTitle', type: 'string'},//
                {name: 'shareDescribe', type: 'string'},//
                {name: 'sharePic', type: 'string'},//
                {name: 'shareUrl', type: 'string'},//
                {name: 'isVerify', type: 'string'},//
                {name: 'instructions', type: 'string'},//
                {name: 'isNewUser', type: 'Number'},//
                {name: 'couponId', type: 'string'},//
                {name: 'status', type: 'Number'}//
            ]
        },
        add:{
            title: "新增优惠券活动",
            url: '/couponActivity/add',
            params: [
                {name: 'actName', type: 'string'},//
                {name: 'activityType', type: 'Number'},//
                {name: 'actUrl', type: 'string'},
                {name: 'startTime', type: 'Number'},//
                {name: 'endTime', type: 'Number'},//
                {name: 'bgImageUrl', type: 'string'},//
                {name: 'shareTitle', type: 'string'},//
                {name: 'shareDescribe', type: 'string'},//
                {name: 'sharePic', type: 'string'},//
                {name: 'shareUrl', type: 'string'},//
                {name: 'isVerify', type: 'string'},//
                {name: 'instructions', type: 'string'},//
                {name: 'isNewUser', type: 'Number'},//
                {name: 'couponId', type: 'string'}//
            ]
        },
        queryById:{
            title: "单个优惠券活动查询",
            url: '/couponActivity/queryById',
            params: [
                {name: 'id', type: 'Number'}
            ]
        }
    }
}