Documentation
¶
Index ¶
- type CreateInput
- type Service
- func (s *Service) Create(ctx context.Context, input CreateInput) (models.Maintenance, error)
- func (s *Service) Delete(ctx context.Context, id primitive.ObjectID) error
- func (s *Service) GetByID(ctx context.Context, id primitive.ObjectID) (models.Maintenance, error)
- func (s *Service) List(ctx context.Context, page, limit int) ([]models.Maintenance, int64, error)
- func (s *Service) ListHistory(ctx context.Context, id primitive.ObjectID) ([]models.AuditLog, error)
- func (s *Service) ListPublic(ctx context.Context, page, limit int) ([]models.Maintenance, int64, error)
- func (s *Service) Update(ctx context.Context, id primitive.ObjectID, input UpdateInput) (models.Maintenance, error)
- type UpdateInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo repository.MaintenanceRepository) *Service
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, input CreateInput) (models.Maintenance, error)
func (*Service) ListHistory ¶
func (*Service) ListPublic ¶
type UpdateInput ¶
type UpdateInput struct {
Title string
Description string
DescriptionJSON models.RichTextDocument
VisibilityState models.IncidentVisibilityState
Status models.MaintenanceStatus
StartTime string
EndTime string
}
Click to show internal directories.
Click to hide internal directories.