model.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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 Field {
  16. bool Flag = 1 [(gogoproto.jsontag) = "flag"];
  17. int64 Oid = 2 [(gogoproto.jsontag) = "oid"];
  18. int32 Pid = 3 [(gogoproto.jsontag) = "pid",(gogoproto.casttype) = "int16"];
  19. int32 Click = 4 [(gogoproto.jsontag) = "click",(gogoproto.casttype) = "int"];
  20. int64 Pubtime = 5 [(gogoproto.jsontag) = "pubtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  21. int32 Result = 6 [(gogoproto.jsontag) = "result",(gogoproto.casttype) = "int8"];
  22. int32 Deleted = 7 [(gogoproto.jsontag) = "deleted",(gogoproto.casttype) = "int8"];
  23. int32 Valid = 8 [(gogoproto.jsontag) = "valid",(gogoproto.casttype) = "int8"];
  24. }
  25. message Fields{
  26. repeated Field Fields= 1;
  27. }