feat(auth protocol): login(1) method
This commit is contained in:
parent
44bcad7eda
commit
6984a20bdd
3 changed files with 32 additions and 2 deletions
|
|
@ -1,8 +1,10 @@
|
|||
mod method_login_ex;
|
||||
mod method_login;
|
||||
|
||||
use log::{error, info};
|
||||
use crate::define_protocol;
|
||||
use crate::nex::account::Account;
|
||||
use crate::protocols::auth::method_login::login_raw_params;
|
||||
use crate::protocols::auth::method_login_ex::{login_ex, login_ex_raw_params};
|
||||
use crate::rmc::message::RMCMessage;
|
||||
use crate::rmc::response::{ErrorCode, RMCResponse, RMCResponseResult};
|
||||
|
|
@ -10,6 +12,7 @@ use crate::rmc::response::{ErrorCode, RMCResponse, RMCResponseResult};
|
|||
|
||||
define_protocol!{
|
||||
10<'a>(account: &'a Account) => {
|
||||
0x01 => login_raw_params,
|
||||
0x02 => login_ex_raw_params
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue