21 lines
415 B
Protocol Buffer
21 lines
415 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "auth";
|
|
|
|
import "api.proto";
|
|
|
|
message RegisterDefaultReq {
|
|
string Account = 1[(api.body)="account",(api.vd)="$!=''"];
|
|
string Password = 2[(api.body)="password",(api.vd)="$!=''"];
|
|
}
|
|
|
|
message RegisterDefaultResp {
|
|
|
|
}
|
|
|
|
service RegisterService {
|
|
rpc RegisterDefault(RegisterDefaultReq) returns(RegisterDefaultResp) {
|
|
option (api.post) = "/auth/register/default";
|
|
}
|
|
}
|