Moved cursor to a separate file

This commit is contained in:
Stephan D
2026-02-13 00:23:39 +01:00
parent fd1f5498b4
commit 16c44ec7d3
5 changed files with 33 additions and 21 deletions

View File

@@ -6,12 +6,7 @@ option go_package = "github.com/tech/sendico/pkg/proto/payments/methods/v1;metho
import "google/protobuf/wrappers.proto";
message ViewCursor {
google.protobuf.Int64Value limit = 1;
google.protobuf.Int64Value offset = 2;
google.protobuf.BoolValue is_archived = 3;
}
import "common/pagination/v2/cursor.proto";
message CreatePaymentMethodRequest {
string account_ref = 1;
@@ -63,7 +58,7 @@ message ListPaymentMethodsRequest {
string account_ref = 1;
string organization_ref = 2;
string recipient_ref = 3;
ViewCursor cursor = 4;
common.pagination.v2.ViewCursor cursor = 4;
}
message ListPaymentMethodsResponse {