match.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. syntax = "proto3";
  2. package activity.service;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "like";
  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. message Match {
  11. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  12. int64 Sid = 2 [(gogoproto.jsontag) = "sid"];
  13. int64 MaxStake = 3 [(gogoproto.jsontag) = "max_stake"];
  14. int64 Stake = 4 [(gogoproto.jsontag) = "stake"];
  15. string Name = 5 [(gogoproto.jsontag) = "name"];
  16. string Url = 6 [(gogoproto.jsontag) = "url"];
  17. string Cover = 7 [(gogoproto.jsontag) = "cover"];
  18. int64 Ctime = 8 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  19. int64 Mtime = 9 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  20. }
  21. message MatchList {
  22. repeated Match matchList = 1;
  23. }
  24. message Object {
  25. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  26. int64 MatchId = 2 [(gogoproto.jsontag) = "match_id"];
  27. int64 Sid = 3 [(gogoproto.jsontag) = "sid"];
  28. string HomeName = 4 [(gogoproto.jsontag) = "home_name"];
  29. string HomeLogo = 5 [(gogoproto.jsontag) = "home_logo"];
  30. int64 HomeScore = 6 [(gogoproto.jsontag) = "home_score"];
  31. string AwayName = 7 [(gogoproto.jsontag) = "away_name"];
  32. string AwayLogo = 8 [(gogoproto.jsontag) = "away_logo"];
  33. int64 AwayScore = 9 [(gogoproto.jsontag) = "away_score"];
  34. int64 Result = 10 [(gogoproto.jsontag) = "result"];
  35. int64 Ctime = 11 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  36. int64 Mtime = 12 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  37. int64 Stime = 13 [(gogoproto.jsontag) = "stime", (gogoproto.casttype) = "go-common/library/time.Time"];
  38. int64 Etime = 14 [(gogoproto.jsontag) = "etime", (gogoproto.casttype) = "go-common/library/time.Time"];
  39. int64 UserResult = 15 [(gogoproto.jsontag) = "user_result"];
  40. int64 GameStime = 16 [(gogoproto.jsontag) = "game_stime", (gogoproto.casttype) = "go-common/library/time.Time"];
  41. string MatchName = 17 [(gogoproto.jsontag) = "match_name,omitempty"];
  42. }
  43. message UserLog {
  44. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  45. int64 MatchId = 2 [(gogoproto.jsontag) = "match_id"];
  46. int64 MOId = 3 [(gogoproto.jsontag) = "m_o_id"];
  47. int64 Sid = 4 [(gogoproto.jsontag) = "sid"];
  48. int64 Mid = 5 [(gogoproto.jsontag) = "mid"];
  49. int64 Result = 6 [(gogoproto.jsontag) = "result"];
  50. int64 Stake = 7 [(gogoproto.jsontag) = "stake"];
  51. int64 Ctime = 8 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  52. int64 Mtime = 9 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  53. int64 ObjResult = 10 [(gogoproto.jsontag) = "obj_result"];
  54. string HomeName = 11 [(gogoproto.jsontag) = "home_name"];
  55. string AwayName = 12 [(gogoproto.jsontag) = "away_name"];
  56. int64 GameStime = 13 [(gogoproto.jsontag) = "game_stime", (gogoproto.casttype) = "go-common/library/time.Time"];
  57. }
  58. message UserGuess {
  59. int64 Total = 1 [(gogoproto.jsontag) = "total"];
  60. int64 Win = 2 [(gogoproto.jsontag) = "win"];
  61. }