|
|
@ -62,7 +62,7 @@ fn main() { |
|
|
|
id: 1,
|
|
|
|
username: "hi".to_string(),
|
|
|
|
password: bcrypt::hash("qwer", 5).unwrap(),
|
|
|
|
guildcard: Some(1),
|
|
|
|
guildcard: 1u32,
|
|
|
|
team_id: None,
|
|
|
|
banned: false,
|
|
|
|
muted_until: SystemTime::now(),
|
|
|
@ -73,11 +73,13 @@ fn main() { |
|
|
|
entity_gateway.create_user_settings_by_user(&fake_user);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user);
|
|
|
|
character.name = "Test Char 1".into();
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user);
|
|
|
|
character.slot = 2;
|
|
|
|
character.name = "\tE12345678".into();
|
|
|
|
character.exp = 80000000;
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
|
|
|
|
entity_gateway.new_item(
|
|
|
@ -102,7 +104,7 @@ fn main() { |
|
|
|
id: 2,
|
|
|
|
username: "hi2".to_string(),
|
|
|
|
password: bcrypt::hash("qwer", 5).unwrap(),
|
|
|
|
guildcard: Some(2),
|
|
|
|
guildcard: 2u32,
|
|
|
|
team_id: None,
|
|
|
|
banned: false,
|
|
|
|
muted_until: SystemTime::now(),
|
|
|
@ -113,17 +115,19 @@ fn main() { |
|
|
|
entity_gateway.create_user_settings_by_user(&fake_user2);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user2);
|
|
|
|
character.name = "Test Char 3".into();
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user2);
|
|
|
|
character.slot = 2;
|
|
|
|
character.name = "Test Char 4".into();
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
|
|
|
|
let fake_user3 = UserAccount {
|
|
|
|
id: 3,
|
|
|
|
username: "hi3".to_string(),
|
|
|
|
password: bcrypt::hash("qwer", 5).unwrap(),
|
|
|
|
guildcard: Some(3),
|
|
|
|
guildcard: 3u32,
|
|
|
|
team_id: None,
|
|
|
|
banned: false,
|
|
|
|
muted_until: SystemTime::now(),
|
|
|
@ -134,17 +138,19 @@ fn main() { |
|
|
|
entity_gateway.create_user_settings_by_user(&fake_user3);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user3);
|
|
|
|
character.name = "Test Char 5".into();
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user3);
|
|
|
|
character.slot = 2;
|
|
|
|
character.name = "Test Char 6".into();
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
|
|
|
|
let fake_user4 = UserAccount {
|
|
|
|
id: 4,
|
|
|
|
username: "hi4".to_string(),
|
|
|
|
password: bcrypt::hash("qwer", 5).unwrap(),
|
|
|
|
guildcard: Some(4),
|
|
|
|
guildcard: 4u32,
|
|
|
|
team_id: None,
|
|
|
|
banned: false,
|
|
|
|
muted_until: SystemTime::now(),
|
|
|
@ -155,10 +161,12 @@ fn main() { |
|
|
|
entity_gateway.create_user_settings_by_user(&fake_user4);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user4);
|
|
|
|
character.name = "Test Char 7".into();
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
let mut character = entity_gateway.new_character_by_user(&fake_user4);
|
|
|
|
character.slot = 2;
|
|
|
|
character.name = "Test Char 8".into();
|
|
|
|
entity_gateway.create_guild_card_by_character(&character);
|
|
|
|
entity_gateway.set_character(&character);
|
|
|
|
|
|
|
|
async_std::task::block_on(async move {
|
|
|
|