first commit
This commit is contained in:
27
app/main/model/agentConfigModel.go
Normal file
27
app/main/model/agentConfigModel.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/zeromicro/go-zero/core/stores/cache"
|
||||
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
||||
)
|
||||
|
||||
var _ AgentConfigModel = (*customAgentConfigModel)(nil)
|
||||
|
||||
type (
|
||||
// AgentConfigModel is an interface to be customized, add more methods here,
|
||||
// and implement the added methods in customAgentConfigModel.
|
||||
AgentConfigModel interface {
|
||||
agentConfigModel
|
||||
}
|
||||
|
||||
customAgentConfigModel struct {
|
||||
*defaultAgentConfigModel
|
||||
}
|
||||
)
|
||||
|
||||
// NewAgentConfigModel returns a model for the database table.
|
||||
func NewAgentConfigModel(conn sqlx.SqlConn, c cache.CacheConf) AgentConfigModel {
|
||||
return &customAgentConfigModel{
|
||||
defaultAgentConfigModel: newAgentConfigModel(conn, c),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user