Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHistoryDiff ¶
func CheckHistoryDiff(newDtos, currentDtos []*dao.UserJankenSessionHistory) (upserted []*dao.UserJankenSessionHistory, deleted []*dao.UserJankenSessionHistory)
CheckHistoryDiff は、新しい履歴と現在の履歴を比較して、作成/更新/削除された履歴を仕分けます。
func NewRepository ¶
func NewRepository() repository.JankenSessionRepository
Types ¶
type Repository ¶
type Repository struct{}
func (Repository) Get ¶
func (r Repository) Get(ctx context.Context, tx transaction.Transaction, gameSessionID uuid.UUID) (model.JankenSession, error)
func (Repository) Save ¶
func (r Repository) Save(ctx context.Context, tx transaction.Transaction, session model.JankenSession) error
Click to show internal directories.
Click to hide internal directories.