feat: 新增帖子、评论和批量标记 API - #5
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
开发平台新增了批量标记、帖子查询和评论能力,现有三端 SDK 还没有对应入口。
本 PR 将 9 条新路由写入
shared/openapi.yaml,重新生成 Node.js、Java 和 Go 类型,并在三端新增post、comment分组及mark.batchAdd。动态路径 ID 会在本地校验为正整数,避免 URL 点段归一化改变请求路径;comment.like按官方契约只返回成功或失败。帖子响应字段尚未公开,因此暂时保留为可扩展对象,其余公开字段均提供强类型。Test plan
go test ./...本次未使用真实应用凭证调用生产接口;契约以公开文档为准。