团队项目

这是一个流弊的项目


修改资讯

<p>[toc]</p> <h2>POST 资讯修改</h2> <p>POST /localhost:9000/article/article/update</p> <blockquote> <p>Body 请求参数</p> </blockquote> <pre><code class="language-yaml">id: "7" title: 测试修改 type: "1" content: &lt;p&gt;11111&lt;/p&gt; url: "11111" state: "0" beginDate: 2022-11-12 endDate: 2023-11-12 </code></pre> <h3>请求参数</h3> <table> <thead> <tr> <th>名称</th> <th>位置</th> <th>类型</th> <th>必选</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>body</td> <td>body</td> <td>object</td> <td>否</td> <td>none</td> </tr> <tr> <td>» id</td> <td>body</td> <td>string</td> <td>是</td> <td>资讯id</td> </tr> <tr> <td>» title</td> <td>body</td> <td>string</td> <td>是</td> <td>标题</td> </tr> <tr> <td>» type</td> <td>body</td> <td>string</td> <td>是</td> <td>类型(1 外部文章,,2 本站文章)</td> </tr> <tr> <td>» content</td> <td>body</td> <td>string</td> <td>是</td> <td>资讯内容</td> </tr> <tr> <td>» url</td> <td>body</td> <td>string</td> <td>是</td> <td>外部文章地址</td> </tr> <tr> <td>» state</td> <td>body</td> <td>string</td> <td>是</td> <td>状态(-1 无效,0有效)</td> </tr> <tr> <td>» beginDate</td> <td>body</td> <td>string</td> <td>是</td> <td>生效开始时间</td> </tr> <tr> <td>» endDate</td> <td>body</td> <td>string</td> <td>是</td> <td>生效结束时间</td> </tr> </tbody> </table> <blockquote> <p>返回示例</p> <p>成功</p> </blockquote> <pre><code class="language-json">{ "msg": "success", "code": 200 }</code></pre> <h3>返回结果</h3> <table> <thead> <tr> <th>状态码</th> <th>状态码含义</th> <th>说明</th> <th>数据模型</th> </tr> </thead> <tbody> <tr> <td>200</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td> <td>成功</td> <td>Inline</td> </tr> </tbody> </table> <h3>返回数据结构</h3> <h2>GET 查看资讯内容</h2> <p>GET /localhost:9000/article/article/detail</p> <h3>请求参数</h3> <table> <thead> <tr> <th>名称</th> <th>位置</th> <th>类型</th> <th>必选</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>query</td> <td>string</td> <td>是</td> <td>资讯id</td> </tr> </tbody> </table> <blockquote> <p>返回示例</p> <p>成功</p> </blockquote> <pre><code class="language-json">{ "msg": "success", "code": 200, "data": { "id": 1, "title": "叩丁狼资讯测试", "type": 1, "content": "&lt;p&gt;222222&lt;/p&gt;\n", "url": "1", "state": 0, "beginDate": "2023-01-09", "endDate": "2023-01-29", "releaseDate": "2023-01-11", "updateTime": "2023-01-11 15:23:32" } }</code></pre> <h3>返回结果</h3> <table> <thead> <tr> <th>状态码</th> <th>状态码含义</th> <th>说明</th> <th>数据模型</th> </tr> </thead> <tbody> <tr> <td>200</td> <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td> <td>成功</td> <td>Inline</td> </tr> </tbody> </table>

页面列表

ITEM_HTML