diff --git a/ApplicationRegisterService.proto b/ApplicationRegisterService.proto index a3b8e3ad70f4c4230483e56d43be5fda9392cb43..8c824e798a3d740c3d3f6c20ca44b6e82cc581d5 100644 --- a/ApplicationRegisterService.proto +++ b/ApplicationRegisterService.proto @@ -26,6 +26,9 @@ import "KeyWithIntegerValue.proto"; //register service for ApplicationCode, this service is called when service starts. service ApplicationRegisterService { + rpc registeredApplicationCheck (RegisteredApplication) returns (ApplicationCheckResult) { + } + rpc applicationCodeRegister (Application) returns (ApplicationMapping) { } } @@ -37,3 +40,11 @@ message Application { message ApplicationMapping { KeyWithIntegerValue application = 1; } + +message RegisteredApplication { + int32 applicationId = 1; +} + +message ApplicationCheckResult { + bool existed = 1; +}