in cmd/controller/catalog.go [104:117]
func (c *CatalogController) QueryDetail(ctx *gin.Context) {
eventID := gconv.Int(ctx.Param(eventIDParam))
res, err := c.catalogDAL.Select(ctx, eventID)
if err != nil {
ctx.JSON(http.StatusInternalServerError, err.Error())
return
}
if res == nil {
ctx.JSON(http.StatusOK, nil)
return
}
ctx.JSON(http.StatusOK, &QueryEventResponse{Event: *res})
return
}