Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonService ¶
type CommonService[T model.Entity] interface { GetAll(ctx context.Context) ([]T, error) GetByFilter(ctx context.Context, filter map[string]interface{}) ([]T, error) GetByID(ctx context.Context, id string) (T, error) Create(ctx context.Context, entity T) error Update(ctx context.Context, id string, entity T) error Delete(ctx context.Context, id string) error }
func NewService ¶
func NewService[T model.Entity](repo repo.CommonRepository[T]) CommonService[T]
Click to show internal directories.
Click to hide internal directories.