Selaa lähdekoodia

feat: add read services (installable and installed) DTOs

Matheus Marques Polillo 9 kuukautta sitten
vanhempi
commit
ee71eaacb6

+ 18 - 0
src/domain/dto/readInstallableServicesItems.go

@@ -0,0 +1,18 @@
+package dto
+
+import (
+	"github.com/goinfinite/os/src/domain/entity"
+	"github.com/goinfinite/os/src/domain/valueObject"
+)
+
+type ReadInstallableServicesItemsRequest struct {
+	Pagination Pagination                 `json:"pagination"`
+	Name       *valueObject.ServiceName   `json:"name,omitempty"`
+	Nature     *valueObject.ServiceNature `json:"nature,omitempty"`
+	Type       *valueObject.ServiceType   `json:"type,omitempty"`
+}
+
+type ReadInstallableServicesItemsResponse struct {
+	Pagination Pagination                  `json:"pagination"`
+	Items      []entity.InstallableService `json:"items"`
+}

+ 18 - 0
src/domain/dto/readInstalledServicesItems.go

@@ -0,0 +1,18 @@
+package dto
+
+import (
+	"github.com/goinfinite/os/src/domain/entity"
+	"github.com/goinfinite/os/src/domain/valueObject"
+)
+
+type ReadInstalledServicesItemsRequest struct {
+	Pagination Pagination                 `json:"pagination"`
+	Name       *valueObject.ServiceName   `json:"name,omitempty"`
+	Nature     *valueObject.ServiceNature `json:"nature,omitempty"`
+	Type       *valueObject.ServiceType   `json:"type,omitempty"`
+}
+
+type ReadInstalledServicesItemsResponse struct {
+	Pagination Pagination                `json:"pagination"`
+	Items      []entity.InstalledService `json:"items"`
+}