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

16 lines
456 B
Go
Raw Permalink Normal View History

2026-05-20 23:51:22 +00:00
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)
}