operations.activitytemplate.js
2.97 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
85
86
87
88
89
90
91
92
93
94
/**
* Created by ty on 2016/7/4.
* 活动模板管理
*/
module.exports={
namespace:"activitytemplate",
apis:{
selectTemplateList:{
title: "查询模板列表接口",
url: "/activityTemplate/selectTemplateList",
params: [
{name: "status", type: "number"}
]
},
addTemplate:{
title: "添加模板接口",
url: "/activityTemplate/addTemplate",
params: [
{name: "title", type: "string"},
{name: "image", type: "string"},
{name: "url", type: "string"},
{name: "shareId", type: "number"}
]
},
getTemplate:{
title: "获取单个模板接口",
url: "/activityTemplate/getTemplate",
params: [
{name: "id", type: "number"}
]
},
updateTemplate:{
title: "更新模板接口",
url: "/activityTemplate/updateTemplate",
params: [
{name: "id", type: "number"},
{name: "title", type: "string"},
{name: "image", type: "string"},
{name: "url", type: "string"},
{name: "shareId", type: "number"}
]
},
publishTemplate:{
title: "开启模板接口",
url: "/activityTemplate/publishTemplate",
params: [
{name: "id", type: "number"}
]
},
closeTemplate:{
title: "关闭模板接口",
url: "/activityTemplate/closeTemplate",
params: [
{name: "id", type: "number"}
]
},
getProductListByCondition:{
title: "根据条件查询活动商品列表接口",
url: "/activityTemplate/getProductListByCondition",
params: [
{name: "templateId", type: "number"},
{name: "productSkn", type: "number"},
{name: "page", type: "number"},
{name: "size", type: "number"}
]
},
insertProduct:{
title: "插入活动商品信息接口",
url: "/activityTemplate/insertProduct",
params: [
{name: "templateId", type: "number"},
{name: "productSkn", type: "number"}
]
},
updateProduct:{
title: "更新商品信息接口",
url: "/activityTemplate/updateProduct",
params: [
{name: "id", type: "number"},
{name: "orderBy", type: "number"},
{name: "isRecommend", type: "number"},
{name: "status", type: "number"}
]
},
delOneProduct:{
title: "删除商品信息接口",
url: "/activityTemplate/delOneProduct",
params: [
{name: "id", type: "number"}
]
}
}
}