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.
27 lines
668 B
27 lines
668 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 AreaInfoParam |
|
// @router post /openplatform/internal/ticket/item/areaInfo |
|
// @response AreaInfoReply |
|
func areaInfo(c *bm.Context) { |
|
arg := new(model.AreaInfoParam) |
|
if err := c.Bind(arg); err != nil { |
|
errors.Wrap(err, "参数验证失败") |
|
return |
|
} |
|
c.JSON(itemSvc.AreaInfo(c, &item.AreaInfoRequest{ |
|
ID: arg.ID, |
|
AID: arg.AID, |
|
Name: arg.Name, |
|
Place: arg.Place, |
|
Coordinate: arg.Coordinate, |
|
})) |
|
}
|
|
|