This commit is contained in:
2024-10-16 20:46:46 +08:00
parent fdfdbb5ff6
commit 185b8aef90
14 changed files with 546 additions and 306 deletions

View 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 _ UserConfigModel = (*customUserConfigModel)(nil)
type (
// UserConfigModel is an interface to be customized, add more methods here,
// and implement the added methods in customUserConfigModel.
UserConfigModel interface {
userConfigModel
}
customUserConfigModel struct {
*defaultUserConfigModel
}
)
// NewUserConfigModel returns a model for the database table.
func NewUserConfigModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) UserConfigModel {
return &customUserConfigModel{
defaultUserConfigModel: newUserConfigModel(conn, c, opts...),
}
}