member.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. message LevelInfo {
  5. int32 Cur = 1 [(gogoproto.jsontag) = "current_level"];
  6. int32 Min = 2 [(gogoproto.jsontag) = "current_min"];
  7. int32 NowExp = 3 [(gogoproto.jsontag) = "current_exp,omitempty"];
  8. int32 NextExp = 4 [(gogoproto.jsontag) = "next_exp"];
  9. }
  10. message PendantInfo {
  11. int32 Pid = 1 [(gogoproto.jsontag) = "pid",(gogoproto.casttype) = "int"];
  12. string Name = 2 [(gogoproto.jsontag) = "name"];
  13. string Image = 3 [(gogoproto.jsontag) = "image"];
  14. int64 Expire = 4 [(gogoproto.jsontag) = "expire",(gogoproto.casttype) = "int"];
  15. }
  16. message NameplateInfo {
  17. int32 Nid = 1 [(gogoproto.jsontag) = "nid",(gogoproto.casttype) = "int"];
  18. string Name = 2 [(gogoproto.jsontag) = "name"];
  19. string Image = 3 [(gogoproto.jsontag) = "image"];
  20. string ImageSmall = 4 [(gogoproto.jsontag) = "image_small"];
  21. string Level = 5 [(gogoproto.jsontag) = "level"];
  22. string Condition = 6 [(gogoproto.jsontag) = "condition"];
  23. }
  24. message OfficialInfo {
  25. int32 Type = 7 [(gogoproto.jsontag) = "type",(gogoproto.casttype) = "int8"];
  26. string Desc = 8 [(gogoproto.jsontag) = "desc"];
  27. }
  28. message BaseInfo {
  29. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  30. string Name = 2 [(gogoproto.jsontag) = "name"];
  31. int64 Sex = 3 [(gogoproto.jsontag) = "sex"];
  32. string Face = 4 [(gogoproto.jsontag) = "face"];
  33. string Sign = 5 [(gogoproto.jsontag) = "sign"];
  34. int64 Rank = 8 [(gogoproto.jsontag) = "rank"];
  35. int64 Birthday = 9 [(gogoproto.jsontag) = "birthday", (gogoproto.casttype) = "go-common/library/time.Time"];
  36. int64 CTime = 10 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  37. int64 MTime = 11 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  38. }
  39. message Detail {
  40. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  41. int64 Birthday = 2 [(gogoproto.jsontag) = "birthday", (gogoproto.casttype) = "go-common/library/time.Time"];
  42. int64 Place = 3 [(gogoproto.jsontag) = "place"];
  43. int64 Marital = 4 [(gogoproto.jsontag) = "marital"];
  44. int64 Dating = 5 [(gogoproto.jsontag) = "dating"];
  45. string Tags = 6 [(gogoproto.jsontag) = "tags"];
  46. int64 CTime = 7 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  47. int64 MTime = 8 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  48. }