From cabe06d9b955b6019a6a10a1e80cd2e448ee80ce Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Fri, 15 Jul 2022 04:10:17 +0000 Subject: [PATCH] site_url is added --- src/c2se/backend/identity.rs | 25 +++++++++++++------------ src/c2se/frontend/identity.rs | 6 ++++-- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/c2se/backend/identity.rs b/src/c2se/backend/identity.rs index 1b23f12..a0f45cc 100644 --- a/src/c2se/backend/identity.rs +++ b/src/c2se/backend/identity.rs @@ -2,22 +2,23 @@ use crate::protobuf::rpc; const SUBJECT: &str = "bet.beteran.c2se.backend.identity"; -pub const SUBJECT_SIGNIN: &str = - const_format::concatcp!(SUBJECT, ".Signin"); +pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); /// subject = bet.beteran.c2se.backend.identity.Signin #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninRequest { - #[prost(string, tag="1")] - pub username: ::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 = "1")] + pub site_url: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub username: ::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, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninResponse { - #[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(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(string, optional, tag = "2")] + pub token: ::core::option::Option<::prost::alloc::string::String>, } diff --git a/src/c2se/frontend/identity.rs b/src/c2se/frontend/identity.rs index 9b8dc49..f14901e 100644 --- a/src/c2se/frontend/identity.rs +++ b/src/c2se/frontend/identity.rs @@ -7,10 +7,12 @@ 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 site_url: ::prost::alloc::string::String, #[prost(string, tag = "2")] - pub password: ::prost::alloc::string::String, + pub username: ::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, } #[derive(Clone, PartialEq, ::prost::Message)]