26 lines
522 B
Protocol Buffer
26 lines
522 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "auth";
|
|
|
|
import "api.proto";
|
|
|
|
message LoginDefaultReq {
|
|
string Account = 1[(api.body)="account",(api.vd)="$!=''"];
|
|
string Password = 2[(api.body)="password",(api.vd)="$!=''"];
|
|
}
|
|
|
|
message LoginDefaultResp {
|
|
string token = 1;
|
|
string refreshToken = 2;
|
|
int64 userId = 3;
|
|
string username = 4;
|
|
int64 seqNo = 5;
|
|
int64 gender = 6;
|
|
}
|
|
|
|
service LoginService {
|
|
rpc LoginDefault(LoginDefaultReq) returns(LoginDefaultResp) {
|
|
option (api.post) = "/auth/login/default";
|
|
}
|
|
}
|