Showing
1 changed file
with
105 additions
and
0 deletions
inferface-document/guang/comment.md
0 → 100644
1 | +评论管理接口服务定义 | ||
2 | +--------------------- | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | +## 评论列表查询 | ||
7 | + | ||
8 | +> 接口名: '/guang/comment/getList' | ||
9 | + | ||
10 | +### 入参 | ||
11 | + | ||
12 | +------------------------- | ||
13 | +|属性名称|类型|例子|说明| | ||
14 | +|--------|----|----|----| | ||
15 | +|condNum|int|1|查询方式,如1表示回复内容| | ||
16 | +|condContent|String|V2hhdCBmdWNrIG|查询内容| | ||
17 | +|status|int|1|审核状态,0待审核,1审核通过,-1表示屏蔽| | ||
18 | +|page|int|2|页码| | ||
19 | +|size|int|20|每页条数| | ||
20 | +--------------------- | ||
21 | + | ||
22 | +### 返回 | ||
23 | + | ||
24 | +``` json | ||
25 | +{ | ||
26 | + "code":200, | ||
27 | + "message":"操作成功", | ||
28 | + "data": { | ||
29 | + "list": [ | ||
30 | + { | ||
31 | + "id": "8168248", //评论id | ||
32 | + "articleId": "DREAMER",//资讯id | ||
33 | + "content": "" //评论内容 | ||
34 | + "articleTitle": "" //资讯标题 | ||
35 | + "editorName": "" //作者姓名 | ||
36 | + "status": "" //状态 | ||
37 | + "operationTime": "" //操作时间 | ||
38 | + "createTime": "" //创建时间 | ||
39 | + "auditStatus": "" //审核状态 | ||
40 | + } | ||
41 | + ] | ||
42 | + } | ||
43 | +} | ||
44 | + | ||
45 | +``` | ||
46 | + | ||
47 | + | ||
48 | +## 评论审核接口 | ||
49 | + | ||
50 | +> 接口名: '/guang/comment/audit' | ||
51 | + | ||
52 | +### 入参 | ||
53 | + | ||
54 | +------------------------- | ||
55 | +|属性名称|类型|例子|说明| | ||
56 | +|--------|----|----|----| | ||
57 | +|id|String|201,202|评论id,批量操作时id以逗号分隔| | ||
58 | +|status|int|1|审核状态,0待审核,1审核通过,-1表示屏蔽| | ||
59 | +--------------------- | ||
60 | + | ||
61 | +### 返回 | ||
62 | + | ||
63 | +``` json | ||
64 | +{ | ||
65 | + "code":200, | ||
66 | + "message":"操作成功!" | ||
67 | +} | ||
68 | + | ||
69 | +``` | ||
70 | + | ||
71 | + | ||
72 | +``` | ||
73 | + | ||
74 | + | ||
75 | +## 获取筛选条件列表接口 | ||
76 | + | ||
77 | +> 接口名: '/guang/comment/getItems' | ||
78 | + | ||
79 | +### 入参 | ||
80 | + | ||
81 | +无 | ||
82 | + | ||
83 | +### 返回 | ||
84 | + | ||
85 | +``` json | ||
86 | +{ | ||
87 | + "code":200, | ||
88 | + "message":"操作成功", | ||
89 | + "data": [ | ||
90 | + { | ||
91 | + "id": "1", | ||
92 | + "text":"回复内容" | ||
93 | + }, | ||
94 | + { | ||
95 | + "id": "2", | ||
96 | + "text":"用户名" | ||
97 | + } | ||
98 | + ... | ||
99 | + ] | ||
100 | + | ||
101 | +} | ||
102 | + | ||
103 | +``` | ||
104 | + | ||
105 | +``` |
-
Please register or login to post a comment