couponActivity.js
2.46 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* 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'}
]
}
}
}