syntax = "proto3"; package user; import "google/protobuf/timestamp.proto"; option go_package = "hilo/api/user;user"; enum EThirdPartyType { UnknownThirdPartyType = 0; Phone = 1; Google = 2; Facebook = 3; Apple = 4; WeChat = 5; } enum ESex { UnknownSex = 0; Male = 1; Female = 2; } message MUserOauth { int64 id = 1; // id int64 user_id = 2; // 用户ID string third_party_id = 3; // 第三方ID EThirdPartyType third_party_type = 4; // 第三方类型 string third_party_token = 5; // 第三方token google.protobuf.Timestamp created_time = 6; google.protobuf.Timestamp updated_time = 7; } message MUser { int64 id = 1; // id string external_id = 2; // @gotags: validate:"required" // 别名 string avatar = 3; // 头像 int32 default_avatar = 4; string nick = 5; // 昵称 ESex sex = 6; // 性别 int64 birthday = 7; // 出生日期 string country = 8; // 国家 string country_icon = 9; // 国旗图标地址 string language = 10; string description = 11; // 个性签名 int32 is_push = 12; int32 is_show_age = 13; string code = 14; // 邀请码 string origin_code = 15; // 原始邀请码 int32 status = 16; // 状态 string device_type = 17; // @gotags: validate:"required" // ios,Android int64 logout_time = 18; google.protobuf.Timestamp created_time = 19; google.protobuf.Timestamp updated_time = 20; }