This commit is contained in:
parent
b2222e956a
commit
cf1d8ac531
3 changed files with 169 additions and 9 deletions
|
|
@ -1,4 +1,5 @@
|
|||
syntax = "proto3";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
package auth.registration;
|
||||
option go_package = "/pkg/externalRegistration/v1;externalRegV1";
|
||||
|
|
@ -10,13 +11,24 @@ message RegistrationRequest {
|
|||
int32 service_end_code = 4;
|
||||
string secret = 5;
|
||||
string status = 6;
|
||||
string service_url = 7;
|
||||
}
|
||||
|
||||
message RegistrationResponse {
|
||||
int32 service_id = 1;
|
||||
bool already_registered = 2;
|
||||
string service_url = 3;
|
||||
}
|
||||
|
||||
message UpdateRequest {
|
||||
string name = 1;
|
||||
string description = 2;
|
||||
string status = 3;
|
||||
string service_url = 4;
|
||||
int32 service_code = 5;
|
||||
}
|
||||
|
||||
service ExternalRegistration {
|
||||
rpc AuthenticateOrRegister (RegistrationRequest) returns (RegistrationResponse);
|
||||
rpc Update (UpdateRequest) returns (google.protobuf.Empty);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue