Showing
1 changed file
with
180 additions
and
0 deletions
inferface-document/cms/开关控制管理.md
0 → 100644
1 | +# 开关控制管理 | ||
2 | + | ||
3 | +## 首页列表 | ||
4 | +> 'gate/getGateList' | ||
5 | + | ||
6 | +### 入参 | ||
7 | +----------------------------------------------------------- | ||
8 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
9 | +|------ |---- |---- |------ |---- | | ||
10 | +|status |否 |string |0 |0:关闭;1:开启 | | ||
11 | +### 返回 | ||
12 | + | ||
13 | +``` json | ||
14 | + | ||
15 | +{ | ||
16 | + "code": 200, | ||
17 | + "data": { | ||
18 | + "list": [ | ||
19 | + { | ||
20 | + "createTime": 1446197882, | ||
21 | + "id": 5, | ||
22 | + "metaKey": "freeShippingLimit", | ||
23 | + "platform": "iphone,ipad,android,androidpad,h5,web,platform", | ||
24 | + "price": 599, | ||
25 | + "status": 1, | ||
26 | + "title": "包邮设置", | ||
27 | + "updateTime": 1460549166, | ||
28 | + "url": "http://m.yohobuy.com/" | ||
29 | + }, | ||
30 | + { | ||
31 | + "createTime": 1445478483, | ||
32 | + "id": 3, | ||
33 | + "metaKey": "cartUseRedEnvelope", | ||
34 | + "platform": "iphone,android,h5,web", | ||
35 | + "price": 0, | ||
36 | + "status": 0, | ||
37 | + "title": "购物车使用红包结算开关", | ||
38 | + "updateTime": 1460618669, | ||
39 | + "url": "http://www.yohobuy.com" | ||
40 | + }, | ||
41 | + { | ||
42 | + "createTime": 1444365268, | ||
43 | + "id": 2, | ||
44 | + "metaKey": "userBindMobile", | ||
45 | + "platform": "iphone,android", | ||
46 | + "price": 0, | ||
47 | + "status": 1, | ||
48 | + "title": "第三方登录绑定", | ||
49 | + "updateTime": 1453877046, | ||
50 | + "url": "http://www.yohobuy.com" | ||
51 | + }, | ||
52 | + { | ||
53 | + "createTime": 1442465431, | ||
54 | + "id": 1, | ||
55 | + "metaKey": "sf", | ||
56 | + "platform": "ipad", | ||
57 | + "status": 1, | ||
58 | + "title": "ts", | ||
59 | + "updateTime": 1446190551, | ||
60 | + "url": "sf" | ||
61 | + } | ||
62 | + ], | ||
63 | + "page": 1, | ||
64 | + "size": 10, | ||
65 | + "total": 4, | ||
66 | + "totalPage": 1 | ||
67 | + }, | ||
68 | + "md5": "ad238165558c64266598e6e103c832ae", | ||
69 | + "message": "操作成功" | ||
70 | +} | ||
71 | + | ||
72 | +``` | ||
73 | + | ||
74 | +## 根据 ID 加载实体 | ||
75 | +> 'gate/addGate' | ||
76 | + | ||
77 | +### 入参 | ||
78 | + | ||
79 | +----------------------------------------------------------- | ||
80 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
81 | +|------ |---- |---- |------ |---- | | ||
82 | +|metaKey |是 |string | freeShippingLimit |控制平台元值| | ||
83 | +|title |是 |string | 包邮设置 |控制器名称| | ||
84 | +|url |是 |string | http://yoho.cn |控制器链接地址| | ||
85 | +|price |否 |string | 100 |价格| | ||
86 | +|platform |是 |string | web |iphone,ipad,android,androidpad,h5,web,platform| | ||
87 | +|status |否|byte|1|1:开启、0:关闭| | ||
88 | + | ||
89 | +### 返回 | ||
90 | + | ||
91 | +``` json | ||
92 | + | ||
93 | +{ | ||
94 | + "code": 200, | ||
95 | + "data": [], | ||
96 | + "md5": "d751713988987e9331980363e24189ce", | ||
97 | + "message": "新增成功" | ||
98 | +} | ||
99 | + | ||
100 | +``` | ||
101 | + | ||
102 | +## 更新开关控制 | ||
103 | + | ||
104 | +> 'gate/updateGate' | ||
105 | + | ||
106 | +### 入参 | ||
107 | +----------------------------------------------------------- | ||
108 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
109 | +|------ |---- |---- |------ |---- | | ||
110 | +|id |是 |int | 1 |分类名称| | ||
111 | +|metaKey |是 |string | freeShippingLimit |控制平台元值| | ||
112 | +|title |是 |string | 包邮设置 |控制器名称| | ||
113 | +|url |是 |string | http://yoho.cn |控制器链接地址| | ||
114 | +|price |否 |string | 100 |价格| | ||
115 | +|platform |是 |string | web |iphone,ipad,android,androidpad,h5,web,platform| | ||
116 | +|status |否|byte|1|1:开启、0:关闭| | ||
117 | + | ||
118 | +### 返回 | ||
119 | + | ||
120 | +{ | ||
121 | + "code": 200, | ||
122 | + "data": [], | ||
123 | + "md5": "d751713988987e9331980363e24189ce", | ||
124 | + "message": "更新成功" | ||
125 | +} | ||
126 | + | ||
127 | +## 删除 | ||
128 | + | ||
129 | +> 'gate/deleteGate' | ||
130 | + | ||
131 | +### 入参 | ||
132 | + | ||
133 | +----------------------------------------------------------- | ||
134 | +|参数名 |描述|类型 |示例值 |必填 | | ||
135 | +|------ |---- |---- |------ |---- | | ||
136 | +|id |id |Integer | 5 |是| | ||
137 | + | ||
138 | +### 返回 | ||
139 | + | ||
140 | +``` json | ||
141 | +{ | ||
142 | + "code": 200, | ||
143 | + "data": [], | ||
144 | + "md5": "d751713988987e9331980363e24189ce", | ||
145 | + "message": "删除成功" | ||
146 | +} | ||
147 | + | ||
148 | +``` | ||
149 | +## 根据id获得对应信息 | ||
150 | + | ||
151 | +> 'gate/getGateById' | ||
152 | + | ||
153 | +### 入参 | ||
154 | + | ||
155 | +----------------------------------------------------------- | ||
156 | +|参数名 |描述|类型 |示例值 |必填 | | ||
157 | +|------ |---- |---- |------ |---- | | ||
158 | +|id |id |Integer | 5 |是| | ||
159 | + | ||
160 | +### 返回 | ||
161 | + | ||
162 | +``` json | ||
163 | +{ | ||
164 | + "code": 200, | ||
165 | + "data": { | ||
166 | + "createTime": 1446197882, | ||
167 | + "id": 5, | ||
168 | + "metaKey": "freeShippingLimit", | ||
169 | + "platform": "iphone,ipad,android,androidpad,h5,web,platform", | ||
170 | + "price": 599, | ||
171 | + "status": 1, | ||
172 | + "title": "包邮设置", | ||
173 | + "updateTime": 1460549166, | ||
174 | + "url": "http://m.yohobuy.com/" | ||
175 | + }, | ||
176 | + "md5": "2030c690ec5eb6b9db1e7b4aed0ca30a", | ||
177 | + "message": "操作成功" | ||
178 | +} | ||
179 | +``` | ||
180 | + |
-
Please register or login to post a comment