Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.