repository

package
v0.0.0-...-b114a09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DutyHistoryRepository

type DutyHistoryRepository struct {
	// contains filtered or unexported fields
}

func NewDutyHistoryRepository

func NewDutyHistoryRepository(db *sqlx.DB) *DutyHistoryRepository

func (*DutyHistoryRepository) Create

func (r *DutyHistoryRepository) Create(ctx context.Context, memberID int, assignedOn time.Time) error

func (*DutyHistoryRepository) Delete

func (r *DutyHistoryRepository) Delete(ctx context.Context, id int) error

func (*DutyHistoryRepository) GetLatestDutyMember

func (r *DutyHistoryRepository) GetLatestDutyMember(ctx context.Context) (*entity.DutyHistory, error)

func (*DutyHistoryRepository) GetSkipped

func (*DutyHistoryRepository) Skip

func (r *DutyHistoryRepository) Skip(ctx context.Context, id int) error

type MemberRepository

type MemberRepository struct {
	// contains filtered or unexported fields
}

func NewMemberRepository

func NewMemberRepository(db *sqlx.DB) *MemberRepository

func (*MemberRepository) Get

func (r *MemberRepository) Get(ctx context.Context, id int) (*entity.Member, error)

func (*MemberRepository) GetNext

func (r *MemberRepository) GetNext(ctx context.Context, id int) (*entity.Member, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL