Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2022 Changes in this version + var ProviderSet = wire.NewSet(NewData, NewMigrate, NewMenuRepo) + func GetDb(ctx context.Context, provider gorm.DbProvider) *g.DB + func NewMenuRepo(dbProvider sgorm.DbProvider, eventbus *eventbus.EventBus) biz.MenuRepo + type Data struct + DbProvider gorm.DbProvider + func NewData(c *kconf.Data, dbProvider gorm.DbProvider, logger log.Logger) (*Data, func(), error) + type MenuRepo struct + func (c *MenuRepo) BuildDetailScope(withDetail bool) func(db *gorm.DB) *gorm.DB + func (c *MenuRepo) BuildFilterScope(q *v1.ListMenuRequest) func(db *gorm.DB) *gorm.DB + func (c *MenuRepo) DefaultSorting() []string + func (c *MenuRepo) Delete(ctx context.Context, id string) error + func (c *MenuRepo) FindByName(ctx context.Context, name string) (*biz.Menu, error) + func (c *MenuRepo) GetDb(ctx context.Context) *gorm.DB + func (c *MenuRepo) UpdateAssociation(ctx context.Context, entity *biz.Menu) error + type Migrate struct + func NewMigrate(data *Data) *Migrate + func (m *Migrate) Seed(ctx context.Context, sCtx *seed.Context) error