特朗普头像任务
This commit is contained in:
29
internal/model/nh_games_property_logs_model.go
Executable file
29
internal/model/nh_games_property_logs_model.go
Executable 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))
|
||||
}
|
||||
Reference in New Issue
Block a user