Documentation ¶
Index ¶
- type CreateDTO
- type DTO
- type Repository
- func (r *Repository) Create(ctx context.Context, room Room) (Room, error)
- func (r *Repository) Delete(ctx context.Context, ID uuid.UUID) error
- func (r *Repository) FindAll(ctx context.Context) ([]Room, error)
- func (r *Repository) FindByID(ctx context.Context, ID uuid.UUID) (Room, error)
- func (r *Repository) Update(ctx context.Context, ID uuid.UUID, room Room) (Room, error)
- type Room
- type UpdateDTO
- type UseCase
- func (u *UseCase) Create(ctx context.Context, room Room) (Room, error)
- func (u *UseCase) Delete(ctx context.Context, ID uuid.UUID) error
- func (u *UseCase) FindAll(ctx context.Context) ([]Room, error)
- func (u *UseCase) FindByID(ctx context.Context, ID uuid.UUID) (Room, error)
- func (u *UseCase) Update(ctx context.Context, ID uuid.UUID, room Room) (Room, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DTO ¶
type DTO struct { ID uuid.UUID `json:"id,string,omitempty"` Name string `json:"name"` Status string `json:"status"` TeamID string `json:"team_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
DTO -
type Repository ¶
Repository -
func (*Repository) FindAll ¶
func (r *Repository) FindAll(ctx context.Context) ([]Room, error)
FindAll -
type Room ¶
type Room struct { ID uuid.UUID `db:"id"` Name string `db:"name"` Status string `db:"status"` TeamID string `db:"team_id"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` }
Room -
Click to show internal directories.
Click to hide internal directories.