28 lines
735 B
Go
Executable File
28 lines
735 B
Go
Executable File
package model
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
|
)
|
|
|
|
var _ AccountToUidModel = (*customAccountToUidModel)(nil)
|
|
|
|
type (
|
|
// AccountToUidModel is an interface to be customized, add more methods here,
|
|
// and implement the added methods in customAccountToUidModel.
|
|
AccountToUidModel interface {
|
|
accountToUidModel
|
|
}
|
|
|
|
customAccountToUidModel struct {
|
|
*defaultAccountToUidModel
|
|
}
|
|
)
|
|
|
|
// NewAccountToUidModel returns a model for the database table.
|
|
func NewAccountToUidModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) AccountToUidModel {
|
|
return &customAccountToUidModel{
|
|
defaultAccountToUidModel: newAccountToUidModel(conn, c, opts...),
|
|
}
|
|
}
|