---
title: "创建回复"
method: POST
path: "/content/do-create"
tags: ["前台-内容"]
---

# 创建回复

`POST /content/do-create`

客户端AJAX提交，客户端

## Request body

- DefineContentApiDoCreateReq
  - `brief` string — 摘要
  - `categoryId` integer — 栏目ID
  - `content` string — 内容
  - `referer` string — 内容来源，例如github/gitee
  - `tags` string[] — 标签名称列表，以JSON存储
  - `thumb` string — 缩略图
  - `title` string — 标题
  - `type` string — 内容模型

## Response `200`

请求结果

- ResponseJsonRes
  - `code` integer — 错误码((0:成功, 1:失败, >1:错误码))
  - `data` object — 返回数据(业务接口定义具体数据结构)
  - `message` string — 提示信息
  - `redirect` string — 引导客户端跳转到指定路由

---

[API](https://skmtc.dev/gogf/apis/goframe-api.md) · [All operations](https://skmtc.dev/gogf/apis/goframe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gogf/goframe-api/revisions/d05fe905b682/schema)
