template-monorepo/internal/model/member/domain/repository/tenant.go

16 lines
456 B
Go

package repository
import (
"context"
"gateway/internal/model/member/domain/entity"
)
// TenantRepository persists tenant metadata.
type TenantRepository interface {
Insert(ctx context.Context, tenant *entity.Tenant) error
GetByTenantID(ctx context.Context, tenantID string) (*entity.Tenant, error)
GetBySlug(ctx context.Context, slug string) (*entity.Tenant, error)
GetByUIDPrefix(ctx context.Context, uidPrefix string) (*entity.Tenant, error)
}