couponManager.js 1.19 KB
/**
 * Created by JiangMin on 2016/4/19.
 * 发券管理
 */
exports.domain = require('../config/common.js').domain;
//exports.domain ='http://172.16.6.250:8081/platform';//庞洁
exports.res = [
    //主界面
    {
        route: '/couponSendManager/queryList',//访问路由
        method: 'GET',//方法
        view: 'pages/couponManager/index',//视图
        src: '/couponManager/index',//控制层
        data:{
        }
    },
    //api请求数据
    {
        route: '/couponSendManager/queryList1',
        method: 'POST',
        url: '/couponSendManager/queryList',
        params: [
            {name: 'name', type: 'string'},//名称
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    //新增或修改
    {
        route: '/couponSendManager/addOrUpdate',
        method: 'POST',
        url: '/couponSendManager/addOrUpdate',
        params: [
            {name: 'id', type: 'Number'},//主键
            {name: 'name', type: 'string'},//名称
            {name: 'creator', type: 'string'},//创建人
            {name: 'couponsIds', type: 'string'},//券列表
            {name: 'status', type: 'Number'}//状态
        ]
    }
];