29 lines
962 B
Protocol Buffer
29 lines
962 B
Protocol Buffer
// Package common holds message types shared across every enkly bounded
|
|
// context's gRPC API, so each context's own .proto only needs to import
|
|
// this one file instead of depending on each other directly.
|
|
syntax = "proto3";
|
|
|
|
package enkly.common.v1;
|
|
|
|
option go_package = "enkly/gen/common/v1;commonv1";
|
|
|
|
// Money is a decimal amount in the smallest unit of currency (cents),
|
|
// matching how internal/billing.Info prices plans today (EUR integer
|
|
// amounts) without pulling in a floating point rounding bug.
|
|
message Money {
|
|
int64 minor_units = 1; // e.g. 500 = 5.00
|
|
string currency_code = 2; // ISO 4217, e.g. "EUR"
|
|
}
|
|
|
|
// PageRequest / PageResponse: not used by today's list endpoints (the
|
|
// monolith never paginates conversations or messages), reserved so a
|
|
// service can add pagination later without a breaking proto change.
|
|
message PageRequest {
|
|
int32 page_size = 1;
|
|
string page_token = 2;
|
|
}
|
|
|
|
message PageResponse {
|
|
string next_page_token = 1;
|
|
}
|