Files
chat-deploy/pkg/protocol/common/common.proto
kim.dev.6789 b7f8db7d08 复制项目
2026-01-14 22:35:45 +08:00

81 lines
2.0 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package openim.chat.common;
option go_package = "git.imall.cloud/openim/chat/pkg/protocol/common";
message UserFullInfo{
string userID = 1;
string password = 2;
string account = 3;
string phoneNumber = 4;
string areaCode = 5;
string email = 6;
string nickname = 7;
string faceURL = 8;
int32 gender = 9;
int32 level = 10;
int64 birth = 11;
int32 allowAddFriend = 12;
int32 allowBeep = 13;
int32 allowVibration = 14;
int32 globalRecvMsgOpt = 15;
int32 registerType = 16;
int32 userType = 17; // 用户类型: 0=普通用户, 1=企业用户, 2=机器人, 3=管理员
string userFlag = 18; // 用户标签/标识
int64 createTime = 19; // 用户创建时间
string ip = 20; // 用户最新登录IP
// 实名认证信息
string idCard = 21; // 身份证号
string realName = 22; // 真实姓名
string idCardPhotoFront = 23; // 身份证正面照片URL
string idCardPhotoBack = 24; // 身份证反面照片URL
int32 auditStatus = 25; // 审核状态0-未审核1-审核通过2-审核拒绝
}
message UserPublicInfo{
string userID = 1;
string account = 2;
string email = 3;
string nickname = 4;
string faceURL = 5;
int32 gender = 6;
int32 level = 7;
int32 userType = 8; // 用户类型: 0=普通用户, 1=企业用户, 2=机器人, 3=管理员
}
message UserIdentity {
string email = 1;
string areaCode = 2;
string phoneNumber = 3;
string deviceID = 4;
int32 platform = 5;
string account = 6;
}
message AppletInfo {
string id = 1;
string name = 2;
string appID = 3;
string icon = 4;
string url = 5;
string md5 = 6;
int64 size = 7;
string version = 8;
uint32 priority = 9;
uint32 status = 10;
int64 createTime = 11;
}
message LogInfo{
string userID=1;
int32 platform=2;
string url=3;
int64 createTime=4;
string nickname=5;
string logID=6;
string filename=7;
string systemType=8;
string ex=9;
string version=10;
}