28 lines
648 B
Go
28 lines
648 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
||
|
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
||
|
)
|
||
|
|
||
|
var _ UserAuthModel = (*customUserAuthModel)(nil)
|
||
|
|
||
|
type (
|
||
|
// UserAuthModel is an interface to be customized, add more methods here,
|
||
|
// and implement the added methods in customUserAuthModel.
|
||
|
UserAuthModel interface {
|
||
|
userAuthModel
|
||
|
}
|
||
|
|
||
|
customUserAuthModel struct {
|
||
|
*defaultUserAuthModel
|
||
|
}
|
||
|
)
|
||
|
|
||
|
// NewUserAuthModel returns a model for the database table.
|
||
|
func NewUserAuthModel(conn sqlx.SqlConn, c cache.CacheConf) UserAuthModel {
|
||
|
return &customUserAuthModel{
|
||
|
defaultUserAuthModel: newUserAuthModel(conn, c),
|
||
|
}
|
||
|
}
|