repository

package
v0.0.0-...-2147667 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() fx.Option

Types

type TenantRepo

type TenantRepo interface {
	FindByID(ctx context.Context, id uuid.UUID) (*entity.Tenant, error)
	FindByPublicID(ctx context.Context, publicID string) (*entity.Tenant, error)
	FindAll(ctx context.Context, request *domain.ListRequest) ([]*entity.Tenant, error)

	ExistByName(ctx context.Context, name string) (bool, error)
	ExistByDomain(ctx context.Context, domain string) (bool, error)
	ExistByNameAndIDNot(ctx context.Context, name string, id uuid.UUID) (bool, error)

	CountAll(ctx context.Context, request *domain.ListRequest) (int64, error)

	Save(ctx context.Context, tenant *entity.Tenant) error
}

func NewTenantRepo

func NewTenantRepo(params TenantRepoParams) (TenantRepo, error)

type TenantRepoParams

type TenantRepoParams struct {
	fx.In
	DB *sql.DB
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL