2017-05-02 00:55:55 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2018-08-09 11:23:10 +03:00
|
|
|
package company;
|
2017-05-02 00:55:55 +03:00
|
|
|
|
|
|
|
option go_package = "models/article;article";
|
|
|
|
|
|
|
|
import "proto/common.proto";
|
|
|
|
|
2018-08-09 11:23:10 +03:00
|
|
|
message GetArticleRequest {
|
|
|
|
common.GetArticle getarticle = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message GetArticleResponse {
|
|
|
|
Article article = 1;
|
|
|
|
|
|
|
|
message Storage {
|
|
|
|
string code = 1;
|
|
|
|
}
|
|
|
|
// The generated output should write []*GetArticleResponse_Storage.Storage for this field.
|
|
|
|
repeated Storage storages = 2;
|
|
|
|
}
|
2017-05-02 00:55:55 +03:00
|
|
|
|
|
|
|
message Article{
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
service articlesvc {
|
|
|
|
rpc GetArticle (GetArticleRequest) returns (GetArticleResponse){}
|
|
|
|
}
|