Documentation ¶
Index ¶
- type Filter
- type Item
- type Repository
- type Service
- func (s *Service) Create(ctx context.Context, item *Item) (*uuid.UUID, error)
- func (s *Service) Delete(ctx context.Context, id *uuid.UUID) error
- func (s *Service) Get(ctx context.Context, filter *Filter) (*Item, error)
- func (s *Service) GetDefault() *Item
- func (s *Service) List(ctx context.Context, filter *Filter) (*map[uuid.UUID]Item, error)
- func (s *Service) MaxSortOrder(ctx context.Context) (*uint64, error)
- func (s *Service) Patch(ctx context.Context, id *uuid.UUID, fields *map[string]interface{}) error
- func (s *Service) TableIndexCount(ctx context.Context) (*uint64, error)
- func (s *Service) Update(ctx context.Context, item *Item) error
- func (s *Service) UpdatedAt(ctx context.Context, id *uuid.UUID) (*time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter = db.CurrencyFilter
type Repository ¶
type Repository interface { Get(ctx context.Context, filter *Filter) (*Item, error) GetDefault() *Item List(ctx context.Context, filter *Filter) (*map[uuid.UUID]Item, error) Create(ctx context.Context, item *Item) (*uuid.UUID, error) Update(ctx context.Context, item *Item) error Patch(ctx context.Context, id *uuid.UUID, fields *map[string]interface{}) error UpdatedAt(ctx context.Context, id *uuid.UUID) (*time.Time, error) TableIndexCount(ctx context.Context) (*uint64, error) MaxSortOrder(ctx context.Context) (*uint64, error) Delete(ctx context.Context, id *uuid.UUID) error }
Click to show internal directories.
Click to hide internal directories.