resource.js
4.43 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/**
* Created by ty on 2016/6/20.
* 资源管理
*/
module.exports={
namespace:"resourceManage",
apis:{
queryResource:{
title: "资源管理列表",
url: "/resources/queryResource",
params: [
{name: "id", type: "number"},
{name: "name", type: "string"},
{name: "sortId", type: "number"},
{name: "platformId", type: "number"},
{name: "code", type: "string"},
{name: "configDesc", type: "string"},
{name: "page", type: "number"}
]
},
getResSorts:{
title: "获取资源分类列表",
url: "/resources/getResSorts"
},
getResPlatforms:{
title: "获取平台列表",
url: "/resources/getResPlatforms"
},
saveResource:{
title: "添加/修改资源",
url: "/resources/saveResource",
params: [
{name: "id", type: "number"},
{name: "name", type: "string"},
{name: "sortId", type: "number"},
{name: "platformId", type: "number"},
{name: "matchCode", type: "string"},
{name: "configDesc", type: "string"}
]
},
deleteResourceById:{
title: "根据id删除资源位",
url: "/resources/deleteResourceById",
params: [
{name: "id", type: "number"}
]
},
deleteAllResourceByCode:{
title: "删除资源位下所有tab",
url: "/resources/deleteAllResourceByCode",
params: [
{name: "code", type: "string"}
]
},
updateLock:{
title: "解除锁定",
url: "/resources/updateLock",
params: [
{name: "id", type: "number"},
{name: "status", type: "number"}
]
},
getUrlAction:{
title: "获取跳转链接",
url: "/resources/getUrlAction"
},
queryCatogaryListByLevel:{
title: "获取小品类列表",
url: "/salesCategory/querySortListByLevel"
},
queryFloorCategory:{
title: "获取楼层分类",
url: "/appEntranceIcon/selectAllCategory"
},
resContentIndex:{
title: "根据id获取资源内容",
url: "/resources/resContentIndex",
params: [
{name: "id", type: "number"},
{name:"code",type:"string"}
]
},
resContentIndexByCode:{
title: "根据code获取资源内容",
url: "/resources/resContentIndexByCode",
params: [
{name:"code",type:"string"}
]
},
checkLock:{
title: "查询是否可编辑",
url: "/resources/checkLock",
params: [
{name: "id", type: "number"}
]
},
addResContent:{
title: "添加资源内容",
url: "/resources/addResContent",
params: [
{name: "content", type: "string"},
{name: "data_id", type: "string"},
{name: "rId", type: "number"}
]
},
delResContent:{
title: "根据id删除资源内容楼层",
url: "/resources/delResContent",
params: [
{name: "id", type: "number"}
]
},
batchCheckCoupons:{
title: "验证领券码",
url: "/coupon/batchCheckCoupons",
params: [
{name: "params", type: "string"}
]
},
copyResContent:{
title: "复制资源内容",
url: "/resources/copyResContent",
params: [
{name: "rId", type: "string"}
]
},
updateResPublishTime:{
title: "更新预发布时间",
url: "/resources/updateResPublishTime",
params: [
{name: "id", type: "number"},
{name: "time", type: "string"}
]
},
querySpecialActivityByIDs:{
title: "根据 ids 查询活动",
url: "/activity/querySpecialActivityByIDs",
params: [
{name: "ids", type: "string"}
]
}
}
}