80 lines
1.8 KiB
Protocol Buffer
80 lines
1.8 KiB
Protocol Buffer
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;
|
|
}
|
|
|
|
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;
|
|
string name = 3;
|
|
string path = 4;
|
|
bool show = 5;
|
|
bool can_use = 6;
|
|
uint64 expires_at = 7;
|
|
}
|
|
|
|
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;
|
|
string name = 4;
|
|
string path = 5;
|
|
bool show = 6;
|
|
bool can_use = 7;
|
|
uint64 expires_at = 8;
|
|
}
|
|
|
|
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;
|
|
}
|