28 lines
721 B
Go
Executable File
28 lines
721 B
Go
Executable File
package model
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
|
)
|
|
|
|
var _ MachineNodeModel = (*customMachineNodeModel)(nil)
|
|
|
|
type (
|
|
// MachineNodeModel is an interface to be customized, add more methods here,
|
|
// and implement the added methods in customMachineNodeModel.
|
|
MachineNodeModel interface {
|
|
machineNodeModel
|
|
}
|
|
|
|
customMachineNodeModel struct {
|
|
*defaultMachineNodeModel
|
|
}
|
|
)
|
|
|
|
// NewMachineNodeModel returns a model for the database table.
|
|
func NewMachineNodeModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) MachineNodeModel {
|
|
return &customMachineNodeModel{
|
|
defaultMachineNodeModel: newMachineNodeModel(conn, c, opts...),
|
|
}
|
|
}
|