// Retrieve Account func GetAccount(name string) Account { b := db.Account{} a := db.Account{} b = a.GetAccount(name) c := Account{} c.Name = b.Name c.Email = b.Email c.Phone = b.Phone c.Type = b.Type c.Password = b.Password c.Date = b.Date return c }
// Delete Account func DelAccount(acc entities.Account) { a := db.Account{acc.Name, acc.Email, acc.Phone, acc.Password, acc.Type, acc.Date} a.DeleteAccount() }