Files
EdgeCommon/pkg/rpc/protos/models/model_user.proto

36 lines
992 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_node_cluster.proto";
import "models/model_user_feature.proto";
2022-07-24 16:45:07 +08:00
import "models/model_login.proto";
message User {
2023-07-04 20:29:33 +08:00
int64 id = 1; // 用户ID
string username = 2; // 用户名
string fullname = 3; // 全称
string mobile = 4; // 手机号码
string tel = 5; // 联系电话
string email = 6; // 联系邮箱
string verifiedEmail = 20; // 已验证邮箱
string verifiedMobile = 23; // 已验证手机号码
string remark = 7;
bool isOn = 8;
int64 createdAt = 9;
2022-01-05 10:44:58 +08:00
string registeredIP = 12;
bool isVerified = 13;
bool isRejected = 14;
string rejectReason = 15;
2022-01-23 19:16:58 +08:00
bool isDeleted = 16;
bool isIndividualIdentified = 17; // 是否已通过个人验证
bool isEnterpriseIdentified = 18; // 是否已通过企业验证
string bandwidthAlgo = 21; // 带宽算法
2023-07-04 20:29:33 +08:00
string lang = 22; // 语言代号
2022-01-05 10:44:58 +08:00
2022-07-24 16:45:07 +08:00
Login otpLogin = 19; // OTP认证
NodeCluster nodeCluster = 10;
repeated UserFeature features = 11;
}