model.proto 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. syntax = "proto3";
  2. package account.service.member;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "model";
  5. message BaseInfo {
  6. int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  7. string name = 2 [(gogoproto.jsontag) = "name"];
  8. int64 sex = 3 [(gogoproto.jsontag) = "sex"];
  9. string face = 4 [(gogoproto.jsontag) = "face"];
  10. string sign = 5 [(gogoproto.jsontag) = "sign"];
  11. int64 rank = 6 [(gogoproto.jsontag) = "rank"];
  12. int64 birthday = 7 [(gogoproto.jsontag) = "birthday", (gogoproto.casttype) = "go-common/library/time.Time"];
  13. }
  14. message LevelInfo {
  15. int32 cur = 1 [(gogoproto.jsontag) = "current_level"];
  16. int32 min = 2 [(gogoproto.jsontag) = "current_min"];
  17. int32 now_exp = 3 [(gogoproto.jsontag) = "current_exp"];
  18. int32 next_exp = 4 [(gogoproto.jsontag) = "next_exp"];
  19. }
  20. message OfficialInfo {
  21. int32 role = 1 [(gogoproto.jsontag) = "role",(gogoproto.casttype) = "int8"];
  22. string title = 2 [(gogoproto.jsontag) = "title"];
  23. string desc = 3 [(gogoproto.jsontag) = "desc"];
  24. }
  25. message Moral {
  26. int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  27. int64 moral = 2 [(gogoproto.jsontag) = "moral"];
  28. int64 added = 3 [(gogoproto.jsontag) = "added"];
  29. int64 deducted = 4 [(gogoproto.jsontag) = "deducted"];
  30. int64 last_recover_date = 5 [(gogoproto.jsontag) = "last_recover_date", (gogoproto.casttype) = "go-common/library/time.Time"];
  31. }