Upstream sync
This commit is contained in:
@@ -4,7 +4,7 @@ import "github.com/jinzhu/gorm"
|
||||
|
||||
type Company struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Name string
|
||||
Password string
|
||||
Email string
|
||||
Avatar string
|
||||
@@ -12,7 +12,6 @@ type Company struct {
|
||||
Devices []Device
|
||||
}
|
||||
|
||||
|
||||
// func FetchCompanies(companies *[]Company) (err error) {
|
||||
// db := gorm.GetDb()
|
||||
|
||||
@@ -22,12 +21,12 @@ type Company struct {
|
||||
// return nil
|
||||
// }
|
||||
|
||||
func (Company)Update() (bool, error) {
|
||||
func (Company) Update() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
func (Company)Create() (bool, error) {
|
||||
func (Company) Create() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
func (Company)Delete() (bool, error) {
|
||||
func (Company) Delete() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user