potato/proto/common.proto

17 lines
280 B
Protocol Buffer
Raw Normal View History

2021-06-17 00:45:37 +08:00
syntax = "proto3";
2021-06-18 22:40:33 +08:00
import "google/protobuf/any.proto";
2021-06-17 00:45:37 +08:00
option go_package= "github.com/viletyy/potato/proto";
message Pager {
int64 page = 1;
int64 page_size = 2;
int64 total = 3;
2021-06-18 22:40:33 +08:00
}
message Error {
int32 code = 1;
string message = 2;
google.protobuf.Any data = 3;
2021-06-17 00:45:37 +08:00
}