Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewDatabaseClient, NewEntityRepoImpl)
ProviderSet is data providers.
Functions ¶
func NewEntityRepoImpl ¶
func NewEntityRepoImpl(client *DatabaseClient, logger log.Logger) biz.EntityRepo
NewEntityRepoImpl 构造函数 TODO 这个函数名改不改都行。无论是否修改,都需要删除该TODO。
Types ¶
type DatabaseClient ¶
type DatabaseClient struct { }
DatabaseClient 数据客户端包装器
func NewDatabaseClient ¶
NewDatabaseClient 是DatabaseClient构造函数
type EntityRepoImpl ¶
type EntityRepoImpl struct {
// contains filtered or unexported fields
}
EntityRepoImpl 实体的读/写/查询操作接口实现。 TODO 'EntityRepo'需要替换为对应的接口名,后缀统一为Impl
Click to show internal directories.
Click to hide internal directories.