Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetPendingApprovalsListConfig ¶
type GetPendingApprovalsListConfig struct {
DryRun bool
}
type PendingAppeal ¶
type PendingAppeal struct {
ID string
}
type PendingApproval ¶
type PendingApproval struct { Approver string Count int Appeals []PendingAppeal // ideally []*domain.Appeal, but only ID is needed for now }
type PendingApprovalModel ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *gorm.DB) *Repository
func (*Repository) GetPendingApprovalsList ¶
func (r *Repository) GetPendingApprovalsList(ctx context.Context, filters *PendingApprovalsReportFilter) ([]*PendingApprovalModel, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(deps ServiceDeps) *Service
func (*Service) GetPendingApprovalsList ¶
func (s *Service) GetPendingApprovalsList(ctx context.Context, cfg *GetPendingApprovalsListConfig) ([]*PendingApproval, error)
type ServiceDeps ¶
Click to show internal directories.
Click to hide internal directories.