85 lines
1.9 KiB
Protocol Buffer
85 lines
1.9 KiB
Protocol Buffer
syntax = "proto3";
|
|
option go_package = "./pb";
|
|
|
|
package pb;
|
|
|
|
import "models/model_httpdns_app.proto";
|
|
import "models/rpc_messages.proto";
|
|
|
|
service HTTPDNSAppService {
|
|
rpc createHTTPDNSApp (CreateHTTPDNSAppRequest) returns (CreateHTTPDNSAppResponse);
|
|
rpc updateHTTPDNSApp (UpdateHTTPDNSAppRequest) returns (RPCSuccess);
|
|
rpc deleteHTTPDNSApp (DeleteHTTPDNSAppRequest) returns (RPCSuccess);
|
|
rpc findHTTPDNSApp (FindHTTPDNSAppRequest) returns (FindHTTPDNSAppResponse);
|
|
rpc listHTTPDNSApps (ListHTTPDNSAppsRequest) returns (ListHTTPDNSAppsResponse);
|
|
rpc findAllHTTPDNSApps (FindAllHTTPDNSAppsRequest) returns (FindAllHTTPDNSAppsResponse);
|
|
rpc updateHTTPDNSAppSignEnabled (UpdateHTTPDNSAppSignEnabledRequest) returns (RPCSuccess);
|
|
rpc resetHTTPDNSAppSignSecret (ResetHTTPDNSAppSignSecretRequest) returns (ResetHTTPDNSAppSignSecretResponse);
|
|
}
|
|
|
|
message CreateHTTPDNSAppRequest {
|
|
string name = 1;
|
|
string appId = 2;
|
|
int64 primaryClusterId = 3;
|
|
int64 backupClusterId = 4;
|
|
bool isOn = 5;
|
|
bool signEnabled = 6;
|
|
int64 userId = 7;
|
|
}
|
|
|
|
message CreateHTTPDNSAppResponse {
|
|
int64 appDbId = 1;
|
|
}
|
|
|
|
message UpdateHTTPDNSAppRequest {
|
|
int64 appDbId = 1;
|
|
string name = 2;
|
|
int64 primaryClusterId = 3;
|
|
int64 backupClusterId = 4;
|
|
bool isOn = 5;
|
|
int64 userId = 6;
|
|
}
|
|
|
|
message DeleteHTTPDNSAppRequest {
|
|
int64 appDbId = 1;
|
|
}
|
|
|
|
message FindHTTPDNSAppRequest {
|
|
int64 appDbId = 1;
|
|
}
|
|
|
|
message FindHTTPDNSAppResponse {
|
|
HTTPDNSApp app = 1;
|
|
}
|
|
|
|
message ListHTTPDNSAppsRequest {
|
|
int64 offset = 1;
|
|
int64 size = 2;
|
|
string keyword = 3;
|
|
}
|
|
|
|
message ListHTTPDNSAppsResponse {
|
|
repeated HTTPDNSApp apps = 1;
|
|
}
|
|
|
|
message FindAllHTTPDNSAppsRequest {
|
|
}
|
|
|
|
message FindAllHTTPDNSAppsResponse {
|
|
repeated HTTPDNSApp apps = 1;
|
|
}
|
|
|
|
message UpdateHTTPDNSAppSignEnabledRequest {
|
|
int64 appDbId = 1;
|
|
bool signEnabled = 2;
|
|
}
|
|
|
|
message ResetHTTPDNSAppSignSecretRequest {
|
|
int64 appDbId = 1;
|
|
}
|
|
|
|
message ResetHTTPDNSAppSignSecretResponse {
|
|
string signSecret = 1;
|
|
int64 updatedAt = 2;
|
|
}
|