refactor: change structure project

This commit is contained in:
lorsan
2026-05-03 19:17:55 +03:00
parent e289365ce8
commit c44fedb488
38 changed files with 62 additions and 59 deletions
@@ -0,0 +1,18 @@
package hub_service
import (
domainHub "github.com/lorsanstand/HomeOps-Hub/hub/internal/domain"
"github.com/lorsanstand/HomeOps-Hub/shared/domain"
)
func toCreateAgentModel(agent domain.RegisterAgentRequest) domainHub.CreateAgentModel {
return domainHub.CreateAgentModel{
AgentID: agent.AgentId,
AgentName: agent.AgentName,
Architecture: agent.Host.Arch,
System: agent.Host.System,
Hostname: agent.Host.Hostname,
Version: agent.AgentVersion,
Capabilities: agent.Capabilities,
}
}