diff --git a/src/c2se/backend/account.rs b/src/c2se/backend/account.rs index ba16396..e9aaba2 100644 --- a/src/c2se/backend/account.rs +++ b/src/c2se/backend/account.rs @@ -1,6 +1,3 @@ -use crate::protobuf::pagination; -use crate::protobuf::rpc; - const SUBJECT: &str = "bet.beteran.c2se.backend.account"; pub const SUBJECT_LIST_BANKS: &str = const_format::concatcp!(SUBJECT, ".ListBanks"); diff --git a/src/c2se/common/bank.rs b/src/c2se/common/bank.rs index 5f0ca88..8d42d47 100644 --- a/src/c2se/common/bank.rs +++ b/src/c2se/common/bank.rs @@ -1,6 +1,5 @@ use crate::protobuf::rpc; use crate::protobuf::pagination; -use crate::models::account; const SUBJECT: &str = "bet.beteran.c2se.common.bank"; @@ -28,7 +27,9 @@ pub struct CreateBankResponse { } /// Nested message and enum types in `CreateBankResponse`. pub mod create_bank_response { - #[derive(Clone, PartialEq, ::prost::Message)] + use crate::models::account; + + #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, optional, tag="1")] pub bank: ::core::option::Option, @@ -63,7 +64,9 @@ pub struct ListBanksResponse { } /// Nested message and enum types in `ListBanksResponse`. pub mod list_banks_response { - #[derive(Clone, PartialEq, ::prost::Message)] + use crate::models::account; + + #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, repeated, tag="1")] pub banks: ::prost::alloc::vec::Vec, @@ -96,7 +99,9 @@ pub struct UpdateBankResponse { } /// Nested message and enum types in `UpdateBankResponse`. pub mod update_bank_response { - #[derive(Clone, PartialEq, ::prost::Message)] + use crate::models::account; + + #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, optional, tag="1")] pub bank: ::core::option::Option, diff --git a/src/models/mod.rs b/src/models/mod.rs index e13be12..ea00b9b 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,4 +1,5 @@ pub mod core; +pub mod account; pub mod domain; pub mod member; pub mod rbac; diff --git a/src/ss/account/bank.rs b/src/ss/account/bank.rs index d1877ae..5231388 100644 --- a/src/ss/account/bank.rs +++ b/src/ss/account/bank.rs @@ -1,6 +1,5 @@ use crate::protobuf::rpc; use crate::protobuf::pagination; -use crate::models::account; use crate::models::core; const SUBJECT: &str = "bet.beteran.ss.account.bank"; @@ -29,10 +28,12 @@ pub struct CreateBankResponse { } /// Nested message and enum types in `CreateBankResponse`. pub mod create_bank_response { + use crate::models::account; + #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, optional, tag="1")] - pub bank: ::core::option::Option, + pub bank: ::core::option::Option, } } @@ -66,10 +67,12 @@ pub struct ListBanksResponse { } /// Nested message and enum types in `ListBanksResponse`. pub mod list_banks_response { - #[derive(Clone, PartialEq, ::prost::Message)] + use crate::models::account; + + #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, repeated, tag="1")] - pub banks: ::prost::alloc::vec::Vec, + pub banks: ::prost::alloc::vec::Vec, } } @@ -99,10 +102,12 @@ pub struct UpdateBankResponse { } /// Nested message and enum types in `UpdateBankResponse`. pub mod update_bank_response { - #[derive(Clone, PartialEq, ::prost::Message)] + use crate::models::account; + + #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, optional, tag="1")] - pub bank: ::core::option::Option, + pub bank: ::core::option::Option, } }