mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
12 lines
262 B
Go
12 lines
262 B
Go
package model
|
|
|
|
import (
|
|
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/common"
|
|
)
|
|
|
|
func FindAllModels() ([]common.Model, int, error) {
|
|
db := common.GetDB()
|
|
var models []common.Model
|
|
err := db.Find(&models).Error
|
|
return models, len(models), err
|
|
}
|