2022-08-13 20:18:21 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.ss.site;
|
|
|
|
|
|
|
|
import "models/core/network.proto";
|
|
|
|
import "protobuf/rpc.proto";
|
|
|
|
import "protobuf/pagination.proto";
|
|
|
|
import "models/site.proto";
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.site.CreateSite;
|
|
|
|
message CreateSiteRequest {
|
|
|
|
message Request {
|
|
|
|
string url = 1;
|
|
|
|
optional string name = 2;
|
|
|
|
optional string path = 3;
|
|
|
|
bool show = 4;
|
|
|
|
bool can_use = 5;
|
|
|
|
optional string memo = 6;
|
|
|
|
optional uint64 expires_at = 7;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateSiteResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.site.Site site = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.site.ListSites;
|
|
|
|
message ListSitesRequest {
|
|
|
|
message Request {
|
|
|
|
message Search {
|
|
|
|
optional string url_like = 1;
|
|
|
|
optional string name_like = 2;
|
|
|
|
optional string path_like = 3;
|
|
|
|
optional bool show = 4;
|
|
|
|
optional bool can_use = 5;
|
|
|
|
optional string memo_like = 6;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.pagination.Pagination pagination = 1;
|
|
|
|
repeated bet.protobuf.pagination.Sort sorts = 2;
|
|
|
|
optional Search search = 3;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListSitesResponse {
|
|
|
|
message Result {
|
2022-09-01 17:17:19 +00:00
|
|
|
uint64 total_count = 1;
|
|
|
|
repeated bet.beteran.site.Site sites = 2;
|
2022-08-13 20:18:21 +00:00
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.site.GetSite
|
|
|
|
message GetSiteRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetSiteResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.site.Site site = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.site.UpdateSite
|
|
|
|
message UpdateSiteRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
string url = 2;
|
|
|
|
optional string name = 3;
|
|
|
|
optional string path = 4;
|
|
|
|
bool show = 5;
|
|
|
|
bool can_use = 6;
|
|
|
|
optional string memo = 7;
|
|
|
|
optional uint64 expires_at = 8;
|
|
|
|
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateSiteResponse {
|
|
|
|
message Result {
|
|
|
|
bet.beteran.site.Site site = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.site.DeleteSite
|
|
|
|
message DeleteSiteRequest {
|
|
|
|
message Request {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
Request request = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteSiteResponse {
|
|
|
|
message Result {
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
|
|
|
}
|