28 lines
693 B
Go
28 lines
693 B
Go
package model
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
|
)
|
|
|
|
var _ GameScoreModel = (*customGameScoreModel)(nil)
|
|
|
|
type (
|
|
// GameScoreModel is an interface to be customized, add more methods here,
|
|
// and implement the added methods in customGameScoreModel.
|
|
GameScoreModel interface {
|
|
gameScoreModel
|
|
}
|
|
|
|
customGameScoreModel struct {
|
|
*defaultGameScoreModel
|
|
}
|
|
)
|
|
|
|
// NewGameScoreModel returns a model for the database table.
|
|
func NewGameScoreModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) GameScoreModel {
|
|
return &customGameScoreModel{
|
|
defaultGameScoreModel: newGameScoreModel(conn, c, opts...),
|
|
}
|
|
}
|