go-common/app/admin/ep/merlin/dao/mysql_machine_package.go
2019-04-22 18:49:16 +08:00

14 lines
313 B
Go

package dao
import (
"go-common/app/admin/ep/merlin/model"
pkgerr "github.com/pkg/errors"
)
// FindAllMachinePackages find all machine packages.
func (d *Dao) FindAllMachinePackages() (machinePackages []*model.MachinePackage, err error) {
err = pkgerr.WithStack(d.db.Find(&machinePackages).Error)
return
}