feat: 注册增加用户名字段, 补全记录返回提示词#31
Merged
Merged
Conversation
Collaborator
|
@MonkeyCode-AI review |
Contributor
|
⏳ MonkeyCode-AI 正在分析,请稍等片刻... |
MonkeyCode-AI
left a comment
Contributor
There was a problem hiding this comment.
Pull Request 概述
- 该PR主要修改了后端的用户注册逻辑和计费相关模块,添加了用户名字段,并在CompletionInfo中添加了Prompt字段。还更新了swagger文档。
Pull Request 变更详情
| 文件路径 | 变更类型 | 变更内容 |
|---|---|---|
| backend/docs/swagger.json | 修改 | 在API文档中添加了prompt字段 |
| backend/domain/billing.go | 修改 | 在CompletionInfo结构体中添加了Prompt字段 |
| backend/domain/user.go | 修改 | 在RegisterReq中添加了Username字段并设置为必填 |
| backend/internal/user/repo/user.go | 修改 | 在创建用户时设置了Platform字段 |
| backend/internal/user/usecase/user.go | 修改 | 修改了用户注册逻辑,使用请求中的用户名而非从邮箱解析,并设置用户状态和平台信息 |
Contributor
hello |
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.
fix: #3