place.go 707 B

1234567891011121314151617181920212223242526272829
  1. package http
  2. import (
  3. item "go-common/app/service/openplatform/ticket-item/api/grpc/v1"
  4. "go-common/app/service/openplatform/ticket-item/model"
  5. bm "go-common/library/net/http/blademaster"
  6. "github.com/pkg/errors"
  7. )
  8. // @params PlaceInfoParam
  9. // @router post /openplatform/internal/ticket/item/placeInfo
  10. // @response PlaceInfoReply
  11. func placeInfo(c *bm.Context) {
  12. arg := new(model.PlaceInfoParam)
  13. if err := c.Bind(arg); err != nil {
  14. errors.Wrap(err, "参数验证失败")
  15. return
  16. }
  17. c.JSON(itemSvc.PlaceInfo(c, &item.PlaceInfoRequest{
  18. ID: arg.ID,
  19. Status: arg.Status,
  20. Name: arg.Name,
  21. BasePic: arg.BasePic,
  22. Venue: arg.Venue,
  23. DWidth: arg.DWidth,
  24. DHeight: arg.DHeight,
  25. }))
  26. }