-
Notifications
You must be signed in to change notification settings - Fork 0
Develop #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #21
Conversation
Feature/refactoring db
Feature/logger
チャンネルに入るエンドポイントを実装
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors several components of the chat API while removing legacy Todo-related code. Key changes include updates to API specs (OpenAPI), removal of gorm.DB parameter passing in handlers and persistence functions (favoring dependency injection), and the adoption of structured logging (via slog) in place of fmt.Println calls.
Reviewed Changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
api/openapi.yaml | Adds the basic OpenAPI spec for the chat API endpoints. |
api/interface/handler/user.go | Removes DB dependency from constructor; replaces fmt prints with slog logging. |
api/interface/handler/todo.go | Removes legacy Todo handler functionality. |
api/interface/handler/message.go | Refactors message handling by removing DB dependency and replacing fmt prints with slog. |
api/interface/handler/channel.go | Updates channel handler to remove DB dependency and use slog logging. |
api/infrastructure/persistence/user_channels.go | Refactors user-channel persistence to use injected DB; improves error logging. |
api/infrastructure/persistence/user.go | Updates user persistence to use injected DB. |
api/infrastructure/persistence/message.go | Updates message persistence to use injected DB; removes extraneous debug prints. |
api/infrastructure/persistence/channel.go | Updates channel persistence to use injected DB; removes debug prints. |
api/cmd/app/app.go | Refactors application setup: injects dependencies, initializes structured logging, etc. |
Makefile | Adds a test target. |
.vscode/settings.json | Adds Go-specific editor settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve
No description provided.