pg_bid_infos_dao.go 605 字节
package dao

import (
	"fmt"
	pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)

type BidInfosDao struct {
	transactionContext *pgTransaction.TransactionContext
}

//TODO ChangeBidInfosSuccessfulBidderAccount
func (dao *BidInfosDao) ChangeBidInfosSuccessfulBidderAccount(uid int64, newAccount string) {

}

func NewBidInfosDao(transactionContext *pgTransaction.TransactionContext) (*BidInfosDao, error) {
	if transactionContext == nil {
		return nil, fmt.Errorf("transactionContext参数不能为nil")
	} else {
		return &BidInfosDao{
			transactionContext: transactionContext,
		}, nil
	}
}