venue.proto 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. syntax = "proto3";
  2. package ticket.service.item.v1;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. import "app/service/openplatform/ticket-item/api/grpc/v1/place.proto";
  5. option (gogoproto.goproto_enum_prefix_all) = false;
  6. option (gogoproto.goproto_getters_all) = false;
  7. option (gogoproto.unmarshaler_all) = true;
  8. option (gogoproto.marshaler_all) = true;
  9. option (gogoproto.sizer_all) = true;
  10. option go_package = "v1";
  11. // The venue service definition.
  12. service Venue {
  13. rpc VenueInfo (VenueInfoRequest) returns (VenueInfoReply) {}
  14. }
  15. // The response message containing the VenueInfo
  16. message VenueInfo {
  17. int64 id = 1 [(gogoproto.jsontag) = "id",(gogoproto.customname)= "ID"];
  18. string name = 2 [(gogoproto.jsontag) = "name"];
  19. int32 status= 3 [(gogoproto.jsontag) = "status"];
  20. VenueAddrInfo addrInfo = 4 [(gogoproto.jsontag) = "addr"];
  21. PlaceInfo place_info = 5 [(gogoproto.jsontag) = "place"];
  22. }
  23. // The response message containing the Venue location info
  24. message VenueAddrInfo {
  25. int64 province = 1 [(gogoproto.jsontag) = "provid"];
  26. int64 city = 2 [(gogoproto.jsontag) = "cityid"];
  27. int64 district = 3 [(gogoproto.jsontag) = "distid"];
  28. string addressDetail = 4 [(gogoproto.jsontag) = "addr"];
  29. string traffic = 5 [(gogoproto.jsontag) = "traff"];
  30. string lon_lat_type = 6 [(gogoproto.jsontag) = "lonlat_type"];
  31. string lonLat = 7 [(gogoproto.jsontag) = "lonlat"];
  32. }
  33. // venueInfo接口请求
  34. message VenueInfoRequest {
  35. // 待修改场馆的ID(为0表示创建)
  36. int64 ID = 1 [(gogoproto.jsontag) = "id", (gogoproto.moretags) = "validate:\"min=0\""];
  37. // 场馆名
  38. string Name = 2 [(gogoproto.jsontag) = "name", (gogoproto.moretags) = "validate:\"max=25\""];
  39. // 状态 1-启用 0-停用
  40. int32 Status = 3 [(gogoproto.jsontag) = "status", (gogoproto.moretags) = "validate:\"min=0,max=1\""];
  41. // 省份ID
  42. int64 Province = 4 [(gogoproto.jsontag) = "provid", (gogoproto.moretags) = "validate:\"min=0\""];
  43. // 城市ID
  44. int64 City = 5 [(gogoproto.jsontag) = "cityid", (gogoproto.moretags) = "validate:\"min=0\""];
  45. // 区县ID
  46. int64 District = 6 [(gogoproto.jsontag) = "distid", (gogoproto.moretags) = "validate:\"min=0\""];
  47. // 详细地址
  48. string AddressDetail = 7 [(gogoproto.jsontag) = "addr", (gogoproto.moretags) = "validate:\"min=0,max=60\""];
  49. // 交通信息
  50. string Traffic = 8 [(gogoproto.jsontag) = "traff", (gogoproto.moretags) = "validate:\"min=0,max=100\""];
  51. }
  52. // venue接口返回
  53. message VenueInfoReply {
  54. // 操作结果
  55. bool Success = 1 [(gogoproto.jsontag) = "success"];
  56. // 操作场馆ID
  57. int64 ID = 2 [(gogoproto.jsontag) = "id"];
  58. }