From 56044e8e379498edc31b92981ec6f24f03d8cf51 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Wed, 10 Aug 2022 01:49:44 +0000 Subject: [PATCH] site is modified --- src/c2se/backend/site.rs | 26 +++++++++++++++++++------- src/models/domain.rs | 32 ++++++++++++++++++-------------- src/ss/domain/site.rs | 20 ++++++++++++++++---- 3 files changed, 53 insertions(+), 25 deletions(-) diff --git a/src/c2se/backend/site.rs b/src/c2se/backend/site.rs index 564cfa6..caeba99 100644 --- a/src/c2se/backend/site.rs +++ b/src/c2se/backend/site.rs @@ -37,12 +37,18 @@ pub const SUBJECT_CREATE_SITE: &str = const_format::concatcp!(SUBJECT, ".CreateS /// subject = bet.beteran.c2se.backend.site.CreateSite #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSiteRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub url: ::prost::alloc::string::String, - #[prost(bool, tag = "2")] + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub path: ::prost::alloc::string::String, + #[prost(bool, tag="4")] pub show: bool, - #[prost(bool, tag = "3")] + #[prost(bool, tag="5")] pub can_use: bool, + #[prost(uint64, tag="6")] + pub expires_at: u64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSiteResponse { @@ -66,14 +72,20 @@ pub const SUBJECT_UPDATE_SITE: &str = const_format::concatcp!(SUBJECT, ".UpdateS /// subject = bet.beteran.c2se.backend.site.UpdateSite #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSiteRequest { - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub id: ::prost::alloc::string::String, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub url: ::prost::alloc::string::String, - #[prost(bool, tag = "3")] + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub path: ::prost::alloc::string::String, + #[prost(bool, tag="5")] pub show: bool, - #[prost(bool, tag = "4")] + #[prost(bool, tag="6")] pub can_use: bool, + #[prost(uint64, tag="7")] + pub expires_at: u64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSiteResponse { diff --git a/src/models/domain.rs b/src/models/domain.rs index 79c4e7d..91ef331 100644 --- a/src/models/domain.rs +++ b/src/models/domain.rs @@ -1,17 +1,21 @@ #[derive(Clone, PartialEq, ::prost::Message)] pub struct Site { - #[prost(string, tag = "1")] - pub id: ::prost::alloc::string::String, - #[prost(string, tag = "2")] - pub url: ::prost::alloc::string::String, - #[prost(bool, tag = "3")] - pub show: bool, - #[prost(bool, tag = "4")] - pub can_use: bool, - #[prost(uint64, tag = "5")] - pub created_at: u64, - #[prost(uint64, tag = "6")] - pub updated_at: u64, - #[prost(uint64, optional, tag = "7")] - pub deleted_at: ::core::option::Option, + #[prost(string, tag="1")] + 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(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(uint64, tag="9")] + pub updated_at: u64, } diff --git a/src/ss/domain/site.rs b/src/ss/domain/site.rs index cca04f6..73ce6a2 100644 --- a/src/ss/domain/site.rs +++ b/src/ss/domain/site.rs @@ -43,10 +43,16 @@ pub struct CreateSiteRequest { pub client: ::core::option::Option, #[prost(string, tag="2")] pub url: ::prost::alloc::string::String, - #[prost(bool, tag="3")] + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub path: ::prost::alloc::string::String, + #[prost(bool, tag="5")] pub show: bool, - #[prost(bool, tag="4")] + #[prost(bool, tag="6")] pub can_use: bool, + #[prost(uint64, tag="7")] + pub expires_at: u64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSiteResponse { @@ -76,10 +82,16 @@ pub struct UpdateSiteRequest { pub id: ::prost::alloc::string::String, #[prost(string, tag="3")] pub url: ::prost::alloc::string::String, - #[prost(bool, tag="4")] + #[prost(string, tag="4")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub path: ::prost::alloc::string::String, + #[prost(bool, tag="6")] pub show: bool, - #[prost(bool, tag="5")] + #[prost(bool, tag="7")] pub can_use: bool, + #[prost(uint64, tag="8")] + pub expires_at: u64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSiteResponse {