package front import ( "github.com/gin-gonic/gin" "qteam/app/http/controllers" "qteam/app/http/entities/front" "qteam/app/services" ) func ProductDetail(c *gin.Context) { var request = controllers.GetRequest(c).(*front.ProductDetailRequest) code, product := services.ProductDetail(*request) var response = front.ProductDetailResponse{} response.ResponseFromDb(product) controllers.HandCodeRes(c, response, code) }