add: user accomplished
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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...),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user