MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / NewMockUserRepository

Function NewMockUserRepository

internal/mock/user.go:25–31  ·  view source on GitHub ↗
(db *gorm.DB, l *zap.Logger, ce *casbin.Enforcer)

Source from the content-addressed store, hash-verified

23}
24
25func NewMockUserRepository(db *gorm.DB, l *zap.Logger, ce *casbin.Enforcer) MockUserRepository {
26 return &mockUserRepository{
27 db: db,
28 ce: ce,
29 l: l,
30 }
31}
32
33// User 用户信息结构体
34type User struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected