automapper自动映射(传入前端数据ID必须转string)

This commit is contained in:
“hsc”
2026-08-28 13:15:44 +08:00
parent 9e78aa7769
commit 01f51fa3b4
13 changed files with 493 additions and 10 deletions
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Mvc;
using Service.Interface;
using Model.Entity.Inspection;
namespace WebAPI.Controllers
{
+1
View File
@@ -7,6 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="16.2.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>
+1 -1
View File
@@ -1,4 +1,4 @@
using Model.Entity;
using Model.Entity.Inspection;
using ORM;
namespace WebAPI.Services