user.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. syntax = "proto3";
  2. package passport.job.user;
  3. option go_package = "model";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. message UserBaseProto {
  6. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  7. string UserID = 2 [(gogoproto.jsontag) = "userid"];
  8. bytes Pwd = 3 [(gogoproto.jsontag) = "pwd"];
  9. string Salt = 4 [(gogoproto.jsontag) = "salt"];
  10. int32 Status = 5 [(gogoproto.jsontag) = "status"];
  11. }
  12. message UserEmailProto {
  13. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  14. bytes Email = 2 [(gogoproto.jsontag) = "email"];
  15. int32 Verified = 3 [(gogoproto.jsontag) = "verified"];
  16. int64 EmailBindTime = 4 [(gogoproto.jsontag) = "email_bind_time"];
  17. }
  18. message UserTelProto {
  19. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  20. bytes Tel = 2 [(gogoproto.jsontag) = "tel"];
  21. string Cid = 3 [(gogoproto.jsontag) = "cid"];
  22. int64 TelBindTime = 4 [(gogoproto.jsontag) = "tel_bind_time"];
  23. }
  24. message UserRegOriginProto {
  25. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  26. int64 JoinIP = 2 [(gogoproto.jsontag) = "join_ip"];
  27. bytes JoinIPV6 = 3 [(gogoproto.jsontag) = "join_ip_v6"];
  28. int32 port = 4 [(gogoproto.jsontag) = "port"];
  29. int64 JoinTime = 5 [(gogoproto.jsontag) = "join_time"];
  30. int32 Origin = 6 [(gogoproto.jsontag) = "origin"];
  31. int32 RegType = 7 [(gogoproto.jsontag) = "reg_type"];
  32. int64 AppID = 8 [(gogoproto.jsontag) = "appid"];
  33. }
  34. message UserSafeQuestionProto {
  35. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  36. int32 SafeQuestion = 2 [(gogoproto.jsontag) = "safe_question"];
  37. bytes SafeAnswer = 3 [(gogoproto.jsontag) = "safe_answer"];
  38. int64 SafeBindTime = 4 [(gogoproto.jsontag) = "safe_bind_time"];
  39. }
  40. message UserThirdBindProto {
  41. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  42. int64 Mid = 2 [(gogoproto.jsontag) = "mid"];
  43. string OpenID = 3 [(gogoproto.jsontag) = "openid"];
  44. int64 PlatForm = 4 [(gogoproto.jsontag) = "platform"];
  45. string Token = 5 [(gogoproto.jsontag) = "token"];
  46. int64 Expires = 6 [(gogoproto.jsontag) = "expires"];
  47. }