pcm-coordinator/pkg/models/computeCenterModel.go

28 lines
720 B
Go

package models
import (
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ ComputeCenterModel = (*customComputeCenterModel)(nil)
type (
// ComputeCenterModel is an interface to be customized, add more methods here,
// and implement the added methods in customComputeCenterModel.
ComputeCenterModel interface {
computeCenterModel
}
customComputeCenterModel struct {
*defaultComputeCenterModel
}
)
// NewComputeCenterModel returns a models for the database table.
func NewComputeCenterModel(conn sqlx.SqlConn, c cache.CacheConf) ComputeCenterModel {
return &customComputeCenterModel{
defaultComputeCenterModel: newComputeCenterModel(conn, c),
}
}