mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
fix #IB8X8Y 升级.NET 9 后添加角色报错
This commit is contained in:
parent
82fe559792
commit
fb5f0c35b7
@ -10,7 +10,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="9.0.0" />
|
||||
<PackageReference Include="AutoMapper" Version="13.0.1" />
|
||||
<PackageReference Include="EnyimMemcachedCore" Version="2.5.3" />
|
||||
<PackageReference Include="log4net" Version="2.0.12" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
|
||||
|
@ -39,7 +39,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
|
||||
//添加
|
||||
[HttpPost]
|
||||
public Response Add(AddOrUpdate{ClassName}Req obj)
|
||||
public Response Add([FromBody]AddOrUpdate{ClassName}Req obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
@ -58,7 +58,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
|
||||
//修改
|
||||
[HttpPost]
|
||||
public Response Update(AddOrUpdate{ClassName}Req obj)
|
||||
public Response Update([FromBody]AddOrUpdate{ClassName}Req obj)
|
||||
{
|
||||
var result = new Response();
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user