Showing
1 changed file
with
140 additions
and
0 deletions
inferface-document/guang/plustarcategory
0 → 100644
1 | +plustar分类管理接口服务定义 | ||
2 | +--------------------- | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | +## plustar分类列表查询 | ||
7 | + | ||
8 | +> 接口名: '/guang/plustarcategory/getList' | ||
9 | + | ||
10 | +### 入参 | ||
11 | + | ||
12 | +无 | ||
13 | + | ||
14 | +### 返回 | ||
15 | + | ||
16 | +``` json | ||
17 | +{ | ||
18 | + "code":200, | ||
19 | + "message":"操作成功", | ||
20 | + "data": { | ||
21 | + "list": [ | ||
22 | + { | ||
23 | + "id": 4, //分类id | ||
24 | + "categoryName": "设计新潮", //分类名称 | ||
25 | + "contentCode":"b714c25f503ab4e6bc143a42d1404cbb",//资源位码(head) | ||
26 | + "contentCodeFoot":"f5d0b31f4ce77e6f21f47215a88ed22d",//资源位码(foot) | ||
27 | + "createTime": 1447929410, //创建时间 | ||
28 | + "status": 1 //状态 | ||
29 | + } | ||
30 | + ] | ||
31 | + } | ||
32 | +} | ||
33 | + | ||
34 | +``` | ||
35 | + | ||
36 | + | ||
37 | +## 添加plustar分类接口 | ||
38 | + | ||
39 | +> 接口名: '/guang/plustarcategory/addCategory' | ||
40 | + | ||
41 | +### 入参 | ||
42 | + | ||
43 | +------------------------- | ||
44 | +|属性名称|类型|例子|说明| | ||
45 | +|--------|----|----|----| | ||
46 | +|categoryName|String|潮流原创|分类名称| | ||
47 | +|contentCode|String|b714c25f503ab4e6bc143a42d1|资源位码(head)| | ||
48 | +|contentCodeFoot|String|f5d0b31f4ce77e6f21f4721|资源位码(foot)| | ||
49 | +--------------------- | ||
50 | + | ||
51 | +### 返回 | ||
52 | + | ||
53 | +``` json | ||
54 | +{ | ||
55 | + "code":200, | ||
56 | + "message":"添加成功!" | ||
57 | +} | ||
58 | + | ||
59 | +``` | ||
60 | + | ||
61 | + | ||
62 | +## 编辑plustar分类接口 | ||
63 | + | ||
64 | +> 接口名: '/guang/plustarcategory/updateCategory' | ||
65 | + | ||
66 | +### 入参 | ||
67 | + | ||
68 | +------------------------- | ||
69 | +|属性名称|类型|例子|说明| | ||
70 | +|--------|----|----|----| | ||
71 | +|id|int|5|分类ID| | ||
72 | +|categoryName|String|潮流原创|分类名称| | ||
73 | +|contentCode|String|b714c25f503ab4e6bc143a42d1|资源位码(head)| | ||
74 | +|contentCodeFoot|String|f5d0b31f4ce77e6f21f4721|资源位码(foot)| | ||
75 | +--------------------- | ||
76 | + | ||
77 | +### 返回 | ||
78 | + | ||
79 | +``` json | ||
80 | +{ | ||
81 | + "code":200, | ||
82 | + "message":"修改成功!" | ||
83 | +} | ||
84 | + | ||
85 | +``` | ||
86 | + | ||
87 | +## 编辑时plustar分类详情接口 | ||
88 | + | ||
89 | +> 接口名: '/guang/plustarcategory/getDetail' | ||
90 | + | ||
91 | +### 入参 | ||
92 | + | ||
93 | +------------------------- | ||
94 | +|属性名称|类型|例子|说明| | ||
95 | +|--------|----|----|----| | ||
96 | +|id|int|4|分类id| | ||
97 | +--------------------- | ||
98 | + | ||
99 | +### 返回 | ||
100 | + | ||
101 | +``` json | ||
102 | +{ | ||
103 | + "code":200, | ||
104 | + "message":"操作成功", | ||
105 | + "data": { | ||
106 | + "id": 4, //分类id | ||
107 | + "categoryName": "设计新潮", //分类名称 | ||
108 | + "contentCode": "b714c25f503ab4e6bc143a42d1404cbb", //资源位码(head) | ||
109 | + "contentCodeFoot":"f5d0b31f4ce77e6f21f47215a88ed22d",//资源位码(foot) | ||
110 | + "createTime": 1447929410, //创建时间 | ||
111 | + "status": 1 //状态 | ||
112 | + } | ||
113 | +} | ||
114 | + | ||
115 | +``` | ||
116 | + | ||
117 | + | ||
118 | +## 删除plustar分类接口 | ||
119 | + | ||
120 | +> 接口名: '/guang/plustarcategory/delCategory' | ||
121 | + | ||
122 | +### 入参 | ||
123 | + | ||
124 | +------------------------- | ||
125 | +|属性名称|类型|例子|说明| | ||
126 | +|--------|----|----|----| | ||
127 | +|id|int|43|分类id| | ||
128 | +--------------------- | ||
129 | + | ||
130 | +### 返回 | ||
131 | + | ||
132 | +``` json | ||
133 | +{ | ||
134 | + "code":200, | ||
135 | + "message":"删除成功!" | ||
136 | +} | ||
137 | + | ||
138 | +``` | ||
139 | + | ||
140 | +``` |
-
Please register or login to post a comment