proto/recs.proto
// Модель рекомендаций (V.5): rpc learn не влияет на корзину и заказы. Фейковый сервер: tests/shop/fakes.
syntax = "proto3";
import "google/protobuf/empty.proto";
package recs;
message LearnLine { string sku = 1; uint32 qty = 2; }
message LearnReq { uint64 user = 1; repeated LearnLine items = 2; }
service Recs {
rpc learn(LearnReq) returns (google.protobuf.Empty);
}Source: examples/shop/proto/recs.proto