pg_sent_notifications_dao.go
618 字节
package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type SentNotificationDao struct {
transactionContext *pgTransaction.TransactionContext
}
// ChangeSentNotificationReceiverAccount TODO
func (dao *SentNotificationDao) ChangeSentNotificationReceiverAccount() {
}
func NewSentNotificationDao(transactionContext *pgTransaction.TransactionContext) (*SentNotificationDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &SentNotificationDao{
transactionContext: transactionContext,
}, nil
}
}