Example #1
0
File: account.go Project: rcijov/go
// 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
}
Example #2
0
File: account.go Project: rcijov/go
// Delete Account
func DelAccount(acc entities.Account) {
	a := db.Account{acc.Name, acc.Email, acc.Phone, acc.Password, acc.Type, acc.Date}
	a.DeleteAccount()
}