beteran-protobuf/proto/ss/identity.proto

119 lines
2.6 KiB
Protocol Buffer
Raw Normal View History

2022-07-15 06:14:09 +00:00
syntax = "proto3";
2022-08-13 20:18:21 +00:00
package bet.beteran.ss.identity;
2022-07-15 06:14:09 +00:00
import "models/core/network.proto";
2022-08-13 20:18:21 +00:00
import "protobuf/rpc.proto";
import "models/member.proto";
2022-07-15 06:14:09 +00:00
2022-07-27 06:45:53 +00:00
2022-08-13 20:18:21 +00:00
// subject = bet.beteran.ss.identity.CheckUsernameForDuplication;
2022-07-27 06:45:53 +00:00
message CheckUsernameForDuplicationRequest {
2022-08-13 20:18:21 +00:00
message Request {
string username = 1;
}
2022-07-27 06:45:53 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-07-27 06:45:53 +00:00
}
message CheckUsernameForDuplicationResponse {
2022-08-03 07:31:10 +00:00
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-27 06:45:53 +00:00
}
2022-08-13 20:18:21 +00:00
// subject = bet.beteran.ss.identity.CheckNicknameForDuplication;
2022-07-27 06:45:53 +00:00
message CheckNicknameForDuplicationRequest {
2022-08-13 20:18:21 +00:00
message Request {
string nickname = 1;
}
2022-07-27 06:45:53 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-07-27 06:45:53 +00:00
}
message CheckNicknameForDuplicationResponse {
2022-08-03 07:31:10 +00:00
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-27 06:45:53 +00:00
}
2022-08-13 20:18:21 +00:00
// subject = bet.beteran.ss.identity.Captcha
2022-07-15 06:14:09 +00:00
message CaptchaRequest {
2022-08-13 20:18:21 +00:00
message Request {
}
2022-07-15 06:14:09 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-07-15 06:14:09 +00:00
}
message CaptchaResponse {
2022-08-03 07:31:10 +00:00
message Result {
2022-08-06 03:59:02 +00:00
string security_code_hash = 1;
2022-08-03 07:31:10 +00:00
string image = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-15 06:14:09 +00:00
}
2022-08-13 20:18:21 +00:00
// subject = bet.beteran.ss.identity.Signin
2022-07-15 06:14:09 +00:00
message SigninRequest {
2022-08-13 20:18:21 +00:00
message Request {
string security_code_hash = 1;
string security_code = 2;
string username = 3;
string password = 4;
}
2022-07-15 06:14:09 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Request request = 2;
2022-07-15 06:14:09 +00:00
}
message SigninResponse {
2022-08-03 07:31:10 +00:00
message Result {
2022-08-08 07:11:48 +00:00
string access_token = 1;
2022-08-03 07:31:10 +00:00
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-15 06:14:09 +00:00
}
2022-08-11 05:53:05 +00:00
2022-08-20 12:55:18 +00:00
// subject = bet.beteran.ss.identity.SigninWithoutSecurityCode
message SigninWithoutSecurityCodeRequest {
message Request {
string username = 1;
string password = 2;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message SigninWithoutSecurityCodeResponse {
message Result {
string access_token = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
2022-08-13 20:18:21 +00:00
// subject = bet.beteran.ss_event.identity.AfterSignin
2022-08-11 05:53:05 +00:00
message AfterSigninEvent {
2022-08-13 20:18:21 +00:00
message Event {
bet.beteran.member.Member member = 1;
}
2022-08-11 05:53:05 +00:00
bet.beteran.core.network.Client client = 1;
2022-08-13 20:18:21 +00:00
Event event = 2;
2022-08-11 05:53:05 +00:00
}
2022-08-15 06:31:24 +00:00
// subject = bet.beteran.ss_event.identity.AfterSignout
message AfterSignoutEvent {
message Event {
bet.beteran.member.Member member = 1;
}
bet.beteran.core.network.Client client = 1;
Event event = 2;
}