dm.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option (gogoproto.goproto_enum_prefix_all) = false;
  5. option (gogoproto.goproto_getters_all) = false;
  6. option (gogoproto.unmarshaler_all) = true;
  7. option (gogoproto.marshaler_all) = true;
  8. option (gogoproto.sizer_all) = true;
  9. message DM {
  10. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  11. int32 Type = 2 [(gogoproto.jsontag) = "type"];
  12. int64 Oid = 3 [(gogoproto.jsontag) = "oid"];
  13. int64 Mid = 4 [(gogoproto.jsontag) = "mid"];
  14. int32 Progress = 5 [(gogoproto.jsontag) = "progress"];
  15. int32 Pool = 6 [(gogoproto.jsontag) = "pool"];
  16. int32 Attr = 7 [(gogoproto.jsontag) = "attr"];
  17. int32 State = 8 [(gogoproto.jsontag) = "state"];
  18. int64 Ctime = 9 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "stime"];
  19. int64 Mtime = 10 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "stime"];
  20. Content Content = 11 [(gogoproto.jsontag) = "content,omitempty"];
  21. ContentSpecial ContentSpe = 12 [(gogoproto.jsontag) = "content_special,omitempty"];
  22. }
  23. message Content {
  24. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  25. int32 FontSize = 2 [(gogoproto.jsontag) = "fontsize"];
  26. int64 Color = 3 [(gogoproto.jsontag) = "color"];
  27. int32 Mode = 4 [(gogoproto.jsontag) = "mode"];
  28. int64 IP = 5 [(gogoproto.jsontag) = "ip"];
  29. int32 Plat = 6 [(gogoproto.jsontag) = "plat"];
  30. string Msg = 7 [(gogoproto.jsontag) = "msg"];
  31. int64 Ctime = 8 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  32. int64 Mtime = 9 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  33. }
  34. message ContentSpecial {
  35. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  36. string Msg = 2 [(gogoproto.jsontag) = "msg"];
  37. int64 Ctime = 3 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  38. int64 Mtime = 4 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  39. }
  40. message Elem {
  41. string Attribute = 1 [(gogoproto.jsontag) = "attribute,omitempty"];
  42. string Content = 2 [(gogoproto.jsontag) = "content,omitempty"];
  43. }
  44. message DMSeg {
  45. repeated Elem Elems = 1 [(gogoproto.jsontag) = "dms"];
  46. repeated string SpecialURL = 2 [(gogoproto.jsontag) = "special_url,omitempty"];
  47. }