subcomponent

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id primitive.ObjectID) error

func (*Service) List

func (s *Service) List(ctx context.Context, componentIDHex string, page, limit int) ([]models.SubComponent, int64, error)

func (*Service) Update

type UpdateInput

type UpdateInput struct {
	ComponentID string
	Name        string
	Description string
	Status      models.ComponentStatus
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL