Versions in this module Expand all Collapse all v0 v0.1.2 May 2, 2025 v0.1.1 Apr 22, 2025 Changes in this version + type Filter struct + Active *types.ActiveStatus + Codename []string + ID []uint64 + Name []string + func (fl *Filter) PrepareQuery(query *gorm.DB) *gorm.DB + type ListOrder struct + Active models.Order + Codename models.Order + CreatedAt models.Order + ID models.Order + Name models.Order + UpdatedAt models.Order + func (ol *ListOrder) PrepareQuery(query *gorm.DB) *gorm.DB + type Option = repository.QOption + type Options = repository.ListOptions + type Repository interface + Count func(ctx context.Context, qops ...Option) (int64, error) + Create func(ctx context.Context, object *models.DeviceMaker) (uint64, error) + Delete func(ctx context.Context, id uint64) error + FetchList func(ctx context.Context, qops ...Option) ([]*models.DeviceMaker, error) + Get func(ctx context.Context, id uint64, preloads ...string) (*models.DeviceMaker, error) + GetByCodename func(ctx context.Context, codename string, preloads ...string) (*models.DeviceMaker, error) + Update func(ctx context.Context, id uint64, object *models.DeviceMaker) error + type Usecase interface + Count func(ctx context.Context, qops ...Option) (int64, error) + Create func(ctx context.Context, object *models.DeviceMaker) (uint64, error) + Delete func(ctx context.Context, id uint64, msg *string) error + FetchList func(ctx context.Context, qops ...Option) ([]*models.DeviceMaker, error) + Get func(ctx context.Context, id uint64) (*models.DeviceMaker, error) + GetByCodename func(ctx context.Context, codename string) (*models.DeviceMaker, error) + Update func(ctx context.Context, id uint64, object *models.DeviceMaker) error