beteran-protobuf/proto/ss/member/identity.proto

51 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package bet.beteran.ss.member.identity;
import "models/core/network.proto";
// subject = bet.beteran.ss.member.identity.CheckUsernameForDuplication;
message CheckUsernameForDuplicationRequest {
bet.beteran.core.network.Client client = 1;
string username = 2;
}
message CheckUsernameForDuplicationResponse {
bool duplicated = 1;
}
// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
message CheckNicknameForDuplicationRequest {
bet.beteran.core.network.Client client = 1;
string nickname = 2;
}
message CheckNicknameForDuplicationResponse {
bool duplicated = 1;
}
// subject = bet.beteran.ss.member.identity.Captcha
message CaptchaRequest {
bet.beteran.core.network.Client client = 1;
}
message CaptchaResponse {
string token = 1;
string image = 2;
}
// subject = bet.beteran.ss.member.identity.Signin
message SigninRequest {
bet.beteran.core.network.Client client = 1;
string token = 2;
string security_code = 3;
string username = 4;
string password = 5;
}
message SigninResponse {
string session_id = 1;
}