22 lines
403 B
Protocol Buffer
22 lines
403 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package user;
|
|
option go_package="./user";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
service User {
|
|
rpc Create(CreateReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
post: "/customer/v3/login"
|
|
body: "*"
|
|
};
|
|
}
|
|
rpc Register(RegisterReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
post: "/customer/v3/register"
|
|
body: "*"
|
|
};
|
|
}
|
|
}
|