Documentation
¶
Index ¶
- type Handlers
- func (h *Handlers) Create(c echo.Context) error
- func (h *Handlers) Delete(c echo.Context) error
- func (h *Handlers) GetByID(c echo.Context) error
- func (h *Handlers) List(c echo.Context) error
- func (h *Handlers) RegisterRoutes(g *echo.Group, rbacMiddleware *middleware.RBACMiddleware)
- func (h *Handlers) Update(c echo.Context) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers provides HTTP handlers for comment management
func (*Handlers) RegisterRoutes ¶
func (h *Handlers) RegisterRoutes(g *echo.Group, rbacMiddleware *middleware.RBACMiddleware)
RegisterRoutes registers the comment routes
type Service ¶
type Service interface {
// Create creates a new comment
Create(ctx context.Context, req models.CommentRequest, userID uuid.UUID) (*models.CommentResponse, error)
// GetByID retrieves a comment by ID
GetByID(ctx context.Context, id uuid.UUID) (*models.CommentResponse, error)
// List retrieves comments based on filter parameters
List(ctx context.Context, params models.CommentListParams) ([]models.CommentResponse, int, error)
// Update updates a comment
Update(ctx context.Context, id uuid.UUID, req models.CommentRequest) (*models.CommentResponse, error)
// Delete deletes a comment
Delete(ctx context.Context, id uuid.UUID) error
}
Service provides comment management functionality
func NewService ¶
func NewService( commentRepo repository.CommentRepository, taskRepo repository.TaskRepository, userRepo repository.UserRepository, notificationSvc notification.Service, ) Service
NewService creates a new comment service
Click to show internal directories.
Click to hide internal directories.