diff --git a/src/ss/member/identity.rs b/src/ss/member/identity.rs index f722514..53605fc 100644 --- a/src/ss/member/identity.rs +++ b/src/ss/member/identity.rs @@ -1,7 +1,10 @@ use crate::models::core; use crate::protobuf::rpc; - +use crate::models::member; + 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 = const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication"); @@ -107,3 +110,13 @@ pub mod signin_response { 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, + #[prost(message, optional, tag="2")] + pub member: ::core::option::Option, +}