Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Count(ctx context.Context, qops ...devicemaker.Option) (count int64, err error)
- func (r *Repository) Create(ctx context.Context, object *models.DeviceMaker) (uint64, error)
- func (r *Repository) Delete(ctx context.Context, id uint64) error
- func (r *Repository) FetchList(ctx context.Context, qops ...devicemaker.Option) (list []*models.DeviceMaker, err error)
- func (r *Repository) Get(ctx context.Context, id uint64, preloads ...string) (*models.DeviceMaker, error)
- func (r *Repository) Update(ctx context.Context, id uint64, object *models.DeviceMaker) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { repository.Repository // contains filtered or unexported fields }
func (*Repository) Count ¶
func (r *Repository) Count(ctx context.Context, qops ...devicemaker.Option) (count int64, err error)
func (*Repository) Create ¶
func (r *Repository) Create(ctx context.Context, object *models.DeviceMaker) (uint64, error)
func (*Repository) FetchList ¶
func (r *Repository) FetchList(ctx context.Context, qops ...devicemaker.Option) (list []*models.DeviceMaker, err error)
func (*Repository) Get ¶
func (r *Repository) Get(ctx context.Context, id uint64, preloads ...string) (*models.DeviceMaker, error)
func (*Repository) Update ¶
func (r *Repository) Update(ctx context.Context, id uint64, object *models.DeviceMaker) error
Click to show internal directories.
Click to hide internal directories.