From 479d00049fdfa8389a2ed0bb882c66c8af4733ab Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Mon, 15 Aug 2022 06:40:09 +0000 Subject: [PATCH] events of member are modified --- src/ss/member.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/ss/member.rs b/src/ss/member.rs index dd95ea1..10ccc86 100644 --- a/src/ss/member.rs +++ b/src/ss/member.rs @@ -1,4 +1,5 @@ const SUBJECT: &str = "bet.beteran.ss.member"; +const EVENT_SUBJECT: &str = "bet.beteran.ss_event.member"; pub const SUBJECT_CREATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".CreateMember"); pub const SUBJECT_LIST_MEMBERS: &str = const_format::concatcp!(SUBJECT, ".ListMembers"); @@ -10,6 +11,13 @@ pub const SUBJECT_UPDATE_MEMBER_FOR_STATE: &str = const_format::concatcp!(SUBJECT, ".UpdateMemberForState"); pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember"); +pub const EVENT_SUBJECT_AFTER_CREATE_MEMBER: &str = + const_format::concatcp!(EVENT_SUBJECT, ".AfterCreateMember"); +pub const EVENT_SUBJECT_AFTER_UPDATE_MEMBER: &str = + const_format::concatcp!(EVENT_SUBJECT, ".AfterUpdateMember"); +pub const EVENT_SUBJECT_AFTER_DELETE_MEMBER: &str = + const_format::concatcp!(EVENT_SUBJECT, ".AfterDeleteMember"); + /// subject = bet.beteran.ss.member.CreateMember #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateMemberRequest { @@ -330,7 +338,7 @@ pub mod after_create_member_event { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Event { #[prost(message, optional, tag = "1")] - pub member: ::core::option::Option, + pub member: ::core::option::Option, } } /// subject = bet.beteran.ss_event.member.AfterUpdateMember @@ -346,7 +354,7 @@ pub mod after_update_member_event { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Event { #[prost(message, optional, tag = "1")] - pub member: ::core::option::Option, + pub member: ::core::option::Option, } } /// subject = bet.beteran.ss_event.member.AfterDeleteMember @@ -362,6 +370,6 @@ pub mod after_delete_member_event { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Event { #[prost(message, optional, tag = "1")] - pub member: ::core::option::Option, + pub member: ::core::option::Option, } }