Documentation ¶
Overview ¶
Package devicemaker present full API functionality of the specific object
Package devicemaker present full API functionality of the specific object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { ID []uint64 Name []string Active *types.ActiveStatus }
Filter of the objects list
type ListOrder ¶
type ListOrder struct { ID models.Order Name models.Order Active models.Order CreatedAt models.Order UpdatedAt models.Order }
ListOrder of the objects list
type Repository ¶
type Repository interface { Get(ctx context.Context, id uint64, preloads ...string) (*models.DeviceMaker, error) FetchList(ctx context.Context, qops ...Option) ([]*models.DeviceMaker, error) Count(ctx context.Context, qops ...Option) (int64, error) Create(ctx context.Context, object *models.DeviceMaker) (uint64, error) Update(ctx context.Context, id uint64, object *models.DeviceMaker) error Delete(ctx context.Context, id uint64) error }
Repository of access to the devicemaker
type Usecase ¶
type Usecase interface { Get(ctx context.Context, id uint64) (*models.DeviceMaker, error) FetchList(ctx context.Context, qops ...Option) ([]*models.DeviceMaker, error) Count(ctx context.Context, qops ...Option) (int64, error) Create(ctx context.Context, object *models.DeviceMaker) (uint64, error) Update(ctx context.Context, id uint64, object *models.DeviceMaker) error Delete(ctx context.Context, id uint64, msg *string) error }
usecase of access to the devicemaker
Click to show internal directories.
Click to hide internal directories.