文档
测试

发布帖子

POST
http://localhost:3000/api/web/post/publish

接口描述

发布帖子

请求参数

参数名
类型
描述
必填
account
string
发布帖子用户账号
必填
title
string
帖子标题
必填
content
longtext
帖子内容
必填
article_imgs
string
帖子图片地址拼接起来的字符串,以逗号,间隔
必填

说明 / 示例

<font color=red>**帖子图片地址以字符串形式存储,以英文逗号,间隔**</font> 成功返回: ```json { code: 200, msg: "帖子发布成功!" } ``` 失败返回(用户账号错误): ```json { code: 202, msg: "用户不存在!" } ```