特朗普头像任务

This commit is contained in:
lianghuanjie
2025-01-20 21:55:43 +08:00
parent 38bb283fa1
commit 9c742c50c3
18 changed files with 266 additions and 32 deletions

View File

@@ -0,0 +1,29 @@
package model
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ NhGamesPropertyLogsModel = (*customNhGamesPropertyLogsModel)(nil)
type (
// NhGamesPropertyLogsModel is an interface to be customized, add more methods here,
// and implement the added methods in customNhGamesPropertyLogsModel.
NhGamesPropertyLogsModel interface {
nhGamesPropertyLogsModel
WithSession(session sqlx.Session) NhGamesPropertyLogsModel
}
customNhGamesPropertyLogsModel struct {
*defaultNhGamesPropertyLogsModel
}
)
// NewNhGamesPropertyLogsModel returns a model for the database table.
func NewNhGamesPropertyLogsModel(conn sqlx.SqlConn) NhGamesPropertyLogsModel {
return &customNhGamesPropertyLogsModel{
defaultNhGamesPropertyLogsModel: newNhGamesPropertyLogsModel(conn),
}
}
func (m *customNhGamesPropertyLogsModel) WithSession(session sqlx.Session) NhGamesPropertyLogsModel {
return NewNhGamesPropertyLogsModel(sqlx.NewSqlConnFromSession(session))
}