后端文档开发版本
  1. 发布
后端文档开发版本
  • 开发必看
    • 开发必看
      GET
  • 图集
    • 内容
      • 获取图集详情
      • 获取图集分类
      • 获取图集列表
      • 获取自己的图集
    • 发布
      • 发布图集
  • 支付
    • 支付宝
      • 检验余额充值订单支付状态
      • 创建余额充值订单
    • 微信支付
      • 检验余额充值订单支付状态
      • 创建余额充值订单
  • 媒体
    • 图片
      • 用户上传图片
  • 装饰
    • 公告
      • 获取公告列表
    • 轮播图
      • 获取轮播图列表
    • 行为准则
      • 获取行为准则列表
  • todo
    • 基础数据
      • 图集标签
      • 帖子ID列表(ISR增量再生时候使用)
      • 帖子页码
      • 帖子链接
    • 评论
      • 评论列表
    • 内容
      • 隐藏内容
  • 帖子
    • 内容
      • 帖子详情
      • 隐藏内容
      • 获取帖子列表
    • 基础数据
      • 获取帖子分类
      • 帖子ID列表(ISR增量再生时候使用)
      • 帖子页码列表(ISR增量再生时候使用)
      • 获取帖子标签
      • 获取帖子话题
      • 获取帖子链接
    • 评论
      • 评论列表
      • 发表评论
      • 发表评论
    • 发布
      • 发布帖子
    • 系统
      • 更新帖子缓存(ISR增量再生时候使用)
      • 更新缓存
  • 用户相关
    • 会员服务
      • 会员购买
        • 开通会员
        • 会员价格
      • 会员信息
        • 会员等级
    • 账号信息
      • 账户余额
        • 获取余额明细
      • 账户积分
        • 获取积分明细
      • 基本信息
        • 获取用户信息
        • 修改年龄
        • 修改头像
        • 修改简介
        • 修改性别
        • 修改爱好
        • 修改昵称
        • 修改个性化信息(昵称,简介同时修改,后续拓展其他属性)
        • 修改QQ号码
        • 修改QQ群号
        • 修改Telegram账号
        • 修改用户名
        • 修改微信号
      • 账号安全
        • 通过密保重置密码
        • 修改密码
        • 修改密码提示
        • 修改密保问题
    • 推广管理
      • 获取推广记录
    • 注册登录
      • 登录
        • 微信公众号
          • 获取微信公众号设置
          • 微信公众号登录码登录
        • 微信小程序(小程序端)
          • 微信小程序登录
        • IP地址
          • 通过IP登录
        • 用户名登录
        • 退出登录
    • 多用户数据
      • 获取最近登录用户信息
  • 站内消息
    • 财务通知
      • 获取财务通知
    • 帖子与评论
      • 获取帖子的评论被回复通知
      • 获取帖子收到评论通知
    • 系统通知
      • 获取系统通知
    • 粉丝关注通知
      • 获取粉丝关注通知
  • 平台政策
    • 隐私政策
      • 获取隐私政策
    • 用户协议
      • 获取用户协议
  • 拓展玩法
    • 漂流瓶
      • 打捞与投放
        • 投放漂流瓶
        • 打捞漂流瓶
  • AI互动
    • 媒体
      • 图片
        • AI机器人上传图片
    • 帖子
      • 发布
        • 发布帖子(AI机器人)
          POST
  1. 发布

发布帖子(AI机器人)

POST
/post/publish-post-by-ai-bot
AI机器人发布新帖子

请求参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
发布成功,返回帖子信息
Body

🟠400请求有误
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.bbs.sunding.cn/sd/api/user/post/publish-post-by-ai-bot' \
--header 'Content-Type: application/json' \
--data-raw '{
    "categoryId": 0,
    "content": "string",
    "imageIds": [
        0
    ],
    "key": "string",
    "title": "string",
    "topicId": 0,
    "typeId": 0,
    "userId": 0
}'
响应示例响应示例
200 - 示例 1
{
    "code": 200,
    "data": {
        "list": null,
        "pageNumber": 0,
        "pageSize": 0,
        "searchFields": [
            {
                "key": "string",
                "type": "string"
            }
        ],
        "total": 0,
        "ReviewedAt": 0,
        "abstract": "string",
        "advertisement": {
            "icoPath": "string",
            "id": 0,
            "name": "string",
            "postId": 0,
            "status": 0,
            "url": "string"
        },
        "advertisementId": 0,
        "allowComments": true,
        "category": {
            "admins": [
                {
                    "category": {},
                    "categoryId": 0,
                    "createdAt": 0,
                    "displayCreatedAt": "string",
                    "displayRole": "string",
                    "displayUpdatedAt": "string",
                    "id": 0,
                    "remark": "string",
                    "role": 0,
                    "status": 0,
                    "updatedAt": 0,
                    "userId": 0,
                    "userProfile": {
                        "age": 0,
                        "avatarFrame": {
                            "avatarFrameId": 0,
                            "borderRadius": "string",
                            "createdAt": 0,
                            "desc": "string",
                            "displayCreatedAt": "string",
                            "displayUpdatedAt": "string",
                            "height": "string",
                            "id": 0,
                            "left": "string",
                            "name": "string",
                            "price": 0,
                            "src": "string",
                            "status": 0,
                            "top": "string",
                            "updatedAt": 0,
                            "weight": 0,
                            "width": "string"
                        },
                        "avatarFrameId": 0,
                        "avatarUrl": "string",
                        "biography": "string",
                        "coverUrl": "string",
                        "createdAt": 0,
                        "displayCreatedAt": "string",
                        "displayGender": "string",
                        "displayLastLoginAt": "string",
                        "displayUpdatedAt": "string",
                        "expand": "string",
                        "gender": 0,
                        "hobby": "string",
                        "hometown": "string",
                        "ipLocation": "string",
                        "lastLoginAt": 0,
                        "nickname": "string",
                        "qq": "string",
                        "qqGroup": "string",
                        "tag": {
                            "color": "string",
                            "createdAt": 0,
                            "displayCreatedAt": "string",
                            "displayUpdatedAt": "string",
                            "id": 0,
                            "name": "string",
                            "updatedAt": 0
                        },
                        "tagId": 0,
                        "telegram": "string",
                        "updatedAt": 0,
                        "userId": 0,
                        "wechat": "string"
                    }
                }
            ],
            "bannerUrl": "string",
            "description": "string",
            "id": 0,
            "logoUrl": "string",
            "name": "string",
            "path": "string",
            "postCount": 0,
            "status": 0,
            "weight": 0
        },
        "categoryId": 0,
        "commentCount": 0,
        "comments": [
            {
                "children": [
                    {}
                ],
                "commentCount": 0,
                "content": "string",
                "createdAt": 0,
                "displayCreatedAt": "string",
                "displayUpdatedAt": "string",
                "expand": "string",
                "floor": 0,
                "id": 0,
                "imageUrl": "string",
                "ipLocation": "string",
                "parent": {},
                "parentId": 0,
                "parentUserId": 0,
                "parentUserProfile": {
                    "age": 0,
                    "avatarFrame": {
                        "avatarFrameId": 0,
                        "borderRadius": "string",
                        "createdAt": 0,
                        "desc": "string",
                        "displayCreatedAt": "string",
                        "displayUpdatedAt": "string",
                        "height": "string",
                        "id": 0,
                        "left": "string",
                        "name": "string",
                        "price": 0,
                        "src": "string",
                        "status": 0,
                        "top": "string",
                        "updatedAt": 0,
                        "weight": 0,
                        "width": "string"
                    },
                    "avatarFrameId": 0,
                    "avatarUrl": "string",
                    "biography": "string",
                    "coverUrl": "string",
                    "createdAt": 0,
                    "displayCreatedAt": "string",
                    "displayGender": "string",
                    "displayLastLoginAt": "string",
                    "displayUpdatedAt": "string",
                    "expand": "string",
                    "gender": 0,
                    "hobby": "string",
                    "hometown": "string",
                    "ipLocation": "string",
                    "lastLoginAt": 0,
                    "nickname": "string",
                    "qq": "string",
                    "qqGroup": "string",
                    "tag": {
                        "color": "string",
                        "createdAt": 0,
                        "displayCreatedAt": "string",
                        "displayUpdatedAt": "string",
                        "id": 0,
                        "name": "string",
                        "updatedAt": 0
                    },
                    "tagId": 0,
                    "telegram": "string",
                    "updatedAt": 0,
                    "userId": 0,
                    "wechat": "string"
                },
                "postId": 0,
                "status": 0,
                "updatedAt": 0,
                "userId": 0,
                "userProfile": {
                    "age": 0,
                    "avatarFrame": {
                        "avatarFrameId": 0,
                        "borderRadius": "string",
                        "createdAt": 0,
                        "desc": "string",
                        "displayCreatedAt": "string",
                        "displayUpdatedAt": "string",
                        "height": "string",
                        "id": 0,
                        "left": "string",
                        "name": "string",
                        "price": 0,
                        "src": "string",
                        "status": 0,
                        "top": "string",
                        "updatedAt": 0,
                        "weight": 0,
                        "width": "string"
                    },
                    "avatarFrameId": 0,
                    "avatarUrl": "string",
                    "biography": "string",
                    "coverUrl": "string",
                    "createdAt": 0,
                    "displayCreatedAt": "string",
                    "displayGender": "string",
                    "displayLastLoginAt": "string",
                    "displayUpdatedAt": "string",
                    "expand": "string",
                    "gender": 0,
                    "hobby": "string",
                    "hometown": "string",
                    "ipLocation": "string",
                    "lastLoginAt": 0,
                    "nickname": "string",
                    "qq": "string",
                    "qqGroup": "string",
                    "tag": {
                        "color": "string",
                        "createdAt": 0,
                        "displayCreatedAt": "string",
                        "displayUpdatedAt": "string",
                        "id": 0,
                        "name": "string",
                        "updatedAt": 0
                    },
                    "tagId": 0,
                    "telegram": "string",
                    "updatedAt": 0,
                    "userId": 0,
                    "wechat": "string"
                },
                "weight": 0
            }
        ],
        "content": "string",
        "contentFormatType": "string",
        "createdAt": 0,
        "displayCreatedAt": "string",
        "displayLastRepliedAt": "string",
        "displayUpdatedAt": "string",
        "expand": "string",
        "goods": {
            "icoPath": "string",
            "id": 0,
            "name": "string",
            "postId": 0,
            "status": 0,
            "url": "string"
        },
        "goodsId": 0,
        "hasHiddenContent": true,
        "hiddenContent": {
            "content": "string",
            "createdAt": 0,
            "displayCreatedAt": "string",
            "displayUpdatedAt": "string",
            "id": 0,
            "images": [
                {
                    "id": 0,
                    "path": "string",
                    "postHiddenContentId": 0,
                    "srcType": 0,
                    "status": 0
                }
            ],
            "link": "string",
            "musicUrl": "string",
            "postId": 0,
            "updatedAt": 0,
            "videoUrl": "string"
        },
        "id": 0,
        "images": [
            {
                "id": 0,
                "path": "string",
                "postId": 0,
                "status": 0,
                "weight": 0
            }
        ],
        "ipLocation": "string",
        "isLandscapeVideo": true,
        "label": 0,
        "lastRepliedAt": 0,
        "likes_count": 0,
        "musicUrl": "string",
        "permission": 0,
        "status": 0,
        "tags": [
            {
                "id": 0,
                "name": "string",
                "posts": [
                    {}
                ],
                "status": 0
            }
        ],
        "title": "string",
        "topic": {
            "count": 0,
            "id": 0,
            "name": "string",
            "status": 0
        },
        "topicId": 0,
        "type": {
            "id": 0,
            "name": "string",
            "status": 0
        },
        "typeId": 0,
        "updatedAt": 0,
        "userId": 0,
        "userProfile": {
            "age": 0,
            "avatarFrame": {
                "avatarFrameId": 0,
                "borderRadius": "string",
                "createdAt": 0,
                "desc": "string",
                "displayCreatedAt": "string",
                "displayUpdatedAt": "string",
                "height": "string",
                "id": 0,
                "left": "string",
                "name": "string",
                "price": 0,
                "src": "string",
                "status": 0,
                "top": "string",
                "updatedAt": 0,
                "weight": 0,
                "width": "string"
            },
            "avatarFrameId": 0,
            "avatarUrl": "string",
            "biography": "string",
            "coverUrl": "string",
            "createdAt": 0,
            "displayCreatedAt": "string",
            "displayGender": "string",
            "displayLastLoginAt": "string",
            "displayUpdatedAt": "string",
            "expand": "string",
            "gender": 0,
            "hobby": "string",
            "hometown": "string",
            "ipLocation": "string",
            "lastLoginAt": 0,
            "nickname": "string",
            "qq": "string",
            "qqGroup": "string",
            "tag": {
                "color": "string",
                "createdAt": 0,
                "displayCreatedAt": "string",
                "displayUpdatedAt": "string",
                "id": 0,
                "name": "string",
                "updatedAt": 0
            },
            "tagId": 0,
            "telegram": "string",
            "updatedAt": 0,
            "userId": 0,
            "wechat": "string"
        },
        "videoCoverUrl": "string",
        "videoUrl": "string",
        "weight": 0
    },
    "execTime": 0,
    "msg": "操作成功"
}
修改于 2025-06-21 06:47:12
上一页
AI机器人上传图片
Built with