2024-02-20 04:54:41 +00:00
|
|
|
// @generated
|
2024-07-14 00:40:26 +00:00
|
|
|
// This file is @generated by prost-build.
|
2024-02-20 04:54:41 +00:00
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct TransactionCreate {
|
|
|
|
#[prost(string, tag="1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(int64, tag="2")]
|
|
|
|
pub user_id: i64,
|
|
|
|
#[prost(int64, tag="3")]
|
|
|
|
pub value: i64,
|
|
|
|
#[prost(int32, tag="4")]
|
|
|
|
pub state_id: i32,
|
|
|
|
#[prost(message, optional, tag="5")]
|
|
|
|
pub data: ::core::option::Option<::prost_types::Struct>,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct TransactionUpdate {
|
|
|
|
#[prost(string, tag="1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(int64, optional, tag="2")]
|
|
|
|
pub value: ::core::option::Option<i64>,
|
|
|
|
#[prost(int64, optional, tag="3")]
|
|
|
|
pub state_id: ::core::option::Option<i64>,
|
|
|
|
#[prost(message, optional, tag="4")]
|
|
|
|
pub data: ::core::option::Option<::prost_types::Struct>,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct TransactionItem {
|
|
|
|
#[prost(string, tag="1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
#[prost(message, optional, tag="2")]
|
|
|
|
pub user: ::core::option::Option<super::users::UserResponse>,
|
|
|
|
#[prost(int64, tag="3")]
|
|
|
|
pub value: i64,
|
|
|
|
#[prost(int32, tag="4")]
|
|
|
|
pub state_id: i32,
|
|
|
|
#[prost(int64, tag="5")]
|
|
|
|
pub created: i64,
|
|
|
|
#[prost(int64, tag="6")]
|
|
|
|
pub updated: i64,
|
|
|
|
#[prost(message, optional, tag="7")]
|
|
|
|
pub data: ::core::option::Option<::prost_types::Struct>,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct TransactionFilter {
|
|
|
|
#[prost(int64, optional, tag="1")]
|
|
|
|
pub user_id: ::core::option::Option<i64>,
|
|
|
|
#[prost(int32, optional, tag="2")]
|
|
|
|
pub state_id: ::core::option::Option<i32>,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct ListRequest {
|
|
|
|
#[prost(message, optional, tag="1")]
|
|
|
|
pub filter: ::core::option::Option<TransactionFilter>,
|
|
|
|
#[prost(message, optional, tag="2")]
|
|
|
|
pub page: ::core::option::Option<Pagination>,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct Pagination {
|
|
|
|
#[prost(int32, tag="1")]
|
|
|
|
pub size: i32,
|
|
|
|
#[prost(int32, tag="2")]
|
|
|
|
pub number: i32,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct TransactionList {
|
|
|
|
#[prost(message, repeated, tag="1")]
|
|
|
|
pub transactions: ::prost::alloc::vec::Vec<TransactionItem>,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct BalanceResponse {
|
|
|
|
#[prost(int64, tag="1")]
|
|
|
|
pub balance: i64,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct IdMessage {
|
|
|
|
#[prost(string, tag="1")]
|
|
|
|
pub id: ::prost::alloc::string::String,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct UserIdMessage {
|
|
|
|
#[prost(int64, tag="1")]
|
|
|
|
pub user_id: i64,
|
|
|
|
}
|
|
|
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
2024-07-14 15:45:12 +00:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message, serde::Serialize, serde::Deserialize)]
|
2024-02-20 04:54:41 +00:00
|
|
|
pub struct NullResponse {
|
|
|
|
}
|
|
|
|
include!("transactions.tonic.rs");
|
|
|
|
// @@protoc_insertion_point(module)
|