achievements.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. syntax = "proto3";
  2. package activity.service;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "like";
  5. option (gogoproto.goproto_enum_prefix_all) = false;
  6. option (gogoproto.goproto_getters_all) = false;
  7. option (gogoproto.unmarshaler_all) = true;
  8. option (gogoproto.marshaler_all) = true;
  9. option (gogoproto.sizer_all) = true;
  10. message ActLikeAchievement {
  11. int64 ID = 1 [(gogoproto.jsontag) ="id"];
  12. string Name = 2 [(gogoproto.jsontag) ="name"];
  13. string Icon = 3 [(gogoproto.jsontag) ="icon"];
  14. string Dic = 4 [(gogoproto.jsontag) ="dic"];
  15. int64 Unlock = 5 [(gogoproto.jsontag) ="unlock"];
  16. int64 Ctime = 6 [(gogoproto.jsontag) ="ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  17. int64 Mtime = 7 [(gogoproto.jsontag) ="mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  18. int64 Del = 8 [(gogoproto.jsontag) ="del"];
  19. int64 Sid = 9 [(gogoproto.jsontag) ="sid"];
  20. string Image = 10 [(gogoproto.jsontag) ="image"];
  21. int64 Award = 11 [(gogoproto.jsontag) ="award"];
  22. }
  23. message Achievements {
  24. repeated ActLikeAchievement achievements = 1;
  25. }
  26. message ActLikeUserAchievement {
  27. int64 ID = 1 [(gogoproto.jsontag) ="id"];
  28. int64 Aid = 2 [(gogoproto.jsontag) ="aid"];
  29. int64 Ctime = 3 [(gogoproto.jsontag) ="ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  30. int64 Mtime = 4 [(gogoproto.jsontag) ="mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  31. int64 Del = 5 [(gogoproto.jsontag) ="del"];
  32. int64 Mid = 6 [(gogoproto.jsontag) ="mid"];
  33. int64 Sid = 7 [(gogoproto.jsontag) ="sid"];
  34. int64 Award = 8 [(gogoproto.jsontag) ="award"];
  35. }