2020-12-04 16:01:06 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
option go_package = "./pb";
|
|
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
2021-01-25 16:41:30 +08:00
|
|
|
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";
|
2020-12-17 15:51:09 +08:00
|
|
|
|
2020-12-04 16:01:06 +08:00
|
|
|
message User {
|
2023-07-04 20:29:33 +08:00
|
|
|
int64 id = 1; // 用户ID
|
|
|
|
|
string username = 2; // 用户名
|
|
|
|
|
string fullname = 3; // 全称
|
2020-12-04 16:01:06 +08:00
|
|
|
string mobile = 4;
|
|
|
|
|
string tel = 5;
|
|
|
|
|
string email = 6;
|
2022-12-08 20:26:20 +08:00
|
|
|
string verifiedEmail = 20;
|
2020-12-04 16:01:06 +08:00
|
|
|
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;
|
2022-07-24 11:29:28 +08:00
|
|
|
bool isIndividualIdentified = 17;
|
|
|
|
|
bool isEnterpriseIdentified = 18;
|
2023-02-27 10:47:31 +08:00
|
|
|
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认证
|
|
|
|
|
|
2020-12-17 17:36:01 +08:00
|
|
|
NodeCluster nodeCluster = 10;
|
2020-12-30 22:01:26 +08:00
|
|
|
repeated UserFeature features = 11;
|
2020-12-04 16:01:06 +08:00
|
|
|
}
|