Skip to content

Commit

Permalink
CreatePostの引数を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHima03 committed Jun 15, 2024
1 parent 6c82cad commit 7f9b591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/handler/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

type PostRepository interface {
CreatePost(ctx context.Context, postID uuid.UUID, originalMessage string, convertedMessage string, parentID uuid.UUID, rootID uuid.UUID) error
CreatePost(ctx context.Context, postID uuid.UUID, originalMessage string, convertedMessage string, parentID uuid.UUID) error
}

type PostHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion backend/repository/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ func NewPostRepository(db *sqlx.DB) *PostRepository {
return &PostRepository{db: db}
}

func (pr *PostRepository) CreatePost(ctx context.Context, postID uuid.UUID, originalMessage string, convertedMessage string, parentID uuid.UUID, rootID uuid.UUID) error {
func (pr *PostRepository) CreatePost(ctx context.Context, postID uuid.UUID, originalMessage string, convertedMessage string, parentID uuid.UUID) error {
return nil
}

0 comments on commit 7f9b591

Please sign in to comment.