From a8e670f3b61062a61888172e609c276becb2bdd8 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Mon, 15 Aug 2022 06:35:07 +0000 Subject: [PATCH] events are added --- src/ss/identity.rs | 19 ++++++++++++++++++ src/ss/member.rs | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/src/ss/identity.rs b/src/ss/identity.rs index 1dc515c..8908628 100644 --- a/src/ss/identity.rs +++ b/src/ss/identity.rs @@ -9,6 +9,8 @@ pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha"); pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); pub const EVENT_SUBJECT_AFTER_SIGNIN: &str = const_format::concatcp!(EVENT_SUBJECT, ".AfterSignin"); +pub const EVENT_SUBJECT_AFTER_SIGNOUT: &str = + const_format::concatcp!(EVENT_SUBJECT, ".AfterSignout"); /// subject = bet.beteran.ss.identity.CheckUsernameForDuplication; #[derive(Clone, PartialEq, ::prost::Message)] @@ -155,3 +157,20 @@ pub mod after_signin_event { pub member: ::core::option::Option, } } + +/// subject = bet.beteran.ss_event.identity.AfterSignout +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AfterSignoutEvent { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub event: ::core::option::Option, +} +/// Nested message and enum types in `AfterSignoutEvent`. +pub mod after_signout_event { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Event { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } +} diff --git a/src/ss/member.rs b/src/ss/member.rs index 742b841..dd95ea1 100644 --- a/src/ss/member.rs +++ b/src/ss/member.rs @@ -316,3 +316,52 @@ pub mod delete_member_response { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result {} } + +/// subject = bet.beteran.ss_event.member.AfterCreateMember +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AfterCreateMemberEvent { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub event: ::core::option::Option, +} +/// Nested message and enum types in `AfterCreateMemberEvent`. +pub mod after_create_member_event { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Event { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } +} +/// subject = bet.beteran.ss_event.member.AfterUpdateMember +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AfterUpdateMemberEvent { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub event: ::core::option::Option, +} +/// Nested message and enum types in `AfterUpdateMemberEvent`. +pub mod after_update_member_event { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Event { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } +} +/// subject = bet.beteran.ss_event.member.AfterDeleteMember +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AfterDeleteMemberEvent { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub event: ::core::option::Option, +} +/// Nested message and enum types in `AfterDeleteMemberEvent`. +pub mod after_delete_member_event { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Event { + #[prost(message, optional, tag = "1")] + pub member: ::core::option::Option, + } +}