site_url is added

This commit is contained in:
병준 박 2022-07-15 04:10:17 +00:00
parent 8616b0b9b1
commit cabe06d9b9
2 changed files with 17 additions and 14 deletions

View File

@ -2,22 +2,23 @@ use crate::protobuf::rpc;
const SUBJECT: &str = "bet.beteran.c2se.backend.identity"; const SUBJECT: &str = "bet.beteran.c2se.backend.identity";
pub const SUBJECT_SIGNIN: &str = pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
const_format::concatcp!(SUBJECT, ".Signin");
/// subject = bet.beteran.c2se.backend.identity.Signin /// subject = bet.beteran.c2se.backend.identity.Signin
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninRequest { pub struct SigninRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String, pub site_url: ::prost::alloc::string::String,
#[prost(string, tag="2")] #[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String, pub username: ::prost::alloc::string::String,
#[prost(string, tag="3")] #[prost(string, tag = "3")]
pub security_code: ::prost::alloc::string::String, pub password: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub security_code: ::prost::alloc::string::String,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninResponse { pub struct SigninResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>, pub error: ::core::option::Option<rpc::Error>,
#[prost(string, optional, tag="2")] #[prost(string, optional, tag = "2")]
pub token: ::core::option::Option<::prost::alloc::string::String>, pub token: ::core::option::Option<::prost::alloc::string::String>,
} }

View File

@ -7,10 +7,12 @@ pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninRequest { pub struct SigninRequest {
#[prost(string, tag = "1")] #[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String, pub site_url: ::prost::alloc::string::String,
#[prost(string, tag = "2")] #[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String, pub username: ::prost::alloc::string::String,
#[prost(string, tag = "3")] #[prost(string, tag = "3")]
pub password: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub security_code: ::prost::alloc::string::String, pub security_code: ::prost::alloc::string::String,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]