Files
open-im-server/pkg/proto/message_cms/message_cms.proto
T

71 lines
1.5 KiB
Protocol Buffer
Raw Normal View History

2022-02-07 08:44:21 +08:00
syntax = "proto3";
2022-02-09 00:45:23 +08:00
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
2022-02-09 16:22:58 +08:00
option go_package = "./message_cms;message_cms";
package message_cms;
2022-02-07 08:44:21 +08:00
message BoradcastMessageReq {
string Message = 1;
string OperationID = 2;
}
message BoradcastMessageResp {
}
message MassSendMessageReq {
string Message = 1;
repeated string UserIds = 2;
string OperationID = 3;
}
message MassSendMessageResp {
}
message GetChatLogsReq {
2022-02-09 00:45:23 +08:00
string Content = 1;
2022-02-07 08:44:21 +08:00
string UserId = 2;
2022-02-09 00:45:23 +08:00
string GroupId = 3;
string Date = 4;
int32 SessionType = 5;
int32 ContentType = 6;
server_api_params.RequestPagination Pagination = 7;
string OperationID = 8;
2022-02-07 08:44:21 +08:00
}
2022-02-09 00:45:23 +08:00
message ChatLogs {
2022-02-07 08:44:21 +08:00
int32 SessionType = 1;
int32 ContentType = 2;
string SenderNickName = 3;
2022-02-09 00:45:23 +08:00
string SenderId = 4;
string ReciverNickName = 5;
string ReciverId = 6;
string SearchContent = 7;
string WholeContent = 8;
string GroupId = 9;
string GroupName = 10;
string Date = 11;
}
message GetChatLogsResp {
repeated ChatLogs ChatLogs = 1;
server_api_params.ResponsePagination Pagination = 2;
2022-02-17 19:35:17 +08:00
int32 ChatLogsNum = 3;
2022-02-07 08:44:21 +08:00
}
message WithdrawMessageReq {
string ServerMsgId = 1;
string OperationID = 2;
}
message WithdrawMessageResp {
}
2022-02-09 16:22:58 +08:00
service messageCMS {
2022-02-07 08:44:21 +08:00
rpc BoradcastMessage(BoradcastMessageReq) returns(BoradcastMessageResp);
rpc MassSendMessage(MassSendMessageReq) returns(MassSendMessageResp);
rpc GetChatLogs(GetChatLogsReq) returns(GetChatLogsResp);
rpc WithdrawMessage(WithdrawMessageReq) returns(WithdrawMessageResp);
}