30 lines
946 B
Go
Executable File
30 lines
946 B
Go
Executable File
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))
|
|
}
|