bug fixed

This commit is contained in:
병준 박 2022-08-14 08:26:11 +00:00
parent f4395b7350
commit fe94718f06
6 changed files with 184 additions and 158 deletions

View File

@ -1,116 +1,121 @@
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberClassRequest { pub struct CreateMemberClassRequest {
#[prost(string, optional, tag="1")] #[prost(string, optional, tag = "1")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>, pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag="2")] #[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show: bool,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberClassResponse { pub struct CreateMemberClassResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_class_response::Result>, pub result: ::core::option::Option<create_member_class_response::Result>,
} }
/// Nested message and enum types in `CreateMemberClassResponse`. /// Nested message and enum types in `CreateMemberClassResponse`.
pub mod create_member_class_response { pub mod create_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>, pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberClassesRequest { pub struct ListMemberClassesRequest {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>, pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag="2")] #[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>, pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag="3")] #[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_classes_request::Search>, pub search: ::core::option::Option<list_member_classes_request::Search>,
} }
/// Nested message and enum types in `ListMemberClassesRequest`. /// Nested message and enum types in `ListMemberClassesRequest`.
pub mod list_member_classes_request { pub mod list_member_classes_request {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search { pub struct Search {
#[prost(string, optional, tag="4")] #[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>, pub name_like: ::core::option::Option<::prost::alloc::string::String>,
} #[prost(bool, tag = "2")]
pub show: bool,
}
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberClassesResponse { pub struct ListMemberClassesResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_classes_response::Result>, pub result: ::core::option::Option<list_member_classes_response::Result>,
} }
/// Nested message and enum types in `ListMemberClassesResponse`. /// Nested message and enum types in `ListMemberClassesResponse`.
pub mod list_member_classes_response { pub mod list_member_classes_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, repeated, tag="1")] #[prost(message, repeated, tag = "1")]
pub member_classes: ::prost::alloc::vec::Vec<crate::models::member_class::MemberClass>, pub member_classes: ::prost::alloc::vec::Vec<crate::models::member_class::MemberClass>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberClassRequest { pub struct GetMemberClassRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberClassResponse { pub struct GetMemberClassResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_class_response::Result>, pub result: ::core::option::Option<get_member_class_response::Result>,
} }
/// Nested message and enum types in `GetMemberClassResponse`. /// Nested message and enum types in `GetMemberClassResponse`.
pub mod get_member_class_response { pub mod get_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>, pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberClassRequest { pub struct UpdateMemberClassRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")] #[prost(string, optional, tag = "2")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>, pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag="3")] #[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub show: bool,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberClassResponse { pub struct UpdateMemberClassResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_class_response::Result>, pub result: ::core::option::Option<update_member_class_response::Result>,
} }
/// Nested message and enum types in `UpdateMemberClassResponse`. /// Nested message and enum types in `UpdateMemberClassResponse`.
pub mod update_member_class_response { pub mod update_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>, pub member_class: ::core::option::Option<crate::models::member_class::MemberClass>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberClassRequest { pub struct DeleteMemberClassRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberClassResponse { pub struct DeleteMemberClassResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_class_response::Result>, pub result: ::core::option::Option<delete_member_class_response::Result>,
} }
/// Nested message and enum types in `DeleteMemberClassResponse`. /// Nested message and enum types in `DeleteMemberClassResponse`.
pub mod delete_member_class_response { pub mod delete_member_class_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {}
}
} }

View File

@ -1,116 +1,121 @@
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberLevelRequest { pub struct CreateMemberLevelRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(uint32, tag="2")] #[prost(bool, tag = "2")]
pub sort_order: u32, pub show: bool,
#[prost(uint32, tag = "3")]
pub sort_order: u32,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMemberLevelResponse { pub struct CreateMemberLevelResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<create_member_level_response::Result>, pub result: ::core::option::Option<create_member_level_response::Result>,
} }
/// Nested message and enum types in `CreateMemberLevelResponse`. /// Nested message and enum types in `CreateMemberLevelResponse`.
pub mod create_member_level_response { pub mod create_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>, pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberLevelsRequest { pub struct ListMemberLevelsRequest {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>, pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
#[prost(message, repeated, tag="2")] #[prost(message, repeated, tag = "2")]
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>, pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
#[prost(message, optional, tag="3")] #[prost(message, optional, tag = "3")]
pub search: ::core::option::Option<list_member_levels_request::Search>, pub search: ::core::option::Option<list_member_levels_request::Search>,
} }
/// Nested message and enum types in `ListMemberLevelsRequest`. /// Nested message and enum types in `ListMemberLevelsRequest`.
pub mod list_member_levels_request { pub mod list_member_levels_request {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Search { pub struct Search {
#[prost(string, optional, tag="1")] #[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>, pub name_like: ::core::option::Option<::prost::alloc::string::String>,
} #[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
}
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMemberLevelsResponse { pub struct ListMemberLevelsResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<list_member_levels_response::Result>, pub result: ::core::option::Option<list_member_levels_response::Result>,
} }
/// Nested message and enum types in `ListMemberLevelsResponse`. /// Nested message and enum types in `ListMemberLevelsResponse`.
pub mod list_member_levels_response { pub mod list_member_levels_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, repeated, tag="1")] #[prost(message, repeated, tag = "1")]
pub member_levels: ::prost::alloc::vec::Vec<crate::models::member_level::MemberLevel>, pub member_levels: ::prost::alloc::vec::Vec<crate::models::member_level::MemberLevel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberLevelRequest { pub struct GetMemberLevelRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMemberLevelResponse { pub struct GetMemberLevelResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<get_member_level_response::Result>, pub result: ::core::option::Option<get_member_level_response::Result>,
} }
/// Nested message and enum types in `GetMemberLevelResponse`. /// Nested message and enum types in `GetMemberLevelResponse`.
pub mod get_member_level_response { pub mod get_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>, pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberLevelRequest { pub struct UpdateMemberLevelRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")] #[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(uint32, tag="3")] #[prost(bool, tag = "3")]
pub sort_order: u32, pub show: bool,
#[prost(uint32, tag = "4")]
pub sort_order: u32,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMemberLevelResponse { pub struct UpdateMemberLevelResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<update_member_level_response::Result>, pub result: ::core::option::Option<update_member_level_response::Result>,
} }
/// Nested message and enum types in `UpdateMemberLevelResponse`. /// Nested message and enum types in `UpdateMemberLevelResponse`.
pub mod update_member_level_response { pub mod update_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>, pub member_level: ::core::option::Option<crate::models::member_level::MemberLevel>,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberLevelRequest { pub struct DeleteMemberLevelRequest {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMemberLevelResponse { pub struct DeleteMemberLevelResponse {
#[prost(message, optional, tag="1")] #[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<crate::protobuf::rpc::Error>, pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
#[prost(message, optional, tag="2")] #[prost(message, optional, tag = "2")]
pub result: ::core::option::Option<delete_member_level_response::Result>, pub result: ::core::option::Option<delete_member_level_response::Result>,
} }
/// Nested message and enum types in `DeleteMemberLevelResponse`. /// Nested message and enum types in `DeleteMemberLevelResponse`.
pub mod delete_member_level_response { pub mod delete_member_level_response {
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct Result { pub struct Result {}
}
} }

View File

@ -1,13 +1,15 @@
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberClass { pub struct MemberClass {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")] #[prost(string, optional, tag = "2")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>, pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag="3")] #[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(uint64, tag="4")] #[prost(bool, tag = "4")]
pub created_at: u64, pub show: bool,
#[prost(uint64, tag="5")] #[prost(uint64, tag = "5")]
pub updated_at: u64, pub created_at: u64,
#[prost(uint64, tag = "6")]
pub updated_at: u64,
} }

View File

@ -1,13 +1,15 @@
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemberLevel { pub struct MemberLevel {
#[prost(string, tag="1")] #[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")] #[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(uint32, tag="3")] #[prost(bool, tag = "3")]
pub sort_order: u32, pub show: bool,
#[prost(uint64, tag="4")] #[prost(uint32, tag = "4")]
pub created_at: u64, pub sort_order: u32,
#[prost(uint64, tag="5")] #[prost(uint64, tag = "5")]
pub updated_at: u64, pub created_at: u64,
#[prost(uint64, tag = "6")]
pub updated_at: u64,
} }

View File

@ -26,6 +26,8 @@ pub mod create_member_class_request {
pub parent_id: ::core::option::Option<::prost::alloc::string::String>, pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "2")] #[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show: bool,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]
@ -68,6 +70,8 @@ pub mod list_member_classes_request {
pub struct Search { pub struct Search {
#[prost(string, optional, tag = "1")] #[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>, pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
} }
} }
} }
@ -135,6 +139,8 @@ pub mod update_member_class_request {
pub parent_id: ::core::option::Option<::prost::alloc::string::String>, pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")] #[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub show: bool,
} }
} }
#[derive(Clone, PartialEq, ::prost::Message)] #[derive(Clone, PartialEq, ::prost::Message)]

View File

@ -23,7 +23,9 @@ pub mod create_member_level_request {
pub struct Request { pub struct Request {
#[prost(string, tag = "1")] #[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")] #[prost(bool, tag = "2")]
pub show: bool,
#[prost(uint32, tag = "3")]
pub sort_order: u32, pub sort_order: u32,
} }
} }
@ -67,6 +69,8 @@ pub mod list_member_levels_request {
pub struct Search { pub struct Search {
#[prost(string, optional, tag = "1")] #[prost(string, optional, tag = "1")]
pub name_like: ::core::option::Option<::prost::alloc::string::String>, pub name_like: ::core::option::Option<::prost::alloc::string::String>,
#[prost(bool, optional, tag = "2")]
pub show: ::core::option::Option<bool>,
} }
} }
} }
@ -132,7 +136,9 @@ pub mod update_member_level_request {
pub id: ::prost::alloc::string::String, pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")] #[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String, pub name: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")] #[prost(bool, tag = "3")]
pub show: bool,
#[prost(uint32, tag = "4")]
pub sort_order: u32, pub sort_order: u32,
} }
} }