event is added

This commit is contained in:
병준 박 2022-08-11 05:53:17 +00:00
parent cc13112acc
commit be2be6107e

View File

@ -1,7 +1,10 @@
use crate::models::core; use crate::models::core;
use crate::protobuf::rpc; use crate::protobuf::rpc;
use crate::models::member;
const SUBJECT: &str = "bet.beteran.ss.member.identity"; const SUBJECT: &str = "bet.beteran.ss.member.identity";
const EVENT_SUBJECT: &str = "bet.beteran.ss.event.member.identity";
pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str = pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication"); const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication");
@ -107,3 +110,13 @@ pub mod signin_response {
pub access_token: ::prost::alloc::string::String, pub access_token: ::prost::alloc::string::String,
} }
} }
pub const EVENT_SUBJECT_AFTER_SIGNIN: &str = const_format::concatcp!(EVENT_SUBJECT, ".AfterSignin");
/// subject = bet.beteran.ss.event.member.identity.AfterSignin
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AfterSigninEvent {
#[prost(message, optional, tag="1")]
pub client: ::core::option::Option<core::network::Client>,
#[prost(message, optional, tag="2")]
pub member: ::core::option::Option<member::Member>,
}