Documentation ¶
Index ¶
- func Init(api *operations.TutorAPI, db *ent.Client)
- type Service
- func (s *Service) CreateType(ctx context.Context, category *ent.EventType) (*ent.EventType, error)
- func (s *Service) DeleteTypeByID(ctx context.Context, id uuid.UUID) error
- func (s *Service) ListType(ctx context.Context) ([]*ent.EventType, error)
- func (s *Service) ListTypeEventsByID(ctx context.Context, id uuid.UUID) ([]*ent.Event, error)
- func (s *Service) ReadTypeByID(ctx context.Context, id uuid.UUID) (*ent.EventType, error)
- func (s *Service) UpdateTypeByID(ctx context.Context, id uuid.UUID, category *ent.EventType) (*ent.EventType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
Type *ent.EventTypeClient
}
Service holds an ent event type client.
func (*Service) CreateType ¶
CreateType returns a new created type or an error.
func (*Service) DeleteTypeByID ¶
DeleteTypeByID returns an error.
func (*Service) ListTypeEventsByID ¶
ListTypeEventsByID returns an event list with a certain type or an error.
func (*Service) ReadTypeByID ¶
ReadTypeByID returns a type or an error.
Click to show internal directories.
Click to hide internal directories.