repo.go 428 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package groupPower_m

import (
	"hilo-group/domain/model"
	"hilo-group/myerr"
)

func (groupPower *GroupPower) Persistent() error {
	if err := model.Persistent(groupPower.Db, groupPower); err != nil {
		return myerr.WrapErr(err)
	}
	return nil
}

func (groupPowerUser *GroupPowerUser) Persistent() error {
	if err := model.Persistent(groupPowerUser.Db, groupPowerUser); err != nil {
		return myerr.WrapErr(err)
	}
	return nil
}