管理端全部功能跑通
This commit is contained in:
84
EdgeCommon/pkg/rpc/protos/service_httpdns_app.proto
Normal file
84
EdgeCommon/pkg/rpc/protos/service_httpdns_app.proto
Normal file
@@ -0,0 +1,84 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user