Skip to content

Conversation

@KOUTYA47
Copy link
Contributor

チケットへのリンク

やったこと

  • socre_handlerのテストの追加

やらないこと

  • なし

できるようになること(ユーザ目線)

  • 何ができるようになるのか?(あれば。無いなら「無し」で OK)

できなくなること(ユーザ目線)

  • 何ができなくなるのか?(あれば。無いなら「無し」で OK)

動作確認

  • どのような動作確認を行ったのか? 結果はどうか?

その他

  • レビュワーへの参考情報(実装上の懸念点や注意点などあれば記載)

"github.com/su-its/typing/typing-server/internal/domain/service"
)

// モック作成のためインターフェースを実装
Copy link
Member

Choose a reason for hiding this comment

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

インターフェースの作成は正確にはモック作成のためではなく、インタフェースという抽象の具体の一つにモックがあるという認識できると 良いです。

Copy link
Member

Choose a reason for hiding this comment

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

インターフェースなことは見ればわかりそうなのでコメントなくても良さそう

Comment on lines +12 to +13
// モック作成のためインターフェースを実装
type IScoreUseCase interface {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// モック作成のためインターフェースを実装
type IScoreUseCase interface {
type IScoreUseCase interface {

Comment on lines +23 to +35
const (
ErrMsgInvalidSortbyParam = "Invalid sort_by parameter"
ErrMsgInvalidStartParam = "Invalid start parameter"
ErrMsgInvalidLimitParam = "Invalid limit parameter"
ErrMsgFetchRanking = "Failed to fetch ranking"
ErrMsgScoreEncodeResponse = "Failed to encode response"

ErrMsgInvalidReqBody = "Invalid request body"
ErrMsgInvalidUserIdFormat = "Invalid user_id format"
ErrMsgRegisterScore = "Failed to register score"
MsgRegisteredSuccessfully = "Score registered successfully"
ErrMsgWriteResponse = "Failed to write response"
)
Copy link
Member

Choose a reason for hiding this comment

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

日本語で対応したいかもですね。
これはUserHandlerが日本語に対応しているからなのですが。

"github.com/su-its/typing/typing-server/internal/domain/service"
)

// モック作成のためインターフェースを実装
Copy link
Member

Choose a reason for hiding this comment

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

インターフェースなことは見ればわかりそうなのでコメントなくても良さそう

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.

3 participants