Versions in this module Expand all Collapse all v1 v1.0.1 Sep 25, 2025 v1.0.0 Sep 25, 2025 Changes in this version + type IUserRepository interface + Create func(ctx context.Context, user *model.User) (*model.User, error) + Get func(ctx context.Context, id int64) (*model.User, error) + GetByUsername func(ctx context.Context, username string) (*model.User, error) + GetUsers func(ctx context.Context, arg ...func(*gorm.DB)) ([]*model.User, error) + type UserRepository struct + func NewUserRepository(db *gorm.DB) *UserRepository + func (u *UserRepository) Create(ctx context.Context, user *model.User) (*model.User, error) + func (u *UserRepository) Get(ctx context.Context, id int64) (*model.User, error) + func (u *UserRepository) GetByUsername(ctx context.Context, username string) (*model.User, error) + func (u *UserRepository) GetUsers(ctx context.Context, arg ...func(*gorm.DB)) ([]*model.User, error)