couponManager.js
1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* 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'}//状态
]
}
];