综合开放平台

open platform


2. 发布/修改 - 文章

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>专家发布或者修改文章,当ID为null时为新增,ID不为null时则修改</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://127.0.0.1:48080/server/open/expert/base-article/submit</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>ID</td> </tr> <tr> <td style="text-align: left;">typeId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>文章分类</td> </tr> <tr> <td style="text-align: left;">title</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>文章标题</td> </tr> <tr> <td style="text-align: left;">firstPicture</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>首图</td> </tr> <tr> <td style="text-align: left;">articleContent</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>文章内容,富文本</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code>{     &amp;quot;id&amp;quot;: 142,     &amp;quot;typeId&amp;quot;: 138,     &amp;quot;title&amp;quot;: &amp;quot;测试文章&amp;quot;,     &amp;quot;articleContent&amp;quot;: &amp;quot;&amp;lt;p&amp;gt;这是测试文档&amp;lt;/p&amp;gt;&amp;quot;,     &amp;quot;firstPicture&amp;quot;: &amp;quot;http://124.225.163.144:9800/open/c046f4f7f9bf38d2b93ab146138126142e8d14931e930-adLhbn_fw236.png&amp;quot; }</code></pre> <h5>返回示例</h5> <pre><code>{     &amp;quot;code&amp;quot;: 0,     &amp;quot;data&amp;quot;: true,     &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML