28 lines
803 B
Go
28 lines
803 B
Go
package svc
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
|
)
|
|
|
|
var _ UserVerificationsModel = (*customUserVerificationsModel)(nil)
|
|
|
|
type (
|
|
// UserVerificationsModel is an interface to be customized, add more methods here,
|
|
// and implement the added methods in customUserVerificationsModel.
|
|
UserVerificationsModel interface {
|
|
userVerificationsModel
|
|
}
|
|
|
|
customUserVerificationsModel struct {
|
|
*defaultUserVerificationsModel
|
|
}
|
|
)
|
|
|
|
// NewUserVerificationsModel returns a model for the database table.
|
|
func NewUserVerificationsModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) UserVerificationsModel {
|
|
return &customUserVerificationsModel{
|
|
defaultUserVerificationsModel: newUserVerificationsModel(conn, c, opts...),
|
|
}
|
|
}
|