package receiver

import "github.com/tidbcloud/jiraport/pkg/entity"

const (
	GroupReceiverType  = "group"
	PersonReceiverType = "person"
)

type Receiver interface {
	Type() string
	ID() string
	Show() string
	BotType() string
}

type ReceiverSelector interface {
	SelectReceiver(name string, data *entity.Issue) ([]Receiver, error)
}

type NoAssigneeError struct {
	s string
}

func (nae *NoAssigneeError) Error() string {
	return nae.s
}
