syntax = "proto3"; package bet.beteran.c2se.identity; import "protobuf/rpc.proto"; message CheckUsernameForDuplicationRequest { string username = 1; } message CheckUsernameForDuplicationResponse { message Result { bool duplicated = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message CheckNicknameForDuplicationRequest { string nickname = 1; } message CheckNicknameForDuplicationResponse { message Result { bool duplicated = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message CaptchaRequest { } message CaptchaResponse { message Result { string security_code_hash = 1; string image = 2; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message SigninRequest { string security_code_hash = 1; string security_code = 2; string username = 3; string password = 4; } message SigninResponse { message Result { string access_token = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; } message SigninWithoutSecurityCodeRequest { string username = 1; string password = 2; } message SigninWithoutSecurityCodeResponse { message Result { string access_token = 1; } optional bet.protobuf.rpc.Error error = 1; optional Result result = 2; }