couponActivity.js 3.12 KB
/**
 * Created by yoho on 2016/5/27.
 */
exports.domain = require('../config/common.js').domain;
//exports.domain ='http://172.16.6.120:8088/platform';//曹燕

exports.res = [
    //主界面
    {
        route: '/couponActivity/index',//访问路由
        method: 'GET',//方法
        view: 'pages/operations/couponActivity',//视图
        src: '/operations/couponActivity',//控制层
        data:{
        }
    },
    //api请求数据
    {
        route: '/couponActivity/queryList',
        method: 'POST',
        url: '/couponActivity/queryList',
        params: [
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    //修改界面
    {
        route: '/couponActivity/index/update/:id',//访问路由
        method: 'GET',//方法
        view: 'pages/operations/updateActivity',//视图
        src: '/operations/updateActivity'//控制层
    },
    //修改
    {
        route: '/couponActivity/update',
        method: 'POST',
        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'}//
        ]
    },
    //添加界面
    {
        route: '/couponActivity/index/add',//访问路由
        method: 'GET',//方法
        view: 'pages/operations/addActivity',//视图
        src: '/operations/addActivity'//控制层
    },
    //新增
    {
        route: '/couponActivity/add',
        method: 'POST',
        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'}//
        ]
    },
    //单个查询
    {
        route: '/couponActivity/queryById',
        method: 'POST',
        url: '/couponActivity/queryById',
        params: [
            {name: 'id', type: 'Number'}
        ]
    }
];