30 lines
557 B
Go
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,
|
|
}
|
|
}
|