You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
707 B

package http
import (
item "go-common/app/service/openplatform/ticket-item/api/grpc/v1"
"go-common/app/service/openplatform/ticket-item/model"
bm "go-common/library/net/http/blademaster"
"github.com/pkg/errors"
)
// @params PlaceInfoParam
// @router post /openplatform/internal/ticket/item/placeInfo
// @response PlaceInfoReply
func placeInfo(c *bm.Context) {
arg := new(model.PlaceInfoParam)
if err := c.Bind(arg); err != nil {
errors.Wrap(err, "参数验证失败")
return
}
c.JSON(itemSvc.PlaceInfo(c, &item.PlaceInfoRequest{
ID: arg.ID,
Status: arg.Status,
Name: arg.Name,
BasePic: arg.BasePic,
Venue: arg.Venue,
DWidth: arg.DWidth,
DHeight: arg.DHeight,
}))
}