potato/proto/common.proto

17 lines
280 B
Protocol Buffer

syntax = "proto3";
import "google/protobuf/any.proto";
option go_package= "github.com/viletyy/potato/proto";
message Pager {
int64 page = 1;
int64 page_size = 2;
int64 total = 3;
}
message Error {
int32 code = 1;
string message = 2;
google.protobuf.Any data = 3;
}