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 Usecase struct + func New() *Usecase + func (u *Usecase) Count(ctx context.Context, qops ...devicemodel.Option) (int64, error) + func (u *Usecase) Create(ctx context.Context, object *models.DeviceModel) (uint64, error) + func (u *Usecase) Delete(ctx context.Context, id uint64, msg *string) error + func (u *Usecase) FetchList(ctx context.Context, qops ...devicemodel.Option) ([]*models.DeviceModel, error) + func (u *Usecase) Get(ctx context.Context, id uint64) (*models.DeviceModel, error) + func (u *Usecase) GetByCodename(ctx context.Context, codename string) (*models.DeviceModel, error) + func (u *Usecase) Update(ctx context.Context, id uint64, object *models.DeviceModel) error