Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
package collection
|
||||
|
||||
import (
|
||||
"codeberg.org/mapleopentech/monorepo/native/desktop/maplefile/internal/domain/collection"
|
||||
)
|
||||
|
||||
type DeleteUseCase struct {
|
||||
collectionRepo collection.Repository
|
||||
}
|
||||
|
||||
// ProvideDeleteUseCase creates the use case for Wire
|
||||
func ProvideDeleteUseCase(collectionRepo collection.Repository) *DeleteUseCase {
|
||||
return &DeleteUseCase{collectionRepo: collectionRepo}
|
||||
}
|
||||
|
||||
// Execute deletes a collection by ID
|
||||
func (uc *DeleteUseCase) Execute(id string) error {
|
||||
return uc.collectionRepo.Delete(id)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue