diff --git a/src/c2se/backend/identity.rs b/src/c2se/backend/identity.rs index 79147f8..8f27cf6 100644 --- a/src/c2se/backend/identity.rs +++ b/src/c2se/backend/identity.rs @@ -2,6 +2,17 @@ use crate::protobuf::rpc; const SUBJECT: &str = "bet.beteran.c2se.backend.identity"; +pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str = + const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication"); +/// subject = bet.beteran.c2se.backend.identity.CheckUsernameForDuplication; + +pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str = + const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication"); +/// subject = bet.beteran.c2se.backend.identity.CheckNicknameForDuplication; + +pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha"); +/// subject = bet.beteran.c2se.backend.identity.Captcha + pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); /// subject = bet.beteran.c2se.backend.identity.Signin #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/src/c2se/common/identity.rs b/src/c2se/common/identity.rs index a858973..d38c4d0 100644 --- a/src/c2se/common/identity.rs +++ b/src/c2se/common/identity.rs @@ -2,9 +2,6 @@ use crate::protobuf::rpc; const SUBJECT: &str = "bet.beteran.c2se.common.identity"; -pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str = - const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication"); -/// subject = bet.beteran.c2se.common.identity.CheckUsernameForDuplication; #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckUsernameForDuplicationRequest { #[prost(string, tag = "1")] @@ -19,9 +16,6 @@ pub struct CheckUsernameForDuplicationResponse { pub duplicated: ::core::option::Option, } -pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str = - const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication"); -/// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication; #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckNicknameForDuplicationRequest { #[prost(string, tag = "1")] @@ -36,8 +30,6 @@ pub struct CheckNicknameForDuplicationResponse { pub duplicated: ::core::option::Option, } -pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha"); -/// subject = bet.beteran.c2se.common.identity.Captcha #[derive(Clone, PartialEq, ::prost::Message)] pub struct CaptchaRequest {} diff --git a/src/c2se/frontend/identity.rs b/src/c2se/frontend/identity.rs index eeca2c7..5401339 100644 --- a/src/c2se/frontend/identity.rs +++ b/src/c2se/frontend/identity.rs @@ -2,6 +2,17 @@ use crate::protobuf::rpc; const SUBJECT: &str = "bet.beteran.c2se.frontend.identity"; +pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str = + const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication"); +/// subject = bet.beteran.c2se.frontend.identity.CheckUsernameForDuplication; + +pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str = + const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication"); +/// subject = bet.beteran.c2se.frontend.identity.CheckNicknameForDuplication; + +pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha"); +/// subject = bet.beteran.c2se.frontend.identity.Captcha + pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); /// subject = bet.beteran.c2se.frontend.identity.Signin #[derive(Clone, PartialEq, ::prost::Message)]