30 lines
838 B
Go
Executable File
30 lines
838 B
Go
Executable File
package model
|
|
|
|
import "github.com/zeromicro/go-zero/core/stores/sqlx"
|
|
|
|
var _ NhGameReportModel = (*customNhGameReportModel)(nil)
|
|
|
|
type (
|
|
// NhGameReportModel is an interface to be customized, add more methods here,
|
|
// and implement the added methods in customNhGameReportModel.
|
|
NhGameReportModel interface {
|
|
nhGameReportModel
|
|
withSession(session sqlx.Session) NhGameReportModel
|
|
}
|
|
|
|
customNhGameReportModel struct {
|
|
*defaultNhGameReportModel
|
|
}
|
|
)
|
|
|
|
// NewNhGameReportModel returns a model for the database table.
|
|
func NewNhGameReportModel(conn sqlx.SqlConn) NhGameReportModel {
|
|
return &customNhGameReportModel{
|
|
defaultNhGameReportModel: newNhGameReportModel(conn),
|
|
}
|
|
}
|
|
|
|
func (m *customNhGameReportModel) withSession(session sqlx.Session) NhGameReportModel {
|
|
return NewNhGameReportModel(sqlx.NewSqlConnFromSession(session))
|
|
}
|