model.proto 905 B

1234567891011121314151617181920212223242526
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. // Info account info.
  5. message Info {
  6. int64 Mid = 1 [ (gogoproto.jsontag) = "mid" ];
  7. string UserID = 2 [ (gogoproto.jsontag) = "userid" ];
  8. string Uname = 3 [ (gogoproto.jsontag) = "uname" ];
  9. string Face = 4 [ (gogoproto.jsontag) = "face" ];
  10. bool HasEmail = 5 [ (gogoproto.jsontag) = "has_email" ];
  11. bool HasTel = 6 [ (gogoproto.jsontag) = "has_tel" ];
  12. }
  13. // Perm token.
  14. message Perm {
  15. int64 Mid = 1 [ (gogoproto.jsontag) = "mid" ];
  16. int32 AppID = 2 [ (gogoproto.jsontag) = "appid" ];
  17. int32 AppSubID = 3 [ (gogoproto.jsontag) = "app_subid" ];
  18. string AccessToken = 4 [ (gogoproto.jsontag) = "access_token" ];
  19. string RefreshToken = 5 [ (gogoproto.jsontag) = "refresh_token" ];
  20. int64 CreateAt = 6 [ (gogoproto.jsontag) = "create_at" ];
  21. int64 Expires = 7 [ (gogoproto.jsontag) = "expires" ];
  22. }