account.proto 611 B

12345678910111213141516171819202122232425262728293031
  1. syntax = "proto3";
  2. package user;
  3. option go_package = "git.ttmylife.com/zeuszhao/types/common/user;user";
  4. option java_multiple_files = true;
  5. option java_package = "user";
  6. enum AccountStatus {
  7. ACCOUNT_STATUS_UNDEFINED = 0;
  8. ACCOUNT_STATUS_ENABLED = 1;
  9. ACCOUNT_STATUS_DISABLED = 2;
  10. }
  11. enum AccountType {
  12. ACCOUNT_TYPE_UNDEFINED = 0;
  13. ACCOUNT_TYPE_WXOPENID = 1;
  14. }
  15. message AccountBody {
  16. uint32 id = 1;
  17. AccountBaseBody body = 2;
  18. }
  19. message AccountBaseBody {
  20. uint32 user_id = 1;
  21. AccountType type = 2;
  22. string account = 3;
  23. string password = 4;
  24. AccountStatus status = 5;
  25. }