14 lines
313 B
Go
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
|
|
}
|