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

25 lines
543 B
Go
Raw Normal View History

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