Files
novatask/internal/model/nh_game_report_model.go
lianghuanjie 5d2a0a8b5d carv api logic
2025-01-08 17:53:43 +08:00

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))
}