operations.subject.js
3.15 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/**
* Created by ty on 2016/6/23.
* 专题管理
*/
module.exports={
namespace:"subject",
apis:{
querySpecialActivityPage:{
title: "活动列表",
url: '/activity/querySpecialActivityPage',
params: [
{name: 'page', type: 'number'},
{name: 'size', type: 'number',default:10},
{name: 'sort', type: 'string'},
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'status', type: 'number'},
{name: 'isShow', type: 'number'},
{name:'startTimeStr',type:'string'},
{name:'endTimeStr',type:'string'}
]
},
addSpecialActivity:{
title: "添加活动",
url: '/activity/addSpecialActivity',
params: [
{name: 'sort', type: 'string'},
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'promotionName', type: 'string'},
{name: 'startTime', type: 'number'},
{name: 'endTime', type: 'number'},
{name: 'startTime', type: 'number'},
{name: 'productPoolId', type: 'number'},
{name: 'coverUrl', type: 'string'},
{name: 'logoUrl', type: 'string'},
{name: 'webUrl', type: 'string'},
{name: 'orderNum', type: 'number'},
{name: 'yhChannel', type: 'string'},
{name: 'webCoverUrl', type: 'string'},
{name: 'isShow',type:'number'}
]
},
updateByPrimaryKey:{
title: "修改活动",
url: '/activity/updateByPrimaryKey',
params: [
{name: 'id', type: 'number'},
{name: 'sort', type: 'string'},
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'promotionName', type: 'string'},
{name: 'startTime', type: 'number'},
{name: 'endTime', type: 'number'},
{name: 'startTime', type: 'number'},
{name: 'productPoolId', type: 'number'},
{name: 'coverUrl', type: 'string'},
{name: 'logoUrl', type: 'string'},
{name: 'webUrl', type: 'string'},
{name: 'orderNum', type: 'number'},
{name: 'yhChannel', type: 'string'},
{name: 'webCoverUrl', type: 'string'},
{name: 'isShow', type: 'number'}
]
},
deleteSpecialActivity:{
title: "删除活动",
url: '/activity/deleteSpecialActivity',
params: [
{name: 'id', type: 'number'}
]
},
queryBaseProductPoolList:{
title: "根据名称获取商品池",
url: '/pool/queryBaseProductPoolList',
params: [
{name: 'poolName', type: 'string'},
{name: 'diffType', type: 'number'},
{name: 'idName', type: 'string'}
]
}
}
}