carv api logic

This commit is contained in:
lianghuanjie
2025-01-08 17:53:43 +08:00
parent 5c4862fd70
commit 5d2a0a8b5d
14 changed files with 252 additions and 62 deletions

View File

@@ -0,0 +1,29 @@
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))
}