---
title: "修改内容"
method: POST
path: "/content/do-update"
tags: ["前台-内容"]
---

# 修改内容

`POST /content/do-update`

## Request body

- DefineContentApiDoUpdateReq
  - `brief` string — 摘要
  - `categoryId` integer — 栏目ID
  - `content` string — 内容
  - `id` integer — 修改时ID不能为空
  - `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)
