增加提取castile到游戏的数据库表,定义API接口等;

This commit is contained in:
yuming88
2025-04-28 14:12:44 +08:00
parent 109d76cd2e
commit e50137a90e
14 changed files with 692 additions and 3 deletions

View File

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