2fas-server/internal/api/icons/app/app.go

43 lines
1.5 KiB
Go
Raw Normal View History

2022-12-31 10:22:38 +01:00
package app
import (
2023-01-30 19:59:42 +01:00
"github.com/twofas/2fas-server/internal/api/icons/app/command"
"github.com/twofas/2fas-server/internal/api/icons/app/queries"
2022-12-31 10:22:38 +01:00
)
type Commands struct {
CreateWebService *command.CreateWebServiceHandler
UpdateWebService *command.UpdateWebServiceHandler
RemoveWebService *command.DeleteWebServiceHandler
RemoveAllWebServices *command.DeleteAllWebServicesHandler
CreateIcon *command.CreateIconHandler
UpdateIcon *command.UpdateIconHandler
RemoveIcon *command.DeleteIconHandler
RemoveAllIcons *command.DeleteAllIconsHandler
CreateIconRequest *command.CreateIconRequestHandler
RemoveIconRequest *command.DeleteIconRequestHandler
RemoveAllIconsRequests *command.DeleteAllIconsRequestsHandler
UpdateWebServiceFromIconRequest *command.UpdateWebServiceFromIconRequestHandler
TransformIconRequestToWebService *command.TransformIconRequestToWebServiceHandler
CreateIconsCollection *command.CreateIconsCollectionHandler
UpdateIconsCollection *command.UpdateIconsCollectionHandler
RemoveIconsCollection *command.DeleteIconsCollectionHandler
RemoveAllIconsCollections *command.DeleteAllIconsCollectionsHandler
}
type Queries struct {
WebServiceQuery *queries.WebServiceQueryHandler
WebServicesDumpQuery *queries.WebServicesDumpQueryHandler
IconQuery *queries.IconQueryHandler
IconRequestQuery *queries.IconRequestQueryHandler
IconsCollectionQuery *queries.IconsCollectionQueryHandler
}
type Cqrs struct {
Commands Commands
Queries Queries
}