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