mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 23:20:00 +08:00
34 lines
502 B
Protocol Buffer
34 lines
502 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package multisvc;
|
|
|
|
option go_package = "example.com/demo/pb";
|
|
|
|
import "shared.proto";
|
|
|
|
message SearchReq {
|
|
shared.Meta meta = 1;
|
|
string keyword = 2;
|
|
}
|
|
|
|
message SearchReply {
|
|
repeated string items = 1;
|
|
}
|
|
|
|
message NotifyReq {
|
|
shared.Meta meta = 1;
|
|
string message = 2;
|
|
}
|
|
|
|
message NotifyReply {
|
|
bool ok = 1;
|
|
}
|
|
|
|
service SearchService {
|
|
rpc Search(SearchReq) returns (SearchReply);
|
|
}
|
|
|
|
service NotifyService {
|
|
rpc Notify(NotifyReq) returns (NotifyReply);
|
|
}
|