Documentation
¶
Index ¶
- type CreateInput
- type Service
- func (s *Service) Create(ctx context.Context, input CreateInput) (models.SubComponent, error)
- func (s *Service) Delete(ctx context.Context, id primitive.ObjectID) error
- func (s *Service) List(ctx context.Context, componentIDHex string, page, limit int) ([]models.SubComponent, int64, error)
- func (s *Service) Update(ctx context.Context, id primitive.ObjectID, input UpdateInput) (models.SubComponent, error)
- type UpdateInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct {
ComponentID string
Name string
Description string
Status models.ComponentStatus
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo repository.SubComponentRepository) *Service
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, input CreateInput) (models.SubComponent, error)
type UpdateInput ¶
type UpdateInput struct {
ComponentID string
Name string
Description string
Status models.ComponentStatus
}
Click to show internal directories.
Click to hide internal directories.