mysql_machine_package.go 313 B

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