vendor is added
This commit is contained in:
parent
479d00049f
commit
4a746566ff
1
src/c2se/api/mod.rs
Normal file
1
src/c2se/api/mod.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub mod vendor;
|
42
src/c2se/api/vendor.rs
Normal file
42
src/c2se/api/vendor.rs
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct ListVendorsRequest {
|
||||||
|
#[prost(message, optional, tag = "1")]
|
||||||
|
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
|
||||||
|
#[prost(message, repeated, tag = "2")]
|
||||||
|
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
|
||||||
|
#[prost(message, optional, tag = "3")]
|
||||||
|
pub search: ::core::option::Option<list_vendors_request::Search>,
|
||||||
|
}
|
||||||
|
/// 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<u64>,
|
||||||
|
#[prost(uint64, optional, tag = "2")]
|
||||||
|
pub vendor_id: ::core::option::Option<u64>,
|
||||||
|
#[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<crate::protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag = "2")]
|
||||||
|
pub result: ::core::option::Option<list_vendors_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<crate::models::api::vendor::Vendor>,
|
||||||
|
}
|
||||||
|
}
|
0
src/c2se/backend/api/mod.rs
Normal file
0
src/c2se/backend/api/mod.rs
Normal file
3
src/c2se/backend/api/vendor.rs
Normal file
3
src/c2se/backend/api/vendor.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
const SUBJECT: &str = "bet.beteran.c2se.backend.api.vendor";
|
||||||
|
|
||||||
|
pub const SUBJECT_LIST_VENDORS: &str = const_format::concatcp!(SUBJECT, ".ListVendors");
|
|
@ -1,9 +1,10 @@
|
||||||
|
pub mod api;
|
||||||
pub mod bank;
|
pub mod bank;
|
||||||
pub mod identity;
|
pub mod identity;
|
||||||
|
pub mod member;
|
||||||
pub mod member_bank_account;
|
pub mod member_bank_account;
|
||||||
pub mod member_bank_deposit;
|
pub mod member_bank_deposit;
|
||||||
pub mod member_bank_withdraw;
|
pub mod member_bank_withdraw;
|
||||||
pub mod member_class;
|
pub mod member_class;
|
||||||
pub mod member_level;
|
pub mod member_level;
|
||||||
pub mod member;
|
|
||||||
pub mod site;
|
pub mod site;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
pub mod api;
|
||||||
pub mod backend;
|
pub mod backend;
|
||||||
pub mod bank;
|
pub mod bank;
|
||||||
pub mod core;
|
pub mod core;
|
||||||
|
|
1
src/models/api/mod.rs
Normal file
1
src/models/api/mod.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub mod vendor;
|
27
src/models/api/vendor.rs
Normal file
27
src/models/api/vendor.rs
Normal file
|
@ -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,
|
||||||
|
}
|
|
@ -1,5 +1,7 @@
|
||||||
pub mod core;
|
pub mod api;
|
||||||
pub mod bank;
|
pub mod bank;
|
||||||
|
pub mod core;
|
||||||
|
pub mod member;
|
||||||
pub mod member_bank_account;
|
pub mod member_bank_account;
|
||||||
pub mod member_bank_deposit;
|
pub mod member_bank_deposit;
|
||||||
pub mod member_bank_withdraw;
|
pub mod member_bank_withdraw;
|
||||||
|
@ -8,8 +10,7 @@ pub mod member_level;
|
||||||
pub mod member_permission;
|
pub mod member_permission;
|
||||||
pub mod member_role;
|
pub mod member_role;
|
||||||
pub mod member_session;
|
pub mod member_session;
|
||||||
pub mod member;
|
|
||||||
pub mod resource_action;
|
|
||||||
pub mod resource;
|
pub mod resource;
|
||||||
|
pub mod resource_action;
|
||||||
pub mod role;
|
pub mod role;
|
||||||
pub mod site;
|
pub mod site;
|
||||||
|
|
0
src/ss/api/mod.rs
Normal file
0
src/ss/api/mod.rs
Normal file
57
src/ss/api/vendor.rs
Normal file
57
src/ss/api/vendor.rs
Normal file
|
@ -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<crate::models::core::network::Client>,
|
||||||
|
#[prost(message, optional, tag = "2")]
|
||||||
|
pub request: ::core::option::Option<list_vendors_request::Request>,
|
||||||
|
}
|
||||||
|
/// 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<crate::protobuf::pagination::Pagination>,
|
||||||
|
#[prost(message, repeated, tag = "2")]
|
||||||
|
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
|
||||||
|
#[prost(message, optional, tag = "3")]
|
||||||
|
pub search: ::core::option::Option<request::Search>,
|
||||||
|
}
|
||||||
|
/// 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<u64>,
|
||||||
|
#[prost(uint64, optional, tag = "2")]
|
||||||
|
pub vendor_id: ::core::option::Option<u64>,
|
||||||
|
#[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<crate::protobuf::rpc::Error>,
|
||||||
|
#[prost(message, optional, tag = "2")]
|
||||||
|
pub result: ::core::option::Option<list_vendors_response::Result>,
|
||||||
|
}
|
||||||
|
/// 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<create::models::api::vendor::Vendor>,
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1,10 @@
|
||||||
|
pub mod api;
|
||||||
pub mod bank;
|
pub mod bank;
|
||||||
pub mod identity;
|
pub mod identity;
|
||||||
|
pub mod member;
|
||||||
pub mod member_bank_account;
|
pub mod member_bank_account;
|
||||||
pub mod member_bank_deposit;
|
pub mod member_bank_deposit;
|
||||||
pub mod member_bank_withdraw;
|
pub mod member_bank_withdraw;
|
||||||
pub mod member_class;
|
pub mod member_class;
|
||||||
pub mod member_level;
|
pub mod member_level;
|
||||||
pub mod member;
|
|
||||||
pub mod site;
|
pub mod site;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user