responses are modified

This commit is contained in:
병준 박 2022-08-03 07:26:34 +00:00
parent 174ba470ed
commit 63748f4d80
5 changed files with 158 additions and 37 deletions

View File

@ -28,6 +28,16 @@ pub struct SigninRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_response::Result>,
}
/// Nested message and enum types in `SigninResponse`.
pub mod signin_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub session_id: ::prost::alloc::string::String,
}
}

View File

@ -1,5 +1,5 @@
use crate::models::member;
use crate::protobuf::pagination;
use crate::protobuf::rpc;
const SUBJECT: &str = "bet.beteran.c2se.backend.member";
@ -16,10 +16,21 @@ pub struct ListMembersRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMembersResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_members_response::Result>,
}
/// Nested message and enum types in `ListMembersResponse`.
pub mod list_members_response {
use crate::models::member;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, repeated, tag = "1")]
pub members: ::prost::alloc::vec::Vec<member::Member>,
}
}
pub const SUBJECT_GET_MEMBER: &str = const_format::concatcp!(SUBJECT, ".GetMember");
/// subject = bet.beteran.c2se.backend.member.GetMember
#[derive(Clone, PartialEq, ::prost::Message)]
@ -29,10 +40,20 @@ pub struct GetMemberRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_response::Result>,
}
/// Nested message and enum types in `GetMemberResponse`.
pub mod get_member_response {
use crate::models::member;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<member::Member>,
}
}
pub const SUBJECT_GET_MEMBER_BY_USERNAME: &str =
const_format::concatcp!(SUBJECT, ".GetMemberByUsername");
/// subject = bet.beteran.c2se.backend.member.GetMemberByUsername
@ -43,6 +64,17 @@ pub struct GetMemberByUsernameRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberByUsernameResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_by_username_response::Result>,
}
/// Nested message and enum types in `GetMemberByUsernameResponse`.
pub mod get_member_by_username_response {
use crate::models::member;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(message, optional, tag = "1")]
pub member: ::core::option::Option<member::Member>,
}
}

View File

@ -2,37 +2,70 @@ use crate::protobuf::rpc;
const SUBJECT: &str = "bet.beteran.c2se.common.identity";
pub const SUBJECT_CHECK_USERNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckUsernameForDuplication");
/// subject = bet.beteran.c2se.common.identity.CheckUsernameForDuplication;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationRequest {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_username_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckUsernameForDuplicationResponse`.
pub mod check_username_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication");
/// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationRequest {
#[prost(string, tag = "1")]
pub nickname: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_nickname_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckNicknameForDuplicationResponse`.
pub mod check_nickname_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
/// subject = bet.beteran.c2se.common.identity.Captcha
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<captcha_response::Result>,
}
/// Nested message and enum types in `CaptchaResponse`.
pub mod captcha_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub token: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub image: ::prost::alloc::string::String,
}
}

View File

@ -26,9 +26,18 @@ pub struct SigninRequest {
#[prost(string, tag = "4")]
pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_response::Result>,
}
/// Nested message and enum types in `SigninResponse`.
pub mod signin_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub session_id: ::prost::alloc::string::String,
}
}

View File

@ -15,10 +15,19 @@ pub struct CheckUsernameForDuplicationRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckUsernameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_username_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckUsernameForDuplicationResponse`.
pub mod check_username_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str =
const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication");
/// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
@ -31,10 +40,19 @@ pub struct CheckNicknameForDuplicationRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckNicknameForDuplicationResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<check_nickname_for_duplication_response::Result>,
}
/// Nested message and enum types in `CheckNicknameForDuplicationResponse`.
pub mod check_nickname_for_duplication_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(bool, tag = "1")]
pub duplicated: bool,
}
}
pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha");
/// subject = bet.beteran.ss.member.identity.Captcha
#[derive(Clone, PartialEq, ::prost::Message)]
@ -44,12 +62,21 @@ pub struct CaptchaRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaptchaResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<captcha_response::Result>,
}
/// Nested message and enum types in `CaptchaResponse`.
pub mod captcha_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub token: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub image: ::prost::alloc::string::String,
}
}
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
/// subject = bet.beteran.ss.member.identity.Signin
#[derive(Clone, PartialEq, ::prost::Message)]
@ -67,6 +94,16 @@ pub struct SigninRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigninResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<rpc::Error>,
#[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<signin_response::Result>,
}
/// Nested message and enum types in `SigninResponse`.
pub mod signin_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result {
#[prost(string, tag = "1")]
pub session_id: ::prost::alloc::string::String,
}
}