repo.go 251 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13
package msg_m

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

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