automapper自动映射(传入前端数据ID必须转string)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Service.Interface;
|
||||
using Model.Entity.Inspection;
|
||||
|
||||
namespace WebAPI.Controllers
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="16.2.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Model.Entity;
|
||||
using Model.Entity.Inspection;
|
||||
using ORM;
|
||||
|
||||
namespace WebAPI.Services
|
||||
|
||||
Reference in New Issue
Block a user