1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- syntax = "proto3";
- package ticket.service.item.v1;
- import "github.com/gogo/protobuf/gogoproto/gogo.proto";
- import "app/service/openplatform/ticket-item/api/grpc/v1/place.proto";
- option (gogoproto.goproto_enum_prefix_all) = false;
- option (gogoproto.goproto_getters_all) = false;
- option (gogoproto.unmarshaler_all) = true;
- option (gogoproto.marshaler_all) = true;
- option (gogoproto.sizer_all) = true;
- option go_package = "v1";
- service Venue {
- rpc VenueInfo (VenueInfoRequest) returns (VenueInfoReply) {}
- }
- message VenueInfo {
- int64 id = 1 [(gogoproto.jsontag) = "id",(gogoproto.customname)= "ID"];
- string name = 2 [(gogoproto.jsontag) = "name"];
- int32 status= 3 [(gogoproto.jsontag) = "status"];
- VenueAddrInfo addrInfo = 4 [(gogoproto.jsontag) = "addr"];
- PlaceInfo place_info = 5 [(gogoproto.jsontag) = "place"];
- }
- message VenueAddrInfo {
- int64 province = 1 [(gogoproto.jsontag) = "provid"];
- int64 city = 2 [(gogoproto.jsontag) = "cityid"];
- int64 district = 3 [(gogoproto.jsontag) = "distid"];
- string addressDetail = 4 [(gogoproto.jsontag) = "addr"];
- string traffic = 5 [(gogoproto.jsontag) = "traff"];
- string lon_lat_type = 6 [(gogoproto.jsontag) = "lonlat_type"];
- string lonLat = 7 [(gogoproto.jsontag) = "lonlat"];
- }
- message VenueInfoRequest {
-
- int64 ID = 1 [(gogoproto.jsontag) = "id", (gogoproto.moretags) = "validate:\"min=0\""];
-
- string Name = 2 [(gogoproto.jsontag) = "name", (gogoproto.moretags) = "validate:\"max=25\""];
-
- int32 Status = 3 [(gogoproto.jsontag) = "status", (gogoproto.moretags) = "validate:\"min=0,max=1\""];
-
- int64 Province = 4 [(gogoproto.jsontag) = "provid", (gogoproto.moretags) = "validate:\"min=0\""];
-
- int64 City = 5 [(gogoproto.jsontag) = "cityid", (gogoproto.moretags) = "validate:\"min=0\""];
-
- int64 District = 6 [(gogoproto.jsontag) = "distid", (gogoproto.moretags) = "validate:\"min=0\""];
-
- string AddressDetail = 7 [(gogoproto.jsontag) = "addr", (gogoproto.moretags) = "validate:\"min=0,max=60\""];
-
- string Traffic = 8 [(gogoproto.jsontag) = "traff", (gogoproto.moretags) = "validate:\"min=0,max=100\""];
- }
- message VenueInfoReply {
-
- bool Success = 1 [(gogoproto.jsontag) = "success"];
-
- int64 ID = 2 [(gogoproto.jsontag) = "id"];
- }
|