chore(api): 重新生成 BetterGI 接口的前端 API 客户端 - #525
Merged
qiyinxi merged 1 commit intoSep 1, 2026
Merged
Conversation
BetterGI 专项(AUTO-MAS-Project#410)合入时未重新跑生成器,前端生成物与后端 schema 脱节: Service.ts 缺三个 BetterGI 接口,自定义配置组方法名与后端 operationId 不符, 多个 BetterGI 模型缺字段、缺描述且参数可选性不对,index.ts 缺两个模型导出。 服务类名按生成器的 tag 派生规则统一为 BetterGiService(与 MaaFwService、 OknteService 同源),用 git mv 完成大小写重命名以适配大小写敏感文件系统, 并同步更新两处消费方。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
审查者指南重新生成 BetterGI 前端 OpenAPI 客户端,补齐并修正接口、模型和类型导出,统一服务类命名,并同步更新两个前端调用方;后端与业务逻辑未变。 BetterGI 前端 API 调用时序图sequenceDiagram
participant BetterGIUserEdit
participant useBettergiCustomGroups
participant BetterGiService
participant BetterGIAPI
BetterGIUserEdit->>BetterGiService: getBettergiOneDragonConfigsApiApiScriptsBettergiOneDragonConfigsGet(scriptId)
BetterGiService->>BetterGIAPI: GET /api/scripts/bettergi/one-dragon/configs
BetterGIAPI-->>BetterGiService: ComboBoxOut
BetterGiService-->>BetterGIUserEdit: config options
BetterGIUserEdit->>BetterGiService: getBettergiStrategiesApiApiScriptsBettergiStrategiesGet(scriptId)
BetterGiService->>BetterGIAPI: GET /api/scripts/bettergi/strategies
BetterGIAPI-->>BetterGiService: ComboBoxOut
BetterGiService-->>BetterGIUserEdit: strategy options
useBettergiCustomGroups->>BetterGiService: getBettergiCustomGroupsApiApiScriptsBettergiOneDragonCustomGroupsGet(scriptId, configName, useMasConfig)
BetterGiService->>BetterGIAPI: GET /api/scripts/bettergi/one-dragon/custom-groups
BetterGIAPI-->>BetterGiService: BetterGICustomGroupsOut
BetterGiService-->>useBettergiCustomGroups: custom groups
文件级变更
提示与命令与 Sourcery 交互
自定义你的使用体验访问你的控制面板以:
获取帮助Original review guide in EnglishReviewer's Guide重新生成 BetterGI 前端 OpenAPI 客户端,补齐并修正接口、模型和类型导出,统一服务类命名,并同步更新两个前端调用方;后端与业务逻辑未变。 Sequence diagram for BetterGI frontend API callssequenceDiagram
participant BetterGIUserEdit
participant useBettergiCustomGroups
participant BetterGiService
participant BetterGIAPI
BetterGIUserEdit->>BetterGiService: getBettergiOneDragonConfigsApiApiScriptsBettergiOneDragonConfigsGet(scriptId)
BetterGiService->>BetterGIAPI: GET /api/scripts/bettergi/one-dragon/configs
BetterGIAPI-->>BetterGiService: ComboBoxOut
BetterGiService-->>BetterGIUserEdit: config options
BetterGIUserEdit->>BetterGiService: getBettergiStrategiesApiApiScriptsBettergiStrategiesGet(scriptId)
BetterGiService->>BetterGIAPI: GET /api/scripts/bettergi/strategies
BetterGIAPI-->>BetterGiService: ComboBoxOut
BetterGiService-->>BetterGIUserEdit: strategy options
useBettergiCustomGroups->>BetterGiService: getBettergiCustomGroupsApiApiScriptsBettergiOneDragonCustomGroupsGet(scriptId, configName, useMasConfig)
BetterGiService->>BetterGIAPI: GET /api/scripts/bettergi/one-dragon/custom-groups
BetterGIAPI-->>BetterGiService: BetterGICustomGroupsOut
BetterGiService-->>useBettergiCustomGroups: custom groups
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
概述
BetterGI 专项(#410)合入时没有重新跑 OpenAPI 生成器,
frontend/src/api与后端接口定义脱节。变更
BetterGiService(与MaaFwService、OknteService同一规则),仓库里此前的BettergiService不是生成器产物;已用git mv完成大小写重命名,避免在大小写敏感环境下解析失败。useBettergiCustomGroups.ts、BetterGIUserEdit.vue),后端与业务逻辑未改。验证
yarn typecheck、yarn lint --max-warnings 1、yarn test(23 文件 / 144 用例)均通过。Sourcery 摘要
重新生成 BetterGI 前端 API 客户端,以恢复与后端接口定义的一致性。
错误修复:
增强功能:
日常维护:
Original summary in English
Summary by Sourcery
Regenerate the BetterGI frontend API client to restore alignment with the backend interface definitions.
Bug Fixes:
Enhancements:
Chores: