完成系统管理web端功能,实现系统管理服务端接口,实现登录功能

This commit is contained in:
lixiaoyuan
2025-07-18 09:08:09 +08:00
parent 4a198a7271
commit 7b3f32f334
31 changed files with 1384 additions and 325 deletions

View File

@@ -0,0 +1,28 @@
#include "Communicator.h"
#include "TcpEntity.h"
std::shared_ptr<CommEntity> Communicator::createEntity(DataFields& data)
{
std::string commType = data.getStr("commType");
std::string ip = data.getStr("ip");
int port = data.getInt("port");
int isclient = data.getInt("isclient");
if (commType == "TCP")
{
auto entity = std::make_shared<TcpEntity>();
entity->setHost(ip, port, isclient);
return entity;
}
else if (commType == "MODBUS")
{
}
else if (commType == "ACTIVEX")
{
}
else if (commType == "SDK")
{
}
return nullptr;
}