subject.proto 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 SubjectItem {
  11. int64 ID = 1 [(gogoproto.jsontag) ="id"];
  12. int64 Oid = 2 [(gogoproto.jsontag) ="oid"];
  13. int64 Type = 3 [(gogoproto.jsontag) ="type"];
  14. int64 State = 4 [(gogoproto.jsontag) ="state"];
  15. int64 Stime = 5 [(gogoproto.jsontag) ="stime", (gogoproto.casttype) = "go-common/library/time.Time"];
  16. int64 Etime = 6 [(gogoproto.jsontag) ="etime", (gogoproto.casttype) = "go-common/library/time.Time"];
  17. int64 Ctime = 7 [(gogoproto.jsontag) ="ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  18. int64 Mtime = 8 [(gogoproto.jsontag) ="mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  19. string Name = 9 [(gogoproto.jsontag) ="name"];
  20. string Author = 10 [(gogoproto.jsontag) ="author"];
  21. string ActURL = 11 [(gogoproto.jsontag) ="act_url"];
  22. int64 Lstime = 12 [(gogoproto.jsontag) ="lstime", (gogoproto.casttype) = "go-common/library/time.Time"];
  23. int64 Letime = 13 [(gogoproto.jsontag) ="letime", (gogoproto.casttype) = "go-common/library/time.Time"];
  24. string Cover = 14 [(gogoproto.jsontag) ="cover"];
  25. string Dic = 15 [(gogoproto.jsontag) ="dic"];
  26. int64 Flag = 16 [(gogoproto.jsontag) ="flag"];
  27. int64 Uetime = 17 [(gogoproto.jsontag) ="uetime", (gogoproto.casttype) = "go-common/library/time.Time"];
  28. int64 Ustime = 18 [(gogoproto.jsontag) ="ustime", (gogoproto.casttype) = "go-common/library/time.Time"];
  29. int64 Level = 19 [(gogoproto.jsontag) ="level"];
  30. string H5_cover = 20 [(gogoproto.jsontag) ="h5_cover"];
  31. int64 Rank = 21 [(gogoproto.jsontag) ="rank"];
  32. int64 LikeLimit = 22 [(gogoproto.jsontag) ="like_limit"];
  33. string AndroidURL = 23 [(gogoproto.jsontag) = "android_url"];
  34. string IosURL = 24 [(gogoproto.jsontag) = "ios_url"];
  35. int64 DailyLikeLimit = 25 [(gogoproto.jsontag) ="daily_like_limit"];
  36. int64 DailySingleLikeLimit = 26 [(gogoproto.jsontag) ="daily_single_like_limit"];
  37. }
  38. message LikeContent {
  39. int64 ID = 1 [(gogoproto.jsontag) ="id"];
  40. string Message = 2 [(gogoproto.jsontag) ="message"];
  41. int64 IP = 3 [(gogoproto.jsontag) ="ip"];
  42. int64 Plat = 4 [(gogoproto.jsontag) ="plat"];
  43. int64 Device = 5 [(gogoproto.jsontag) ="device"];
  44. int64 Ctime = 6 [(gogoproto.jsontag) ="ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  45. int64 Mtime = 7 [(gogoproto.jsontag) ="mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  46. string Image = 8 [(gogoproto.jsontag) ="image"];
  47. string Reply = 9 [(gogoproto.jsontag) ="reply"];
  48. string Link = 10 [(gogoproto.jsontag) ="link"];
  49. string ExName = 11 [(gogoproto.jsontag) ="ex_name"];
  50. }
  51. message ActSubjectProtocol {
  52. int64 ID = 1 [(gogoproto.jsontag) ="id"];
  53. int64 Sid = 2 [(gogoproto.jsontag) ="sid"];
  54. string Protocol = 3 [(gogoproto.jsontag) ="protocol"];
  55. int64 Mtime = 4 [(gogoproto.jsontag) ="mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  56. int64 Ctime = 5 [(gogoproto.jsontag) ="ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  57. string Types = 6 [(gogoproto.jsontag) ="types"];
  58. string Tags = 7 [(gogoproto.jsontag) ="tags"];
  59. int64 Pubtime = 8 [(gogoproto.jsontag) ="pubtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  60. int64 Deltime = 9 [(gogoproto.jsontag) ="deltime", (gogoproto.casttype) = "go-common/library/time.Time"];
  61. int64 Editime = 10 [(gogoproto.jsontag) ="editime", (gogoproto.casttype) = "go-common/library/time.Time"];
  62. int64 Hot = 11 [(gogoproto.jsontag) ="hot"];
  63. int64 BgmID = 12 [(gogoproto.jsontag) ="bgm_id"];
  64. int64 PasterID = 13 [(gogoproto.jsontag) ="paster_id"];
  65. string Oids = 14 [(gogoproto.jsontag) ="oids"];
  66. int64 ScreenSet = 15 [(gogoproto.jsontag) ="screen_set"];
  67. }