From f20d3aa7e150aaec48f46522051267da3ece1ea0 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Wed, 10 Aug 2022 02:32:52 +0000 Subject: [PATCH] site is changed --- src/c2se/backend/site.rs | 28 ++++++++++++++++------------ src/models/domain.rs | 18 ++++++++++-------- src/ss/domain/site.rs | 28 ++++++++++++++++------------ 3 files changed, 42 insertions(+), 32 deletions(-) diff --git a/src/c2se/backend/site.rs b/src/c2se/backend/site.rs index caeba99..716b17a 100644 --- a/src/c2se/backend/site.rs +++ b/src/c2se/backend/site.rs @@ -39,16 +39,18 @@ pub const SUBJECT_CREATE_SITE: &str = const_format::concatcp!(SUBJECT, ".CreateS pub struct CreateSiteRequest { #[prost(string, tag="1")] pub url: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub path: ::prost::alloc::string::String, + #[prost(string, optional, tag="2")] + pub name: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="3")] + pub path: ::core::option::Option<::prost::alloc::string::String>, #[prost(bool, tag="4")] pub show: bool, #[prost(bool, tag="5")] pub can_use: bool, - #[prost(uint64, tag="6")] - pub expires_at: u64, + #[prost(string, optional, tag="6")] + pub memo: ::core::option::Option<::prost::alloc::string::String>, + #[prost(uint64, optional, tag="7")] + pub expires_at: ::core::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSiteResponse { @@ -76,16 +78,18 @@ pub struct UpdateSiteRequest { pub id: ::prost::alloc::string::String, #[prost(string, tag="2")] pub url: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub path: ::prost::alloc::string::String, + #[prost(string, optional, tag="3")] + pub name: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="4")] + pub path: ::core::option::Option<::prost::alloc::string::String>, #[prost(bool, tag="5")] pub show: bool, #[prost(bool, tag="6")] pub can_use: bool, - #[prost(uint64, tag="7")] - pub expires_at: u64, + #[prost(string, optional, tag="7")] + pub memo: ::core::option::Option<::prost::alloc::string::String>, + #[prost(uint64, optional, tag="8")] + pub expires_at: ::core::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSiteResponse { diff --git a/src/models/domain.rs b/src/models/domain.rs index 91ef331..b9cd2cb 100644 --- a/src/models/domain.rs +++ b/src/models/domain.rs @@ -4,18 +4,20 @@ pub struct Site { pub id: ::prost::alloc::string::String, #[prost(string, tag="2")] pub url: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub path: ::prost::alloc::string::String, + #[prost(string, optional, tag="3")] + pub name: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="4")] + pub path: ::core::option::Option<::prost::alloc::string::String>, #[prost(bool, tag="5")] pub show: bool, #[prost(bool, tag="6")] pub can_use: bool, - #[prost(uint64, tag="7")] - pub expires_at: u64, - #[prost(uint64, tag="8")] - pub created_at: u64, + #[prost(string, optional, tag="7")] + pub memo: ::core::option::Option<::prost::alloc::string::String>, + #[prost(uint64, optional, tag="8")] + pub expires_at: ::core::option::Option, #[prost(uint64, tag="9")] + pub created_at: u64, + #[prost(uint64, tag="10")] pub updated_at: u64, } diff --git a/src/ss/domain/site.rs b/src/ss/domain/site.rs index 73ce6a2..d672ebf 100644 --- a/src/ss/domain/site.rs +++ b/src/ss/domain/site.rs @@ -43,16 +43,18 @@ pub struct CreateSiteRequest { pub client: ::core::option::Option, #[prost(string, tag="2")] pub url: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub path: ::prost::alloc::string::String, + #[prost(string, optional, tag="3")] + pub name: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="4")] + pub path: ::core::option::Option<::prost::alloc::string::String>, #[prost(bool, tag="5")] pub show: bool, #[prost(bool, tag="6")] pub can_use: bool, - #[prost(uint64, tag="7")] - pub expires_at: u64, + #[prost(string, optional, tag="7")] + pub memo: ::core::option::Option<::prost::alloc::string::String>, + #[prost(uint64, optional, tag="8")] + pub expires_at: ::core::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSiteResponse { @@ -82,16 +84,18 @@ pub struct UpdateSiteRequest { pub id: ::prost::alloc::string::String, #[prost(string, tag="3")] pub url: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub name: ::prost::alloc::string::String, - #[prost(string, tag="5")] - pub path: ::prost::alloc::string::String, + #[prost(string, optional, tag="4")] + pub name: ::core::option::Option<::prost::alloc::string::String>, + #[prost(string, optional, tag="5")] + pub path: ::core::option::Option<::prost::alloc::string::String>, #[prost(bool, tag="6")] pub show: bool, #[prost(bool, tag="7")] pub can_use: bool, - #[prost(uint64, tag="8")] - pub expires_at: u64, + #[prost(string, optional, tag="8")] + pub memo: ::core::option::Option<::prost::alloc::string::String>, + #[prost(uint64, optional, tag="9")] + pub expires_at: ::core::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSiteResponse {