events of member are modified

This commit is contained in:
병준 박 2022-08-15 06:40:09 +00:00
parent a8e670f3b6
commit 479d00049f

View File

@ -1,4 +1,5 @@
const SUBJECT: &str = "bet.beteran.ss.member"; 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_CREATE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".CreateMember");
pub const SUBJECT_LIST_MEMBERS: &str = const_format::concatcp!(SUBJECT, ".ListMembers"); 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"); const_format::concatcp!(SUBJECT, ".UpdateMemberForState");
pub const SUBJECT_DELETE_MEMBER: &str = const_format::concatcp!(SUBJECT, ".DeleteMember"); 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 /// subject = bet.beteran.ss.member.CreateMember
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberRequest { pub struct CreateMemberRequest {
@ -330,7 +338,7 @@ pub mod after_create_member_event {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event { pub struct Event {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::Member>, pub member: ::core::option::Option<crate::models::member::MemberModel>,
} }
} }
/// subject = bet.beteran.ss_event.member.AfterUpdateMember /// subject = bet.beteran.ss_event.member.AfterUpdateMember
@ -346,7 +354,7 @@ pub mod after_update_member_event {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event { pub struct Event {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::Member>, pub member: ::core::option::Option<crate::models::member::MemberModel>,
} }
} }
/// subject = bet.beteran.ss_event.member.AfterDeleteMember /// subject = bet.beteran.ss_event.member.AfterDeleteMember
@ -362,6 +370,6 @@ pub mod after_delete_member_event {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event { pub struct Event {
#[prost(message, optional, tag = "1")] #[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<crate::models::member::Member>, pub member: ::core::option::Option<crate::models::member::MemberModel>,
} }
} }