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.
33 lines
653 B
33 lines
653 B
4 years ago
|
syntax = "proto3";
|
||
|
|
||
|
package api.message.v1;
|
||
|
|
||
|
option go_package = "github.com/go-kratos/kratos/examples/traces/api/message/v1;v1";
|
||
|
option java_multiple_files = true;
|
||
|
option java_package = "api.message.v1";
|
||
|
|
||
|
import "google/api/annotations.proto";
|
||
|
|
||
|
service MessageService {
|
||
|
rpc GetUserMessage (GetUserMessageRequest) returns (GetUserMessageReply){
|
||
|
option (google.api.http) = {
|
||
|
get: "/v1/message/user/{id}/{count}"
|
||
|
body: "*"
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
message GetUserMessageRequest {
|
||
|
int64 id = 1;
|
||
|
int64 count = 2;
|
||
|
}
|
||
|
|
||
|
message GetUserMessageReply {
|
||
|
repeated Message messages = 1;
|
||
|
}
|
||
|
|
||
|
message Message {
|
||
|
string content = 1;
|
||
|
}
|