From 4a746566ffd141a21379daf1996bd3c616856213 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 18 Aug 2022 03:40:24 +0000 Subject: [PATCH] vendor is added --- src/c2se/api/mod.rs | 1 + src/c2se/api/vendor.rs | 42 +++++++++++++++++++++++++ src/c2se/backend/api/mod.rs | 0 src/c2se/backend/api/vendor.rs | 3 ++ src/c2se/backend/mod.rs | 3 +- src/c2se/mod.rs | 1 + src/models/api/mod.rs | 1 + src/models/api/vendor.rs | 27 ++++++++++++++++ src/models/mod.rs | 7 +++-- src/ss/api/mod.rs | 0 src/ss/api/vendor.rs | 57 ++++++++++++++++++++++++++++++++++ src/ss/mod.rs | 3 +- 12 files changed, 140 insertions(+), 5 deletions(-) create mode 100644 src/c2se/api/mod.rs create mode 100644 src/c2se/api/vendor.rs create mode 100644 src/c2se/backend/api/mod.rs create mode 100644 src/c2se/backend/api/vendor.rs create mode 100644 src/models/api/mod.rs create mode 100644 src/models/api/vendor.rs create mode 100644 src/ss/api/mod.rs create mode 100644 src/ss/api/vendor.rs diff --git a/src/c2se/api/mod.rs b/src/c2se/api/mod.rs new file mode 100644 index 0000000..1384ca2 --- /dev/null +++ b/src/c2se/api/mod.rs @@ -0,0 +1 @@ +pub mod vendor; diff --git a/src/c2se/api/vendor.rs b/src/c2se/api/vendor.rs new file mode 100644 index 0000000..8caca15 --- /dev/null +++ b/src/c2se/api/vendor.rs @@ -0,0 +1,42 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListVendorsRequest { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, +} +/// Nested message and enum types in `ListVendorsRequest`. +pub mod list_vendors_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(uint64, optional, tag = "1")] + pub company_id: ::core::option::Option, + #[prost(uint64, optional, tag = "2")] + pub vendor_id: ::core::option::Option, + #[prost(string, optional, tag = "3")] + pub key_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "4")] + pub name_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "5")] + pub category_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "6")] + pub is_enable: ::core::option::Option<::prost::alloc::string::String>, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListVendorsResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListVendorsResponse`. +pub mod list_vendors_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub vendors: ::prost::alloc::vec::Vec, + } +} diff --git a/src/c2se/backend/api/mod.rs b/src/c2se/backend/api/mod.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/c2se/backend/api/vendor.rs b/src/c2se/backend/api/vendor.rs new file mode 100644 index 0000000..49db957 --- /dev/null +++ b/src/c2se/backend/api/vendor.rs @@ -0,0 +1,3 @@ +const SUBJECT: &str = "bet.beteran.c2se.backend.api.vendor"; + +pub const SUBJECT_LIST_VENDORS: &str = const_format::concatcp!(SUBJECT, ".ListVendors"); diff --git a/src/c2se/backend/mod.rs b/src/c2se/backend/mod.rs index 6aff3c8..f26d31e 100644 --- a/src/c2se/backend/mod.rs +++ b/src/c2se/backend/mod.rs @@ -1,9 +1,10 @@ +pub mod api; pub mod bank; pub mod identity; +pub mod member; pub mod member_bank_account; pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; pub mod member_level; -pub mod member; pub mod site; diff --git a/src/c2se/mod.rs b/src/c2se/mod.rs index ed5cb51..2783705 100644 --- a/src/c2se/mod.rs +++ b/src/c2se/mod.rs @@ -1,3 +1,4 @@ +pub mod api; pub mod backend; pub mod bank; pub mod core; diff --git a/src/models/api/mod.rs b/src/models/api/mod.rs new file mode 100644 index 0000000..1384ca2 --- /dev/null +++ b/src/models/api/mod.rs @@ -0,0 +1 @@ +pub mod vendor; diff --git a/src/models/api/vendor.rs b/src/models/api/vendor.rs new file mode 100644 index 0000000..cf72064 --- /dev/null +++ b/src/models/api/vendor.rs @@ -0,0 +1,27 @@ +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Vendor { + #[prost(uint64, tag = "1")] + pub id: u64, + #[prost(uint64, tag = "2")] + pub company_id: u64, + #[prost(uint64, tag = "3")] + pub vendor_id: u64, + #[prost(string, tag = "4")] + pub key: ::prost::alloc::string::String, + #[prost(string, tag = "5")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag = "6")] + pub category: ::prost::alloc::string::String, + #[prost(uint64, tag = "7")] + pub max_bet_casino: u64, + #[prost(uint64, tag = "8")] + pub max_bet_slot: u64, + #[prost(string, tag = "9")] + pub is_enable: ::prost::alloc::string::String, + #[prost(uint64, tag = "10")] + pub bet_count: u64, + #[prost(uint64, tag = "11")] + pub created_at: u64, + #[prost(uint64, tag = "12")] + pub updated_at: u64, +} diff --git a/src/models/mod.rs b/src/models/mod.rs index 8a3dbd6..df028e5 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,5 +1,7 @@ -pub mod core; +pub mod api; pub mod bank; +pub mod core; +pub mod member; pub mod member_bank_account; pub mod member_bank_deposit; pub mod member_bank_withdraw; @@ -8,8 +10,7 @@ pub mod member_level; pub mod member_permission; pub mod member_role; pub mod member_session; -pub mod member; -pub mod resource_action; pub mod resource; +pub mod resource_action; pub mod role; pub mod site; diff --git a/src/ss/api/mod.rs b/src/ss/api/mod.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/ss/api/vendor.rs b/src/ss/api/vendor.rs new file mode 100644 index 0000000..c0df8a0 --- /dev/null +++ b/src/ss/api/vendor.rs @@ -0,0 +1,57 @@ +const SUBJECT: &str = "bet.beteran.ss.api.vendor"; + +pub const SUBJECT_LIST_VENDORS: &str = const_format::concatcp!(SUBJECT, ".ListVendors"); + +/// subject = bet.beteran.ss.api.vendor.ListVendors +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListVendorsRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `ListVendorsRequest`. +pub mod list_vendors_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(message, optional, tag = "1")] + pub pagination: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub sorts: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag = "3")] + pub search: ::core::option::Option, + } + /// Nested message and enum types in `Request`. + pub mod request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Search { + #[prost(uint64, optional, tag = "1")] + pub company_id: ::core::option::Option, + #[prost(uint64, optional, tag = "2")] + pub vendor_id: ::core::option::Option, + #[prost(string, optional, tag = "3")] + pub key_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "4")] + pub name_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "5")] + pub category_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "6")] + pub is_enable: ::core::option::Option<::prost::alloc::string::String>, + } + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListVendorsResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `ListVendorsResponse`. +pub mod list_vendors_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(message, repeated, tag = "1")] + pub vendors: ::prost::alloc::vec::Vec, + } +} diff --git a/src/ss/mod.rs b/src/ss/mod.rs index 6aff3c8..f26d31e 100644 --- a/src/ss/mod.rs +++ b/src/ss/mod.rs @@ -1,9 +1,10 @@ +pub mod api; pub mod bank; pub mod identity; +pub mod member; pub mod member_bank_account; pub mod member_bank_deposit; pub mod member_bank_withdraw; pub mod member_class; pub mod member_level; -pub mod member; pub mod site;