pcm-coordinator/pkg/models/computeclustermodel.go

25 lines
657 B
Go

package models
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ ComputeClusterModel = (*customComputeClusterModel)(nil)
type (
// ComputeClusterModel is an interface to be customized, add more methods here,
// and implement the added methods in customComputeClusterModel.
ComputeClusterModel interface {
computeClusterModel
}
customComputeClusterModel struct {
*defaultComputeClusterModel
}
)
// NewComputeClusterModel returns a models for the database table.
func NewComputeClusterModel(conn sqlx.SqlConn) ComputeClusterModel {
return &customComputeClusterModel{
defaultComputeClusterModel: newComputeClusterModel(conn),
}
}