Files
Gordon 454bf97e3f merge v3dev into main (#504)
* statistics user register

* refactor: router change

* minio init

* UserRegisterCount

* push use local conn

* refactor: user pb update

* remove online push close grpc conn

* refactor: user pb update

* refactor:pb file

* msgs statistics

* msgs statistics

* revoke userID

* refactor: errcode update

* active user

* active user

* active user

* refactor: errcode update

* feat: conn update token

* active user

* active user

* feat: conn update token

* active user

* feat: conn update token

* feat: conn update token

* feat: conn update token

* add tx_oss cos

* active user

* active user

* group create

* group create

* feat: group notification show to conversation

* feat: group notification show to conversation

* group active

* user active

* sendNotificationWithName

* withname

* privateChat

* a2r call option

* grpc with detail return error

* change log error

* chain unary interceptor

* api nil slice map

* fix sync has read

* fix: text update

* fix: update add model

* set conversations update

* set privateChat

* fix: content update

* remove unuse rpc

* msgDestruct

* cron use rpc mw

* set IsMsgDestruct

* msg destruct

* msgDestruct

* s3 minio, cos, oss support

* feat: add implement of GetUsersOnlineStatus, #472 (#477)

* s3 minio, cos, oss support

* s3 route

* remove extendMsg code

* s3 route

* remove unuse code

* s3 pb

* s3 pb

* s3 pb

* s3 presigned put

* s3 presigned test

* s3 presigned test

* s3 presigned test

* s3 presigned test

* s3 presigned test

* s3 presigned test

* s3 presigned test

* s3 presigned test

* Update .gitignore (#482)

* s3 debug log

* s3 debug log

* cron add log and fix cron

* add log

* cron

* s3 config

* fix kick user bug

* s3 cos

* add kick log

* s3 cos test

* s3 cos test

* s3 cos test

* kick user log

* kickuserlog

* s3 cos copy

* s3 cos copy

* s3 url

* s3 url

* s3 AccessURL

* log

* s3 InitiateMultipartUpload add ExpireTime

---------

Co-authored-by: withchao <993506633@qq.com>
Co-authored-by: wangchuxiao <wangchuxiao97@outlook.com>
Co-authored-by: BanTanger <88583317+BanTanger@users.noreply.github.com>
Co-authored-by: withchao <48119764+withchao@users.noreply.github.com>
Co-authored-by: Alan <68671759+hanzhixiao@users.noreply.github.com>
2023-07-12 15:31:24 +08:00

183 lines
4.4 KiB
Protocol Buffer

// Copyright © 2023 OpenIM. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package OpenIMServer.user;
import "sdkws/sdkws.proto";
import "conversation/conversation.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/user";
message getAllUserIDReq{
sdkws.RequestPagination pagination = 1;
}
message getAllUserIDResp{
int32 total = 1;
repeated string userIDs = 2;
}
message accountCheckReq{
repeated string checkUserIDs = 1;
}
message accountCheckResp{
message singleUserStatus {
string userID = 1;
string accountStatus = 2;
}
repeated singleUserStatus results = 1;
}
message getDesignateUsersReq{
repeated string userIDs = 1;
}
message getDesignateUsersResp{
repeated sdkws.UserInfo usersInfo = 1;
}
message updateUserInfoReq{
sdkws.UserInfo userInfo = 1;
}
message updateUserInfoResp{
}
message setGlobalRecvMessageOptReq{
string userID = 1;
int32 globalRecvMsgOpt = 3;
}
message setGlobalRecvMessageOptResp{
}
message setConversationReq{
OpenIMServer.conversation.Conversation conversation = 1;
int32 notificationType = 2;
string operationID = 3;
}
message setConversationResp{
}
message setRecvMsgOptReq {
string ownerUserID = 1;
string conversationID = 2;
int32 recvMsgOpt = 3;
int32 notificationType = 4;
string operationID = 5;
}
message setRecvMsgOptResp {
}
message getConversationReq{
string conversationID = 1;
string ownerUserID = 2;
string operationID = 3;
}
message getConversationResp{
OpenIMServer.conversation.Conversation conversation = 2;
}
message getConversationsReq{
string ownerUserID = 1;
repeated string conversationIDs = 2;
string operationID = 3;
}
message getConversationsResp{
repeated OpenIMServer.conversation.Conversation conversations = 2;
}
message getAllConversationsReq{
string ownerUserID = 1;
string operationID = 2;
}
message getAllConversationsResp{
repeated OpenIMServer.conversation.Conversation conversations = 2;
}
message batchSetConversationsReq{
repeated OpenIMServer.conversation.Conversation conversations = 1;
string OwnerUserID = 2;
int32 notificationType = 3;
string OperationID = 4;
}
message batchSetConversationsResp{
repeated string Success = 2;
repeated string Failed = 3;
}
message getPaginationUsersReq {
sdkws.RequestPagination pagination = 2;
}
message getPaginationUsersResp{
int32 total = 1;
repeated sdkws.UserInfo users = 2;
}
message userRegisterReq {
string secret = 1;
repeated sdkws.UserInfo users = 2;
}
message userRegisterResp {
}
message getGlobalRecvMessageOptReq{
string userID = 1;
}
message getGlobalRecvMessageOptResp{
int32 globalRecvMsgOpt = 1;
}
message userRegisterCountReq {
int64 start = 1;
int64 end = 2;
}
message userRegisterCountResp {
int64 total = 1;
int64 before = 2;
map<string, int64> count = 3;
}
service user {
//获取指定的用户信息 全字段
rpc getDesignateUsers(getDesignateUsersReq) returns(getDesignateUsersResp);
//更新用户信息
rpc updateUserInfo(updateUserInfoReq) returns(updateUserInfoResp);
//设置用户消息接收选项
rpc setGlobalRecvMessageOpt(setGlobalRecvMessageOptReq) returns(setGlobalRecvMessageOptResp);
//获取用户消息接收选项 没找到不返回错误
rpc getGlobalRecvMessageOpt(getGlobalRecvMessageOptReq) returns(getGlobalRecvMessageOptResp);
//检查userID是否存在
rpc accountCheck(accountCheckReq) returns (accountCheckResp);
//翻页(或指定userID,昵称)拉取用户信息 全字段
rpc getPaginationUsers(getPaginationUsersReq) returns (getPaginationUsersResp);
//用户注册
rpc userRegister(userRegisterReq) returns (userRegisterResp);
//获取所有用户ID
rpc getAllUserID(getAllUserIDReq) returns (getAllUserIDResp);
// 获取用户总数和指定时间段内的用户增量
rpc userRegisterCount(userRegisterCountReq)returns(userRegisterCountResp);
}