增加提取castile到游戏的数据库表,定义API接口等;
This commit is contained in:
29
internal/model/nh_castile_token_log_model.go
Normal file
29
internal/model/nh_castile_token_log_model.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package model
|
||||
|
||||
import "github.com/zeromicro/go-zero/core/stores/sqlx"
|
||||
|
||||
var _ NhCastileTokenLogModel = (*customNhCastileTokenLogModel)(nil)
|
||||
|
||||
type (
|
||||
// NhCastileTokenLogModel is an interface to be customized, add more methods here,
|
||||
// and implement the added methods in customNhCastileTokenLogModel.
|
||||
NhCastileTokenLogModel interface {
|
||||
nhCastileTokenLogModel
|
||||
withSession(session sqlx.Session) NhCastileTokenLogModel
|
||||
}
|
||||
|
||||
customNhCastileTokenLogModel struct {
|
||||
*defaultNhCastileTokenLogModel
|
||||
}
|
||||
)
|
||||
|
||||
// NewNhCastileTokenLogModel returns a model for the database table.
|
||||
func NewNhCastileTokenLogModel(conn sqlx.SqlConn) NhCastileTokenLogModel {
|
||||
return &customNhCastileTokenLogModel{
|
||||
defaultNhCastileTokenLogModel: newNhCastileTokenLogModel(conn),
|
||||
}
|
||||
}
|
||||
|
||||
func (m *customNhCastileTokenLogModel) withSession(session sqlx.Session) NhCastileTokenLogModel {
|
||||
return NewNhCastileTokenLogModel(sqlx.NewSqlConnFromSession(session))
|
||||
}
|
||||
Reference in New Issue
Block a user