57 lines
1.2 KiB
Protocol Buffer
57 lines
1.2 KiB
Protocol Buffer
// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto
|
|
syntax = "proto3";
|
|
|
|
import "gitlab.33.cn/chat/imparse/proto/signal.proto";
|
|
|
|
package dtalk.answer;
|
|
option go_package = "gitlab.33.cn/chat/dtalk/service/record/answer";
|
|
|
|
message PushCommonMsgReq {
|
|
string key = 1;
|
|
string from = 2;
|
|
bytes body = 3;
|
|
}
|
|
|
|
message PushCommonMsgReply {
|
|
int64 mid = 1;
|
|
uint64 time = 2;
|
|
}
|
|
|
|
message PushNoticeMsgReq {
|
|
string seq = 1;
|
|
int32 channelType = 2;
|
|
string from = 3;
|
|
string target = 4;
|
|
bytes data = 5;
|
|
}
|
|
|
|
message PushNoticeMsgReply {
|
|
int64 mid = 1;
|
|
}
|
|
|
|
message UniCastSignalReq {
|
|
imparse.signal.SignalType type = 1;
|
|
string target = 2;
|
|
bytes body = 3;
|
|
}
|
|
|
|
message UniCastSignalReply {
|
|
int64 mid = 1;
|
|
}
|
|
|
|
message GroupCastSignalReq {
|
|
imparse.signal.SignalType type = 1;
|
|
string target = 2;
|
|
bytes body = 3;
|
|
}
|
|
|
|
message GroupCastSignalReply {
|
|
int64 mid = 1;
|
|
}
|
|
|
|
service Answer {
|
|
rpc PushCommonMsg(PushCommonMsgReq) returns (PushCommonMsgReply);
|
|
rpc PushNoticeMsg(PushNoticeMsgReq) returns (PushNoticeMsgReply);
|
|
rpc UniCastSignal(UniCastSignalReq) returns (UniCastSignalReply);
|
|
rpc GroupCastSignal(GroupCastSignalReq) returns (GroupCastSignalReply);
|
|
} |