diff --git a/proto/c2se/backend/site.proto b/proto/c2se/backend/site.proto index 0229a64..2f99048 100644 --- a/proto/c2se/backend/site.proto +++ b/proto/c2se/backend/site.proto @@ -26,11 +26,12 @@ message ListSitesResponse { // subject = bet.beteran.c2se.backend.site.CreateSite message CreateSiteRequest { string url = 1; - string name = 2; - string path = 3; + optional string name = 2; + optional string path = 3; bool show = 4; bool can_use = 5; - uint64 expires_at = 6; + optional string memo = 6; + optional uint64 expires_at = 7; } message CreateSiteResponse { @@ -45,11 +46,12 @@ message CreateSiteResponse { message UpdateSiteRequest { string id = 1; string url = 2; - string name = 3; - string path = 4; + optional string name = 3; + optional string path = 4; bool show = 5; bool can_use = 6; - uint64 expires_at = 7; + optional string memo = 7; + optional uint64 expires_at = 8; } message UpdateSiteResponse { diff --git a/proto/models/domain/site.proto b/proto/models/domain/site.proto index 9b18e16..9d15792 100644 --- a/proto/models/domain/site.proto +++ b/proto/models/domain/site.proto @@ -9,7 +9,8 @@ message Site { string path = 4; bool show = 5; bool can_use = 6; - uint64 expires_at = 7; - uint64 created_at = 8; - uint64 updated_at = 9; + string memo = 7; + uint64 expires_at = 8; + uint64 created_at = 9; + uint64 updated_at = 10; } diff --git a/proto/ss/domain/site.proto b/proto/ss/domain/site.proto index e015633..d52dd76 100644 --- a/proto/ss/domain/site.proto +++ b/proto/ss/domain/site.proto @@ -29,11 +29,12 @@ message ListSitesResponse { message CreateSiteRequest { bet.beteran.core.network.Client client = 1; string url = 2; - string name = 3; - string path = 4; + optional string name = 3; + optional string path = 4; bool show = 5; bool can_use = 6; - uint64 expires_at = 7; + optional string memo = 7; + optional uint64 expires_at = 8; } message CreateSiteResponse { @@ -49,11 +50,12 @@ message UpdateSiteRequest { bet.beteran.core.network.Client client = 1; string id = 2; string url = 3; - string name = 4; - string path = 5; + optional string name = 4; + optional string path = 5; bool show = 6; bool can_use = 7; - uint64 expires_at = 8; + optional string memo = 8; + optional uint64 expires_at = 9; } message UpdateSiteResponse {