beteran-protobuf/proto/ss/domain/site.proto

88 lines
2.1 KiB
Protocol Buffer
Raw Normal View History

2022-08-08 10:10:57 +00:00
syntax = "proto3";
package bet.beteran.ss.domain.site;
import "protobuf/rpc/error.proto";
import "protobuf/pagination/pagination.proto";
import "protobuf/pagination/search.proto";
import "protobuf/pagination/sort.proto";
import "models/core/network.proto";
import "models/domain/site.proto";
// subject = bet.beteran.ss.domain.site.ListSites;
message ListSitesRequest {
bet.beteran.core.network.Client client = 1;
optional bet.protobuf.pagination.Pagination pagination = 2;
repeated bet.protobuf.pagination.Search searches = 3;
repeated bet.protobuf.pagination.Sort sorts = 4;
2022-08-11 01:04:25 +00:00
optional string url_like = 5;
optional string name_like = 6;
optional string path_like = 7;
optional bool show = 8;
optional bool can_use = 9;
optional string memo_like = 10;
2022-08-08 10:10:57 +00:00
}
message ListSitesResponse {
message Result {
repeated bet.beteran.domain.Site sites = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.domain.site.CreateSite;
message CreateSiteRequest {
bet.beteran.core.network.Client client = 1;
string url = 2;
2022-08-10 02:28:41 +00:00
optional string name = 3;
optional string path = 4;
2022-08-10 01:50:01 +00:00
bool show = 5;
bool can_use = 6;
2022-08-10 02:28:41 +00:00
optional string memo = 7;
optional uint64 expires_at = 8;
2022-08-08 10:10:57 +00:00
}
message CreateSiteResponse {
message Result {
bet.beteran.domain.Site site = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.domain.site.UpdateSite
message UpdateSiteRequest {
bet.beteran.core.network.Client client = 1;
string id = 2;
string url = 3;
2022-08-10 02:28:41 +00:00
optional string name = 4;
optional string path = 5;
2022-08-10 01:50:01 +00:00
bool show = 6;
bool can_use = 7;
2022-08-10 02:28:41 +00:00
optional string memo = 8;
optional uint64 expires_at = 9;
2022-08-08 10:10:57 +00:00
}
message UpdateSiteResponse {
message Result {
bet.beteran.domain.Site site = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.ss.domain.site.DeleteSite
message DeleteSiteRequest {
bet.beteran.core.network.Client client = 1;
string id = 2;
}
message DeleteSiteResponse {
message Result {
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}