package domain import "context" type SettingRepository interface { Upsert(ctx context.Context, setting *Setting) error FindByKey(ctx context.Context, tenantID, key string) (*Setting, error) FindByTenant(ctx context.Context, tenantID string) ([]Setting, error) FindGlobal(ctx context.Context) ([]Setting, error) Delete(ctx context.Context, tenantID, key string) error }