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