Documentation ¶
Index ¶
- Variables
- func GetDb(ctx context.Context, provider gorm.DbProvider) *g.DB
- func NewMenuRepo(dbProvider sgorm.DbProvider, eventbus *eventbus.EventBus) biz.MenuRepo
- type Data
- type MenuRepo
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewMigrate, NewMenuRepo, )
ProviderSet is data providers.
Functions ¶
func NewMenuRepo ¶
func NewMenuRepo(dbProvider sgorm.DbProvider, eventbus *eventbus.EventBus) biz.MenuRepo
Types ¶
type MenuRepo ¶
func (*MenuRepo) BuildDetailScope ¶
BuildDetailScope preload relations
func (*MenuRepo) BuildFilterScope ¶
BuildFilterScope filter
func (*MenuRepo) DefaultSorting ¶
func (*MenuRepo) FindByName ¶
Click to show internal directories.
Click to hide internal directories.