From f8373270e99e83ebe1afe9829ccfd44c5b50960e Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sun, 17 Jul 2022 05:47:16 +0000 Subject: [PATCH] protocols are modified --- src/c2se/backend/identity.rs | 10 +++++++--- src/c2se/frontend/identity.rs | 10 +++++++--- src/ss/member/identity.rs | 10 +++++++--- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/c2se/backend/identity.rs b/src/c2se/backend/identity.rs index 34360d2..f8cd7d5 100644 --- a/src/c2se/backend/identity.rs +++ b/src/c2se/backend/identity.rs @@ -11,6 +11,8 @@ pub struct CaptchaResponse { #[prost(message, optional, tag = "1")] pub error: ::core::option::Option, #[prost(string, optional, tag = "2")] + pub token: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "3")] pub image: ::core::option::Option<::prost::alloc::string::String>, } @@ -19,11 +21,13 @@ pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninRequest { #[prost(string, tag = "1")] - pub username: ::prost::alloc::string::String, + pub token: ::prost::alloc::string::String, #[prost(string, tag = "2")] - pub password: ::prost::alloc::string::String, - #[prost(string, tag = "3")] pub security_code: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub username: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub password: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninResponse { diff --git a/src/c2se/frontend/identity.rs b/src/c2se/frontend/identity.rs index b28902a..f80faed 100644 --- a/src/c2se/frontend/identity.rs +++ b/src/c2se/frontend/identity.rs @@ -11,6 +11,8 @@ pub struct CaptchaResponse { #[prost(message, optional, tag = "1")] pub error: ::core::option::Option, #[prost(string, optional, tag = "2")] + pub token: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "3")] pub image: ::core::option::Option<::prost::alloc::string::String>, } @@ -19,11 +21,13 @@ pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninRequest { #[prost(string, tag = "1")] - pub username: ::prost::alloc::string::String, + pub token: ::prost::alloc::string::String, #[prost(string, tag = "2")] - pub password: ::prost::alloc::string::String, - #[prost(string, tag = "3")] pub security_code: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub username: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub password: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninResponse { diff --git a/src/ss/member/identity.rs b/src/ss/member/identity.rs index 08aa4cb..e8385a4 100644 --- a/src/ss/member/identity.rs +++ b/src/ss/member/identity.rs @@ -15,6 +15,8 @@ pub struct CaptchaResponse { #[prost(message, optional, tag = "1")] pub error: ::core::option::Option, #[prost(string, optional, tag = "2")] + pub token: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag = "3")] pub image: ::core::option::Option<::prost::alloc::string::String>, } @@ -25,11 +27,13 @@ pub struct SigninRequest { #[prost(message, optional, tag = "1")] pub client: ::core::option::Option, #[prost(string, tag = "2")] - pub username: ::prost::alloc::string::String, + pub token: ::prost::alloc::string::String, #[prost(string, tag = "3")] - pub password: ::prost::alloc::string::String, - #[prost(string, tag = "4")] pub security_code: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub username: ::prost::alloc::string::String, + #[prost(string, tag = "5")] + pub password: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninResponse {