Skip to content

feat: 新增帖子、评论和批量标记 API - #5

Merged
lbb00 merged 1 commit into
mainfrom
feat/openapi-post-comment
Sep 11, 2026
Merged

lbb00 merged 1 commit into
mainfrom
feat/openapi-post-comment

Conversation

@lbb00

@lbb00 lbb00 commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

开发平台新增了批量标记、帖子查询和评论能力,现有三端 SDK 还没有对应入口。

本 PR 将 9 条新路由写入 shared/openapi.yaml,重新生成 Node.js、Java 和 Go 类型,并在三端新增 postcomment 分组及 mark.batchAdd。动态路径 ID 会在本地校验为正整数,避免 URL 点段归一化改变请求路径;comment.like 按官方契约只返回成功或失败。帖子响应字段尚未公开,因此暂时保留为可扩展对象,其余公开字段均提供强类型。

Test plan

  • Node.js:lint、typecheck、build,95/95 tests
  • Java:Checkstyle、Spotless,125/125 tests
  • Go:gofmt、vet、staticcheck v0.8.1、go test ./...
  • 重新生成全部产物并核对生成前后文件哈希一致

本次未使用真实应用凭证调用生产接口;契约以公开文档为准。

@lbb00
lbb00 merged commit 22dbd4a into main Sep 11, 2026
4 checks passed
@lbb00
lbb00 deleted the feat/openapi-post-comment branch September 11, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant