nft质押道具发放
This commit is contained in:
29
internal/model/nh_nft_stake_property_model.go
Executable file
29
internal/model/nh_nft_stake_property_model.go
Executable 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))
|
||||
}
|
||||
Reference in New Issue
Block a user