8000 Develop by keito0tada · Pull Request #21 · comb19/chat_back · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 18 commits into from
May 11, 2025
Merged

Develop #21

merged 18 commits into from
May 11, 2025

Conversation

keito0tada
Copy link
Contributor

No description provided.

@keito0tada keito0tada requested a review from kasatomorning May 11, 2025 09:56
@keito0tada keito0tada assigned keito0tada and unassigned keito0tada May 11, 2025
@kasatomorning kasatomorning requested a review from Copilot May 11, 2025 10:08
Copy link
@Copilot Copilot AI left a 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.

Copy link
Contributor
@kasatomorning kasatomorning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor
@kasatomorning kasatomorning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve

@keito0tada keito0tada merged commit ca31cb8 into main May 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0