Rebase
This commit is contained in:
@@ -5,21 +5,10 @@ import "github.com/jinzhu/gorm"
|
||||
type Company struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Password string
|
||||
Email string
|
||||
Avatar string
|
||||
Users []User
|
||||
Devices []Device
|
||||
}
|
||||
|
||||
// func FetchCompanies(companies *[]Company) (err error) {
|
||||
// db := gorm.GetDb()
|
||||
|
||||
// if err = db.Find(companies).Error; err != nil {
|
||||
// return err
|
||||
// }
|
||||
// return nil
|
||||
// }
|
||||
|
||||
func (Company) Update() (bool, error) {
|
||||
return false, nil
|
||||
|
||||
Reference in New Issue
Block a user