dm.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. message DM {
  5. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  6. int32 Type = 2 [(gogoproto.jsontag) = "type"];
  7. int64 Oid = 3 [(gogoproto.jsontag) = "oid"];
  8. int64 Mid = 4 [(gogoproto.jsontag) = "mid"];
  9. int32 Progress = 5 [(gogoproto.jsontag) = "progress"];
  10. int32 Pool = 6 [(gogoproto.jsontag) = "pool"];
  11. int32 Attr = 7 [(gogoproto.jsontag) = "attr"];
  12. int32 State = 8 [(gogoproto.jsontag) = "state"];
  13. int64 Ctime = 9 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "stime"];
  14. int64 Mtime = 10 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "stime"];
  15. Content Content = 11 [(gogoproto.jsontag) = "content,omitempty"];
  16. ContentSpecial ContentSpe = 12 [(gogoproto.jsontag) = "content_special,omitempty"];
  17. }
  18. message Content {
  19. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  20. int32 FontSize = 2 [(gogoproto.jsontag) = "fontsize"];
  21. int64 Color = 3 [(gogoproto.jsontag) = "color"];
  22. int32 Mode = 4 [(gogoproto.jsontag) = "mode"];
  23. int64 IP = 5 [(gogoproto.jsontag) = "ip"];
  24. int32 Plat = 6 [(gogoproto.jsontag) = "plat"];
  25. string Msg = 7 [(gogoproto.jsontag) = "msg"];
  26. int64 Ctime = 8 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  27. int64 Mtime = 9 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  28. }
  29. message ContentSpecial {
  30. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  31. string Msg = 2 [(gogoproto.jsontag) = "msg"];
  32. int64 Ctime = 3 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  33. int64 Mtime = 4 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  34. }