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.
31 lines
600 B
31 lines
600 B
4 years ago
|
syntax = "proto3";
|
||
|
|
||
|
package api.user.v1;
|
||
|
|
||
|
option go_package = "github.com/go-kratos/kratos/examples/kratos-http-grpc/api/user/v1;v1";
|
||
|
option java_multiple_files = true;
|
||
|
option java_package = "api.user.v1";
|
||
|
|
||
|
import "google/api/annotations.proto";
|
||
|
|
||
|
service User {
|
||
|
rpc GetMyMessages (GetMyMessagesRequest) returns (GetMyMessagesReply){
|
||
|
option (google.api.http) = {
|
||
|
get: "/v1/user/get/message/{count}"
|
||
|
body: "*"
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
message GetMyMessagesRequest {
|
||
|
int64 count = 1;
|
||
|
}
|
||
|
message GetMyMessagesReply {
|
||
|
repeated Message messages = 1;
|
||
|
}
|
||
|
|
||
|
message Message {
|
||
|
string content = 1;
|
||
|
}
|