message.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. message UpSpecial {
  5. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  6. int64 GroupID = 2 [(gogoproto.jsontag) = "group_id"];
  7. string GroupName = 3 [(gogoproto.jsontag) = "group_name"];
  8. string GroupTag = 4 [(gogoproto.jsontag) = "group_tag"];
  9. int64 Mid = 5 [(gogoproto.jsontag) = "mid"];
  10. string Note = 6 [(gogoproto.jsontag) = "note"];
  11. int64 CTime = 7 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  12. int64 UID = 8 [(gogoproto.jsontag) = "uid"];
  13. int64 MTime = 9 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  14. string FontColor = 10 [(gogoproto.jsontag) = "font_color"];
  15. string BgColor = 11 [(gogoproto.jsontag) = "bg_color"];
  16. }
  17. message UpInfo {
  18. int32 isAuthor = 1 [(gogoproto.jsontag) = "isAuthor"];
  19. }
  20. message UpGroup {
  21. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  22. string name = 2 [(gogoproto.jsontag) = "name"];
  23. string tag = 3 [(gogoproto.jsontag) = "tag"];
  24. string short_tag = 4 [(gogoproto.jsontag) = "short_tag"];
  25. string remark = 5 [(gogoproto.jsontag) = "remark"];
  26. int32 state = 6 [(gogoproto.jsontag) = "state"];
  27. string FontColor = 7 [(gogoproto.jsontag) = "font_color"];
  28. string BgColor = 8 [(gogoproto.jsontag) = "bg_color"];
  29. }
  30. message UpBaseStat {
  31. int64 View = 1 [(gogoproto.jsontag) = "view"];
  32. int64 Reply =2[(gogoproto.jsontag) ="reply"];
  33. int64 Dm =3 [(gogoproto.jsontag) ="dm"];
  34. int64 Fans = 4 [(gogoproto.jsontag) ="fans"];
  35. int64 Fav = 5[(gogoproto.jsontag) ="fav"];
  36. int64 Like = 6 [(gogoproto.jsontag) ="like"];
  37. }
  38. message PBSetUpSwitchRes {
  39. int64 id = 1 [(gogoproto.jsontag) = "id"];
  40. }
  41. message PBUpSwitch {
  42. int32 state = 1 [(gogoproto.jsontag) = "state"];
  43. }