fav.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. syntax = "proto3";
  2. /*
  3. * v0.1.0
  4. * 收藏夹信息
  5. */
  6. package model;
  7. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  8. option (gogoproto.goproto_enum_prefix_all) = false;
  9. option (gogoproto.goproto_getters_all) = false;
  10. option (gogoproto.unmarshaler_all) = true;
  11. option (gogoproto.marshaler_all) = true;
  12. option (gogoproto.sizer_all) = true;
  13. option (gogoproto.goproto_stringer_all) = false;
  14. option (gogoproto.stringer_all) = true;
  15. message Folder {
  16. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  17. int64 Mid = 2 [(gogoproto.jsontag) = "mid"];
  18. int32 Count = 3 [(gogoproto.jsontag) = "count",(gogoproto.casttype) = "int"];
  19. string Name = 4 [(gogoproto.jsontag) = "name"];
  20. string Cover = 5 [(gogoproto.jsontag) = "cover"];
  21. string Description = 6 [(gogoproto.jsontag) = "description"];
  22. int32 Type = 7 [(gogoproto.jsontag) = "type",(gogoproto.casttype) = "int8"];
  23. int32 Attr = 8 [(gogoproto.jsontag) = "attr"];
  24. int32 State = 9 [(gogoproto.jsontag) = "state",(gogoproto.casttype) = "int8"];
  25. int32 Favored = 10 [(gogoproto.jsontag) = "favored",(gogoproto.casttype) = "int8"];
  26. int64 CTime = 11 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  27. int64 MTime = 12 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  28. repeated int64 RecentOids = 13 [(gogoproto.jsontag) = "recent_oids"];
  29. int32 FavedCount = 14 [(gogoproto.jsontag) = "faved_count"];
  30. int32 PlayCount = 15 [(gogoproto.jsontag) = "play_count"];
  31. int32 ShareCount = 16 [(gogoproto.jsontag) = "share_count"];
  32. int32 LikeCount = 17 [(gogoproto.jsontag) = "like_count"];
  33. int32 ReplyCount = 18 [(gogoproto.jsontag) = "reply_count"];
  34. repeated Resource RecentRes = 19 [(gogoproto.jsontag) = "recent_res"];
  35. }
  36. message Resource {
  37. int64 Oid = 1[(gogoproto.jsontag) = "oid"];
  38. int32 Typ = 2[(gogoproto.jsontag) = "typ"];
  39. }