Documentation
¶
Index ¶
- type BaseUsecase
- func (u *BaseUsecase[E, T]) Add(ctx context.Context, do E) (E, error)
- func (u *BaseUsecase[E, T]) Delete(ctx context.Context, id uint64) error
- func (u *BaseUsecase[E, T]) DeleteByIDs(ctx context.Context, ids []uint64) error
- func (u *BaseUsecase[E, T]) Edit(ctx context.Context, m map[string]any) (E, error)
- func (u *BaseUsecase[E, T]) Find(ctx context.Context, id uint64, lockMode ...repo.LockMode) (E, error)
- func (u *BaseUsecase[E, T]) FindByField(ctx context.Context, fieldName string, fieldValue any, args ...any) (E, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseUsecase ¶
func (*BaseUsecase[E, T]) Add ¶
func (u *BaseUsecase[E, T]) Add(ctx context.Context, do E) (E, error)
func (*BaseUsecase[E, T]) Delete ¶
func (u *BaseUsecase[E, T]) Delete(ctx context.Context, id uint64) error
func (*BaseUsecase[E, T]) DeleteByIDs ¶
func (u *BaseUsecase[E, T]) DeleteByIDs(ctx context.Context, ids []uint64) error
func (*BaseUsecase[E, T]) FindByField ¶
Click to show internal directories.
Click to hide internal directories.