You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/proto/user/user.proto

141 lines
2.9 KiB

syntax = "proto3";
2 years ago
import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto";
import "Open-IM-Server/pkg/proto/conversation/conversation.proto";
2 years ago
option go_package = "Open_IM/pkg/proto/user;user";
package user;
3 years ago
3 years ago
message GetAllUserIDReq{
server_api_params.RequestPagination pagination = 1;
3 years ago
}
message GetAllUserIDResp{
int32 total = 1;
3 years ago
repeated string UserIDList = 2;
3 years ago
}
3 years ago
3 years ago
message AccountCheckReq{
repeated string checkUserIDs = 1;
3 years ago
}
message AccountCheckResp{
message SingleUserStatus {
string userID = 1;
string accountStatus = 2;
}
repeated SingleUserStatus results = 1;
}
3 years ago
message GetUsersInfoReq{
repeated string userIDs = 1;
}
message GetUsersInfoResp{
repeated server_api_params.UserInfo usersInfo = 1;
}
message UpdateUserInfoReq{
server_api_params.UserInfo userInfo = 1;
3 years ago
}
message UpdateUserInfoResp{
}
message SetGlobalRecvMessageOptReq{
string userID = 1;
int32 globalRecvMsgOpt = 3;
}
message SetGlobalRecvMessageOptResp{
}
3 years ago
3 years ago
message SetConversationReq{
2 years ago
conversation.Conversation Conversation = 1;
int32 notificationType = 2;
string OperationID = 3;
3 years ago
}
3 years ago
3 years ago
message SetConversationResp{
3 years ago
}
3 years ago
3 years ago
message SetRecvMsgOptReq {
string OwnerUserID = 1;
string ConversationID = 2;
int32 RecvMsgOpt = 3;
int32 notificationType = 4;
string OperationID = 5;
3 years ago
}
message SetRecvMsgOptResp {
3 years ago
}
3 years ago
message GetConversationReq{
string ConversationID = 1;
string OwnerUserID = 2;
string OperationID = 3;
}
3 years ago
message GetConversationResp{
2 years ago
conversation.Conversation Conversation = 2;
}
3 years ago
message GetConversationsReq{
string OwnerUserID = 1;
repeated string ConversationIDs = 2;
string OperationID = 3;
}
3 years ago
message GetConversationsResp{
2 years ago
repeated conversation.Conversation Conversations = 2;
}
3 years ago
message GetAllConversationsReq{
string OwnerUserID = 1;
string OperationID = 2;
}
3 years ago
message GetAllConversationsResp{
2 years ago
repeated conversation.Conversation Conversations = 2;
3 years ago
}
message BatchSetConversationsReq{
2 years ago
repeated conversation.Conversation Conversations = 1;
3 years ago
string OwnerUserID = 2;
int32 notificationType = 3;
string OperationID = 4;
3 years ago
}
message BatchSetConversationsResp{
3 years ago
repeated string Success = 2;
repeated string Failed = 3;
}
3 years ago
2 years ago
message GetUsersReq {
server_api_params.RequestPagination pagination = 2;
string userName = 3;
string userID = 4;
2 years ago
string content = 5;
3 years ago
}
message GetUsersResp{
int32 total = 1;
repeated server_api_params.UserInfo users = 2;
3 years ago
}
3 years ago
service user {
//获取指定的用户信息 全字段
rpc GetUsersInfo(GetUsersInfoReq) returns(GetUsersInfoResp);
//更新用户信息
3 years ago
rpc UpdateUserInfo(UpdateUserInfoReq) returns(UpdateUserInfoResp);
//设置用户消息接收选项
rpc SetGlobalRecvMessageOpt(SetGlobalRecvMessageOptReq) returns(SetGlobalRecvMessageOptResp);
//检查userID是否存在
3 years ago
rpc AccountCheck(AccountCheckReq)returns(AccountCheckResp);
//翻页或指定userID昵称拉取用户信息 全字段
3 years ago
rpc GetUsers(GetUsersReq) returns (GetUsersResp);
}
2 years ago