nft质押道具发放

This commit is contained in:
lianghuanjie
2025-01-02 15:45:53 +08:00
parent ea86ab71e8
commit bc0aeec1da
9 changed files with 215 additions and 13 deletions

View File

@@ -0,0 +1,29 @@
package model
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ NhNftStakePropertyModel = (*customNhNftStakePropertyModel)(nil)
type (
// NhNftStakePropertyModel is an interface to be customized, add more methods here,
// and implement the added methods in customNhNftStakePropertyModel.
NhNftStakePropertyModel interface {
nhNftStakePropertyModel
withSession(session sqlx.Session) NhNftStakePropertyModel
}
customNhNftStakePropertyModel struct {
*defaultNhNftStakePropertyModel
}
)
// NewNhNftStakePropertyModel returns a model for the database table.
func NewNhNftStakePropertyModel(conn sqlx.SqlConn) NhNftStakePropertyModel {
return &customNhNftStakePropertyModel{
defaultNhNftStakePropertyModel: newNhNftStakePropertyModel(conn),
}
}
func (m *customNhNftStakePropertyModel) withSession(session sqlx.Session) NhNftStakePropertyModel {
return NewNhNftStakePropertyModel(sqlx.NewSqlConnFromSession(session))
}