Files
cybertron/internal/transport/handler/houston.go
2024-09-12 02:59:54 +05:30

30 lines
557 B
Go

package handler
import (
"cybertron/service"
"github.com/gin-gonic/gin"
)
type HoustonHandler struct {
houstonService *service.HoustonService
}
func (h *HoustonHandler) CreateHouston(c *gin.Context) {
h.houstonService.CreateHouston(c)
}
func (h *HoustonHandler) GetProducts(c *gin.Context) {
h.houstonService.GetProducts(c)
}
func (h *HoustonHandler) GetResponderTeam(c *gin.Context) {
h.houstonService.GetResponderTeam(c)
}
func NewHoustonHandler(s *service.HoustonService) *HoustonHandler {
return &HoustonHandler{
houstonService: s,
}
}