铭茗喵喵的推送#33
Open
MOYIre wants to merge 6 commits into
Open
Conversation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
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.
料理名单功能
概述
本次更新新增了料理名单功能,支持用户提交和管理料理信息,并通过 WebSocket 实现机器人命令交互。
功能特性
1. 料理名单功能
2. WebSocket 连接与机器人命令
.暴击和.加餐命令处理3. 配置更新
.gitignore配置技术实现
前端
src/routes/(app)/(toolPages)/dish.tsx料理页面src/components/features/BtEditor/components/ExamplesMenu/DishMenu.tsx料理菜单组件src/lib/dish-websocket.tsWebSocket 连接模块后端 API
POST /api/dish- 提交料理GET /api/dish- 获取料理列表POST /api/dish/review- 审核料理(管理员)GET /api/dish/config- 获取配置POST /api/dish/config- 保存配置GET /api/dish/ws/connect- WebSocket 连接GET /api/dish/ws/status- 连接状态数据库
Dish模型DishConfig模型DishStatus枚举文件变更
db/schema/models/data.prismadb/schema/models/user.prismasrc/routes/(app)/(toolPages)/dish.tsxsrc/lib/dish-websocket.tssrc/routes/api/dish/*测试