Showing
1 changed file
with
145 additions
and
0 deletions
1 | +文章分类管理接口服务定义 | ||
2 | +--------------------- | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | +## 文章分类列表查询 | ||
7 | + | ||
8 | +> 接口名: 'article/sort/getList' | ||
9 | + | ||
10 | +### 入参 | ||
11 | + | ||
12 | +无 | ||
13 | + | ||
14 | +### 返回 | ||
15 | + | ||
16 | +``` json | ||
17 | +{ | ||
18 | + "code":200, | ||
19 | + "message":"操作成功", | ||
20 | + "data": { | ||
21 | + "list": [ | ||
22 | + { | ||
23 | + "id": "", | ||
24 | + “parentId": "", //父分类ID | ||
25 | + "name": "", //分类名称 | ||
26 | + "status": "", //状态,0关闭,1开启 | ||
27 | + "orderBy": "", //排序 | ||
28 | + "advertCode": "",//广告码 | ||
29 | + "sub": "", //子分类 | ||
30 | + } | ||
31 | + ] | ||
32 | + } | ||
33 | +} | ||
34 | + | ||
35 | +``` | ||
36 | + | ||
37 | + | ||
38 | +## 添加分类接口 | ||
39 | + | ||
40 | +> 接口名: 'article/sort/addSort' | ||
41 | + | ||
42 | +### 入参 | ||
43 | + | ||
44 | +------------------------- | ||
45 | +|属性名称|类型|例子|说明| | ||
46 | +|--------|----|----|----| | ||
47 | +|parentId|int|0|父分类ID| | ||
48 | +|name|string|欧美风|分类名称| | ||
49 | +|status|int|1|是否启用| | ||
50 | +|advertCode|string|180a31250622f11180f808d4404d0e78|广告码| | ||
51 | +|orderBy|int|5|排序| | ||
52 | +--------------------- | ||
53 | + | ||
54 | +### 返回 | ||
55 | + | ||
56 | +``` json | ||
57 | +{ | ||
58 | + "code":200, | ||
59 | + "message":"添加成功!" | ||
60 | +} | ||
61 | + | ||
62 | +``` | ||
63 | + | ||
64 | + | ||
65 | +## 编辑分类接口 | ||
66 | + | ||
67 | +> 接口名: 'article/sort/updateSort' | ||
68 | + | ||
69 | +### 入参 | ||
70 | + | ||
71 | +------------------------- | ||
72 | +|属性名称|类型|例子|说明| | ||
73 | +|--------|----|----|----| | ||
74 | +|id|int|10231|分类ID| | ||
75 | +|parentId|int|0|父分类ID| | ||
76 | +|name|string|欧美风|分类名称| | ||
77 | +|status|int|1|是否启用| | ||
78 | +|advertCode|string|180a31250622f11180f808d4404d0e78|广告码| | ||
79 | +|orderBy|int|5|排序| | ||
80 | +--------------------- | ||
81 | + | ||
82 | +### 返回 | ||
83 | + | ||
84 | +``` json | ||
85 | +{ | ||
86 | + "code":200, | ||
87 | + "message":"修改成功!" | ||
88 | +} | ||
89 | + | ||
90 | +``` | ||
91 | + | ||
92 | +## 编辑时分类详情接口 | ||
93 | + | ||
94 | +> 接口名: 'article/sort/getDetail' | ||
95 | + | ||
96 | +### 入参 | ||
97 | + | ||
98 | +------------------------- | ||
99 | +|属性名称|类型|例子|说明| | ||
100 | +|--------|----|----|----| | ||
101 | +|id|int|43|分类id| | ||
102 | +--------------------- | ||
103 | + | ||
104 | +### 返回 | ||
105 | + | ||
106 | +``` json | ||
107 | +{ | ||
108 | + "code":200, | ||
109 | + "message":"操作成功", | ||
110 | + "data": { | ||
111 | + "id": "", | ||
112 | + “parentId": "", //父分类ID | ||
113 | + "name": "", //分类名称 | ||
114 | + "status": "", //状态,0关闭,1开启 | ||
115 | + "orderBy": "", //排序 | ||
116 | + "advertCode": "", //广告码 | ||
117 | + } | ||
118 | +} | ||
119 | + | ||
120 | +``` | ||
121 | + | ||
122 | + | ||
123 | +## 删除分类接口 | ||
124 | + | ||
125 | +> 接口名: 'article/sort/delSort' | ||
126 | + | ||
127 | +### 入参 | ||
128 | + | ||
129 | +------------------------- | ||
130 | +|属性名称|类型|例子|说明| | ||
131 | +|--------|----|----|----| | ||
132 | +|id|intr|43|分类id| | ||
133 | +--------------------- | ||
134 | + | ||
135 | +### 返回 | ||
136 | + | ||
137 | +``` json | ||
138 | +{ | ||
139 | + "code":200, | ||
140 | + "message":"删除成功!" | ||
141 | +} | ||
142 | + | ||
143 | +``` | ||
144 | + | ||
145 | +``` |
-
Please register or login to post a comment