From dcc27980108a9a994c3a426c1aef2b850c6e7290 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 1 Sep 2022 08:05:55 +0000 Subject: [PATCH] models are modified --- src/c2se/member.rs | 20 ++++++++++++++------ src/models/api/betting.rs | 20 +------------------- src/ss/api/betting.rs | 2 +- src/ss/member.rs | 30 ++++++++++++++++++------------ 4 files changed, 34 insertions(+), 38 deletions(-) diff --git a/src/c2se/member.rs b/src/c2se/member.rs index 8f8bbc9..55189a7 100644 --- a/src/c2se/member.rs +++ b/src/c2se/member.rs @@ -140,20 +140,28 @@ pub mod list_members_request { #[prost(string, optional, tag = "4")] pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "5")] - pub username_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "6")] - pub nickname_like: ::core::option::Option<::prost::alloc::string::String>, + pub username: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, repeated, tag = "6")] + pub usernames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, optional, tag = "7")] - pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>, + pub username_like: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "8")] + pub nickname: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, repeated, tag = "9")] + pub nicknames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(string, optional, tag = "10")] + pub nickname_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "11")] + pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "12")] pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>, #[prost( enumeration = "crate::models::member::MemberState", optional, - tag = "9" + tag = "13" )] pub state: ::core::option::Option, - #[prost(uint64, optional, tag = "10")] + #[prost(uint64, optional, tag = "14")] pub deleted_at: ::core::option::Option, } } diff --git a/src/models/api/betting.rs b/src/models/api/betting.rs index ce19303..093dd18 100644 --- a/src/models/api/betting.rs +++ b/src/models/api/betting.rs @@ -96,23 +96,5 @@ pub struct BettingHistoryModel { #[prost(uint64, tag = "23")] pub utc_created_at: u64, #[prost(message, optional, tag = "24")] - pub member: ::core::option::Option, -} -/// Nested message and enum types in `BettingHistoryModel`. -pub mod betting_history_model { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Member { - #[prost(string, tag = "1")] - pub site_id: ::prost::alloc::string::String, - #[prost(string, tag = "2")] - pub member_class_id: ::prost::alloc::string::String, - #[prost(string, tag = "3")] - pub member_level_id: ::prost::alloc::string::String, - #[prost(string, optional, tag = "4")] - pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, tag = "5")] - pub nickname: ::prost::alloc::string::String, - #[prost(string, optional, tag = "6")] - pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>, - } + pub member: ::core::option::Option, } diff --git a/src/ss/api/betting.rs b/src/ss/api/betting.rs index 1564da0..c869461 100644 --- a/src/ss/api/betting.rs +++ b/src/ss/api/betting.rs @@ -105,6 +105,6 @@ pub mod list_betting_history_response { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { #[prost(message, repeated, tag = "1")] - pub betting_history: ::prost::alloc::vec::Vec, + pub betting_history: ::prost::alloc::vec::Vec, } } diff --git a/src/ss/member.rs b/src/ss/member.rs index c29cb0a..a40345e 100644 --- a/src/ss/member.rs +++ b/src/ss/member.rs @@ -46,15 +46,13 @@ pub mod create_member_request { pub password: ::prost::alloc::string::String, #[prost(string, tag = "7")] pub nickname: ::prost::alloc::string::String, - #[prost(enumeration = "crate::models::member::MemberState", tag = "8")] - pub state: i32, - #[prost(string, optional, tag = "9")] + #[prost(string, optional, tag = "8")] pub mobile_phone_number: ::core::option::Option<::prost::alloc::string::String>, - #[prost(message, optional, tag = "10")] + #[prost(message, optional, tag = "9")] pub bank_account: ::core::option::Option, - #[prost(message, optional, tag = "11")] + #[prost(message, optional, tag = "10")] pub game_setting: ::core::option::Option, - #[prost(message, optional, tag = "12")] + #[prost(message, optional, tag = "11")] pub settlement_setting: ::core::option::Option, } /// Nested message and enum types in `Request`. @@ -183,20 +181,28 @@ pub mod list_members_request { #[prost(string, optional, tag = "4")] pub parent_member_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "5")] - pub username_like: ::core::option::Option<::prost::alloc::string::String>, - #[prost(string, optional, tag = "6")] - pub nickname_like: ::core::option::Option<::prost::alloc::string::String>, + pub username: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, repeated, tag = "6")] + pub usernames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, optional, tag = "7")] - pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>, + pub username_like: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag = "8")] + pub nickname: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, repeated, tag = "9")] + pub nicknames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(string, optional, tag = "10")] + pub nickname_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "11")] + pub mobile_phone_number_like: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "12")] pub last_signined_ip: ::core::option::Option<::prost::alloc::string::String>, #[prost( enumeration = "crate::models::member::MemberState", optional, - tag = "9" + tag = "13" )] pub state: ::core::option::Option, - #[prost(uint64, optional, tag = "10")] + #[prost(uint64, optional, tag = "14")] pub deleted_at: ::core::option::Option, } }