Documentation ¶
Index ¶
- Variables
- func GetDb(ctx context.Context, provider dal.ConstDbProvider) *g.DB
- func NewTenantRepo(eventbus *eventbus.EventBus, data *Data) biz.TenantRepo
- type Data
- type Migrate
- type TenantRepo
- func (g *TenantRepo) BuildDetailScope(withDetail bool) func(db *gg.DB) *gg.DB
- func (g *TenantRepo) BuildFilterScope(q *v1.ListTenantRequest) func(db *gg.DB) *gg.DB
- func (g *TenantRepo) DefaultSorting() []string
- func (g *TenantRepo) FindByIdOrName(ctx context.Context, idOrName string) (*biz.Tenant, error)
- func (g *TenantRepo) GetDb(ctx context.Context) *gg.DB
- func (g *TenantRepo) UpdateAssociation(ctx context.Context, entity *biz.Tenant) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewTenantRepo, NewMigrate, api.NewTenantStore, )
ProviderSet is data providers.
Functions ¶
func NewTenantRepo ¶
func NewTenantRepo(eventbus *eventbus.EventBus, data *Data) biz.TenantRepo
Types ¶
type TenantRepo ¶
func (*TenantRepo) BuildDetailScope ¶
func (*TenantRepo) BuildFilterScope ¶
func (g *TenantRepo) BuildFilterScope(q *v1.ListTenantRequest) func(db *gg.DB) *gg.DB
func (*TenantRepo) DefaultSorting ¶
func (g *TenantRepo) DefaultSorting() []string
func (*TenantRepo) FindByIdOrName ¶
func (*TenantRepo) UpdateAssociation ¶
Click to show internal directories.
Click to hide internal directories.