From 89522014a0bb239262ded934e6426e8bdf0a0bc5 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Tue, 12 Jul 2022 06:50:40 +0000 Subject: [PATCH] names of subject are added --- src/c2se/backend/identity.rs | 3 +++ src/c2se/backend/member.rs | 10 ++++++++++ src/c2se/frontend/identity.rs | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/src/c2se/backend/identity.rs b/src/c2se/backend/identity.rs index 97a6e7f..1b23f12 100644 --- a/src/c2se/backend/identity.rs +++ b/src/c2se/backend/identity.rs @@ -1,6 +1,9 @@ use crate::protobuf::rpc; +const SUBJECT: &str = "bet.beteran.c2se.backend.identity"; +pub const SUBJECT_SIGNIN: &str = + const_format::concatcp!(SUBJECT, ".Signin"); /// subject = bet.beteran.c2se.backend.identity.Signin #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninRequest { diff --git a/src/c2se/backend/member.rs b/src/c2se/backend/member.rs index 91ea376..8f99d63 100644 --- a/src/c2se/backend/member.rs +++ b/src/c2se/backend/member.rs @@ -2,6 +2,10 @@ use crate::protobuf::rpc; use crate::protobuf::pagination; use crate::models::member; +const SUBJECT: &str = "bet.beteran.c2se.backend.member"; + +pub const SUBJECT_LIST_MEMBERS: &str = + const_format::concatcp!(SUBJECT, ".ListMembers"); /// subject = bet.beteran.c2se.backend.member.ListMembers #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListMembersRequest { @@ -19,6 +23,9 @@ pub struct ListMembersResponse { #[prost(message, repeated, tag="2")] pub members: ::prost::alloc::vec::Vec, } + +pub const SUBJECT_GET_MEMBER: &str = + const_format::concatcp!(SUBJECT, ".GetMember"); /// subject = bet.beteran.c2se.backend.member.GetMember #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetMemberRequest { @@ -32,6 +39,9 @@ pub struct GetMemberResponse { #[prost(message, optional, tag="2")] pub member: ::core::option::Option, } + +pub const SUBJECT_GET_MEMBER_BY_USERNAME: &str = + const_format::concatcp!(SUBJECT, ".GetMemberByUsername"); /// subject = bet.beteran.c2se.backend.member.GetMemberByUsername #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetMemberByUsernameRequest { diff --git a/src/c2se/frontend/identity.rs b/src/c2se/frontend/identity.rs index 8c641aa..f409ecc 100644 --- a/src/c2se/frontend/identity.rs +++ b/src/c2se/frontend/identity.rs @@ -1,5 +1,10 @@ use crate::protobuf::rpc; + +const SUBJECT: &str = "bet.beteran.c2se.frontend.identity"; + +pub const SUBJECT_SIGNIN: &str = + const_format::concatcp!(SUBJECT, ".Signin"); /// subject = bet.beteran.c2se.frontend.identity.Signin #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninRequest {