2019-10-05 17:37:49 -07:00
|
|
|
use crate::entity::account::*;
|
|
|
|
use crate::entity::character::*;
|
2019-12-09 23:11:27 -08:00
|
|
|
use crate::entity::item::*;
|
|
|
|
|
2019-10-05 17:37:49 -07:00
|
|
|
pub trait EntityGateway {
|
2020-03-30 19:28:49 -07:00
|
|
|
fn create_user(&mut self, _user: NewUserAccountEntity) -> Option<UserAccountEntity> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:11:14 -07:00
|
|
|
fn get_user_by_id(&self, _id: UserAccountId) -> Option<UserAccountEntity> {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:11:14 -07:00
|
|
|
fn get_user_by_name(&self, _username: String) -> Option<UserAccountEntity> {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-30 19:28:49 -07:00
|
|
|
fn save_user(&mut self, _user: &UserAccountEntity) {
|
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn create_user_settings(&mut self, _settings: NewUserSettingsEntity) -> Option<UserSettingsEntity> {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:11:14 -07:00
|
|
|
fn get_user_settings_by_user(&self, _user: &UserAccountEntity) -> Option<UserSettingsEntity> {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-30 19:28:49 -07:00
|
|
|
fn save_user_settings(&mut self, _settings: &UserSettingsEntity) {
|
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn create_character(&mut self, _char: NewCharacterEntity) -> Option<CharacterEntity> {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:11:14 -07:00
|
|
|
fn get_characters_by_user(&self, _user: &UserAccountEntity) -> [Option<CharacterEntity>; 4] {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-30 19:28:49 -07:00
|
|
|
fn save_character(&mut self, _char: &CharacterEntity) {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:11:14 -07:00
|
|
|
fn get_guild_card_data_by_user(&self, _user: &UserAccountEntity) -> GuildCardDataEntity {
|
2019-10-05 17:37:49 -07:00
|
|
|
unimplemented!();
|
|
|
|
}
|
2019-12-09 23:11:27 -08:00
|
|
|
|
2020-03-30 19:28:49 -07:00
|
|
|
fn create_item(&mut self, _item: NewItemEntity) -> Option<ItemEntity> {
|
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn save_item(&mut self, _item: &ItemEntity) {
|
2019-12-09 23:11:27 -08:00
|
|
|
unimplemented!();
|
|
|
|
}
|
|
|
|
|
2020-03-29 14:53:51 -07:00
|
|
|
fn get_items_by_character(&self, _char: &CharacterEntity) -> Vec<ItemEntity> {
|
2019-12-09 23:11:27 -08:00
|
|
|
unimplemented!();
|
|
|
|
}
|
2019-10-05 17:37:49 -07:00
|
|
|
}
|