app-cloudep-trade-service/internal/model/transaction_model.go

25 lines
613 B
Go
Raw Permalink Normal View History

2024-10-29 08:17:31 +00:00
package model
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ TransactionModel = (*customTransactionModel)(nil)
type (
// TransactionModel is an interface to be customized, add more methods here,
// and implement the added methods in customTransactionModel.
TransactionModel interface {
transactionModel
}
customTransactionModel struct {
*defaultTransactionModel
}
)
// NewTransactionModel returns a model for the database table.
func NewTransactionModel(conn sqlx.SqlConn) TransactionModel {
return &customTransactionModel{
defaultTransactionModel: newTransactionModel(conn),
}
}