This commit is contained in:
Đăng Nguyễn
2025-11-03 10:29:18 +07:00
parent aea55d52f1
commit 70e27da4a2
14 changed files with 883 additions and 71 deletions

View File

@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using RobotApp.Common.Shares;
@@ -196,7 +195,7 @@ public class RobotConfigsController(Services.Logger<RobotConfigsController> Logg
VDA5050EnableTls = config.VDA5050EnableTls,
VDA5050CA = config.VDA5050CA,
VDA5050Cer = config.VDA5050Cer,
VDA5050_Key = config.VDA5050_Key,
VDA5050Key = config.VDA5050Key,
CreatedAt = config.CreatedAt,
UpdatedAt = config.UpdatedAt,
IsActive = config.IsActive,
@@ -234,7 +233,7 @@ public class RobotConfigsController(Services.Logger<RobotConfigsController> Logg
config.VDA5050EnableTls = updateDto.VDA5050EnableTls;
config.VDA5050CA = updateDto.VDA5050CA;
config.VDA5050Cer = updateDto.VDA5050Cer;
config.VDA5050_Key = updateDto.VDA5050_Key;
config.VDA5050Key = updateDto.VDA5050Key;
config.Description = updateDto.Description ?? config.Description;
config.UpdatedAt = DateTime.Now;
@@ -276,7 +275,7 @@ public class RobotConfigsController(Services.Logger<RobotConfigsController> Logg
VDA5050EnableTls = createDto.VDA5050EnableTls,
VDA5050CA = createDto.VDA5050CA,
VDA5050Cer = createDto.VDA5050Cer,
VDA5050_Key = createDto.VDA5050_Key,
VDA5050Key = createDto.VDA5050Key,
CreatedAt = DateTime.Now,
UpdatedAt = DateTime.Now,
IsActive = false
@@ -304,7 +303,7 @@ public class RobotConfigsController(Services.Logger<RobotConfigsController> Logg
VDA5050EnableTls = config.VDA5050EnableTls,
VDA5050CA = config.VDA5050CA,
VDA5050Cer = config.VDA5050Cer,
VDA5050_Key = config.VDA5050_Key,
VDA5050Key = config.VDA5050Key,
CreatedAt = config.CreatedAt,
UpdatedAt = config.UpdatedAt,
IsActive = config.IsActive,
@@ -860,5 +859,4 @@ public class RobotConfigsController(Services.Logger<RobotConfigsController> Logg
return new(false, "An error occurred while updating the active Safety configuration.");
}
}
}