common is added
This commit is contained in:
parent
f8373270e9
commit
9390008044
|
@ -2,20 +2,6 @@ use crate::protobuf::rpc;
|
|||
|
||||
const SUBJECT: &str = "bet.beteran.c2se.backend.identity";
|
||||
|
||||
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
|
||||
/// subject = bet.beteran.c2se.backend.identity.Captcha
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CaptchaRequest {}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CaptchaResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub error: ::core::option::Option<rpc::Error>,
|
||||
#[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>,
|
||||
}
|
||||
|
||||
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
|
||||
/// subject = bet.beteran.c2se.backend.identity.Signin
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
pub mod identity;
|
||||
pub mod member;
|
||||
|
|
52
src/c2se/common/identity.rs
Normal file
52
src/c2se/common/identity.rs
Normal file
|
@ -0,0 +1,52 @@
|
|||
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")]
|
||||
pub username: ::prost::alloc::string::String,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CheckUsernameForDuplicationResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub error: ::core::option::Option<rpc::Error>,
|
||||
#[prost(bool, optional, tag = "2")]
|
||||
pub duplicated: ::core::option::Option<bool>,
|
||||
}
|
||||
|
||||
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")]
|
||||
pub nickname: ::prost::alloc::string::String,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CheckNicknameForDuplicationResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub error: ::core::option::Option<rpc::Error>,
|
||||
#[prost(bool, optional, tag = "2")]
|
||||
pub duplicated: ::core::option::Option<bool>,
|
||||
}
|
||||
|
||||
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 {}
|
||||
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CaptchaResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub error: ::core::option::Option<rpc::Error>,
|
||||
#[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>,
|
||||
}
|
1
src/c2se/common/mod.rs
Normal file
1
src/c2se/common/mod.rs
Normal file
|
@ -0,0 +1 @@
|
|||
pub mod identity;
|
|
@ -2,20 +2,6 @@ use crate::protobuf::rpc;
|
|||
|
||||
const SUBJECT: &str = "bet.beteran.c2se.frontend.identity";
|
||||
|
||||
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
|
||||
/// subject = bet.beteran.c2se.frontend.identity.Captcha
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CaptchaRequest {}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CaptchaResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub error: ::core::option::Option<rpc::Error>,
|
||||
#[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>,
|
||||
}
|
||||
|
||||
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
|
||||
/// subject = bet.beteran.c2se.frontend.identity.Signin
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
|
@ -29,6 +15,7 @@ pub struct SigninRequest {
|
|||
#[prost(string, tag = "4")]
|
||||
pub password: ::prost::alloc::string::String,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct SigninResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
///
|
||||
pub mod backend;
|
||||
///
|
||||
pub mod common;
|
||||
///
|
||||
pub mod core;
|
||||
///
|
||||
|
|
|
@ -3,6 +3,42 @@ use crate::protobuf::rpc;
|
|||
|
||||
const SUBJECT: &str = "bet.beteran.ss.member.identity";
|
||||
|
||||
pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str =
|
||||
const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication");
|
||||
/// subject = bet.beteran.ss.member.identity.CheckUsernameForDuplication;
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CheckUsernameForDuplicationRequest {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub client: ::core::option::Option<core::network::Client>,
|
||||
#[prost(string, tag = "2")]
|
||||
pub username: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CheckUsernameForDuplicationResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub error: ::core::option::Option<rpc::Error>,
|
||||
#[prost(bool, optional, tag = "2")]
|
||||
pub duplicated: ::core::option::Option<bool>,
|
||||
}
|
||||
|
||||
pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str =
|
||||
const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication");
|
||||
/// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CheckNicknameForDuplicationRequest {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub client: ::core::option::Option<core::network::Client>,
|
||||
#[prost(string, tag = "2")]
|
||||
pub nickname: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CheckNicknameForDuplicationResponse {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub error: ::core::option::Option<rpc::Error>,
|
||||
#[prost(bool, optional, tag = "2")]
|
||||
pub duplicated: ::core::option::Option<bool>,
|
||||
}
|
||||
|
||||
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
|
||||
/// subject = bet.beteran.ss.member.identity.Captcha
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user