47 lines
724 B
Protocol Buffer
47 lines
724 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package stream.common.v1;
|
|
|
|
option go_package = "stream/proto/gen/go/common/v1;commonv1";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message RequestContext {
|
|
string user_id = 1;
|
|
string email = 2;
|
|
string role = 3;
|
|
string request_id = 4;
|
|
string source = 5;
|
|
}
|
|
|
|
message PaginationRequest {
|
|
int32 page = 1;
|
|
int32 page_size = 2;
|
|
}
|
|
|
|
message PaginationResponse {
|
|
int32 page = 1;
|
|
int32 page_size = 2;
|
|
int64 total = 3;
|
|
}
|
|
|
|
message Money {
|
|
double amount = 1;
|
|
string currency = 2;
|
|
}
|
|
|
|
message Empty {}
|
|
|
|
message IdRequest {
|
|
string id = 1;
|
|
}
|
|
|
|
message DeleteResponse {
|
|
string message = 1;
|
|
}
|
|
|
|
message TimestampRange {
|
|
google.protobuf.Timestamp from = 1;
|
|
google.protobuf.Timestamp to = 2;
|
|
}
|