user.proto 385 B

12345678910111213141516171819202122
  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 UserStatus {
  7. USER_STATUS_UNDEFINED = 0;
  8. USER_STATUS_ENABLED = 1;
  9. USER_STATUS_DISABLED = 2;
  10. }
  11. message UserBody {
  12. uint32 id = 1;
  13. UserBaseBody body = 2;
  14. }
  15. message UserBaseBody {
  16. UserStatus status = 1;
  17. }