diff --git a/OpenAuth.WebApi/Controllers/AccessObjsController.cs b/OpenAuth.WebApi/Controllers/AccessObjsController.cs
index 590167be..a2289a87 100644
--- a/OpenAuth.WebApi/Controllers/AccessObjsController.cs
+++ b/OpenAuth.WebApi/Controllers/AccessObjsController.cs
@@ -30,7 +30,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Assign(AssignReq request)
+ public Response Assign([FromBody] AssignReq request)
{
var result = new Response();
try
@@ -49,7 +49,7 @@ namespace OpenAuth.WebApi.Controllers
/// 取消关联
///
[HttpPost]
- public Response UnAssign(AssignReq request)
+ public Response UnAssign([FromBody] AssignReq request)
{
var result = new Response();
try
@@ -70,7 +70,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response AssignDataProperty(AssignDataReq request)
+ public Response AssignDataProperty([FromBody] AssignDataReq request)
{
var result = new Response();
try
@@ -94,7 +94,7 @@ namespace OpenAuth.WebApi.Controllers
///
private static string lockobj = "lock";
[HttpPost]
- public Response UnAssignDataProperty(AssignDataReq request)
+ public Response UnAssignDataProperty([FromBody] AssignDataReq request)
{
var result = new Response();
try
@@ -118,7 +118,7 @@ namespace OpenAuth.WebApi.Controllers
/// 角色分配用户,整体提交,会覆盖之前的配置
///
[HttpPost]
- public Response AssignRoleUsers(AssignRoleUsers request)
+ public Response AssignRoleUsers([FromBody] AssignRoleUsers request)
{
var result = new Response();
try
@@ -138,7 +138,7 @@ namespace OpenAuth.WebApi.Controllers
/// 部门分配用户,整体提交,会覆盖之前的配置
///
[HttpPost]
- public Response AssignOrgUsers(AssignOrgUsers request)
+ public Response AssignOrgUsers([FromBody] AssignOrgUsers request)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/BuilderTableColumnsController.cs b/OpenAuth.WebApi/Controllers/BuilderTableColumnsController.cs
index f7478de0..34d8abb8 100644
--- a/OpenAuth.WebApi/Controllers/BuilderTableColumnsController.cs
+++ b/OpenAuth.WebApi/Controllers/BuilderTableColumnsController.cs
@@ -40,7 +40,7 @@ namespace OpenAuth.WebApi.Controllers
//修改
[HttpPost]
- public Response Update(AddOrUpdateBuilderTableColumnReq obj)
+ public Response Update([FromBody] AddOrUpdateBuilderTableColumnReq obj)
{
var result = new Response();
try
@@ -62,7 +62,7 @@ namespace OpenAuth.WebApi.Controllers
/// 读取数据库结构与当前结构的差异,如果数据库有新增的字段,则自动加入
///
[HttpPost]
- public Response Sync(SyncStructureReq obj)
+ public Response Sync([FromBody] SyncStructureReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/BuilderTablesController.cs b/OpenAuth.WebApi/Controllers/BuilderTablesController.cs
index bfabf340..3c5cbd65 100644
--- a/OpenAuth.WebApi/Controllers/BuilderTablesController.cs
+++ b/OpenAuth.WebApi/Controllers/BuilderTablesController.cs
@@ -25,7 +25,7 @@ namespace OpenAuth.WebApi.Controllers
/// 返回添加的模版ID
///
[HttpPost]
- public Response Add(AddOrUpdateBuilderTableReq obj)
+ public Response Add([FromBody] AddOrUpdateBuilderTableReq obj)
{
var result = new Response();
try
@@ -48,7 +48,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Update(AddOrUpdateBuilderTableReq obj)
+ public Response Update([FromBody] AddOrUpdateBuilderTableReq obj)
{
var result = new Response();
try
@@ -110,7 +110,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response CreateEntity(CreateEntityReq obj)
+ public Response CreateEntity([FromBody] CreateEntityReq obj)
{
var result = new Response();
try
@@ -133,7 +133,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response CreateBusiness(CreateBusiReq obj)
+ public Response CreateBusiness([FromBody] CreateBusiReq obj)
{
var result = new Response();
try
@@ -156,7 +156,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response CreateVue(CreateVueReq obj)
+ public Response CreateVue([FromBody] CreateVueReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/CategoryTypesController.cs b/OpenAuth.WebApi/Controllers/CategoryTypesController.cs
index 230f9ef6..208753f0 100644
--- a/OpenAuth.WebApi/Controllers/CategoryTypesController.cs
+++ b/OpenAuth.WebApi/Controllers/CategoryTypesController.cs
@@ -20,7 +20,7 @@ using OpenAuth.App.Response;
//添加
[HttpPost]
- public Response Add(AddOrUpdateCategoryTypeReq obj)
+ public Response Add([FromBody] AddOrUpdateCategoryTypeReq obj)
{
var result = new Response();
try
@@ -39,7 +39,7 @@ using OpenAuth.App.Response;
//修改
[HttpPost]
- public Response Update(AddOrUpdateCategoryTypeReq obj)
+ public Response Update([FromBody] AddOrUpdateCategoryTypeReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/CategorysController.cs b/OpenAuth.WebApi/Controllers/CategorysController.cs
index e1b2e28b..c228e933 100644
--- a/OpenAuth.WebApi/Controllers/CategorysController.cs
+++ b/OpenAuth.WebApi/Controllers/CategorysController.cs
@@ -46,7 +46,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Add(AddOrUpdateCategoryReq obj)
+ public Response Add([FromBody] AddOrUpdateCategoryReq obj)
{
var result = new Response();
try
@@ -68,7 +68,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Update(AddOrUpdateCategoryReq obj)
+ public Response Update([FromBody] AddOrUpdateCategoryReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/CheckController.cs b/OpenAuth.WebApi/Controllers/CheckController.cs
index 3ac8e2b2..0579104c 100644
--- a/OpenAuth.WebApi/Controllers/CheckController.cs
+++ b/OpenAuth.WebApi/Controllers/CheckController.cs
@@ -337,7 +337,7 @@ namespace OpenAuth.WebApi.Controllers
///
[HttpPost]
[AllowAnonymous]
- public LoginResult Login(PassportLoginRequest request)
+ public LoginResult Login([FromBody] PassportLoginRequest request)
{
var result = new LoginResult();
try
diff --git a/OpenAuth.WebApi/Controllers/DataPrivilegeRulesController.cs b/OpenAuth.WebApi/Controllers/DataPrivilegeRulesController.cs
index e5dd0977..d9485628 100644
--- a/OpenAuth.WebApi/Controllers/DataPrivilegeRulesController.cs
+++ b/OpenAuth.WebApi/Controllers/DataPrivilegeRulesController.cs
@@ -45,7 +45,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Add(AddOrUpdateDataPriviReq obj)
+ public Response Add([FromBody] AddOrUpdateDataPriviReq obj)
{
var result = new Response();
try
@@ -67,7 +67,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Update(AddOrUpdateDataPriviReq obj)
+ public Response Update([FromBody] AddOrUpdateDataPriviReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/FilesController.cs b/OpenAuth.WebApi/Controllers/FilesController.cs
index e0b6f9b9..75069cb8 100644
--- a/OpenAuth.WebApi/Controllers/FilesController.cs
+++ b/OpenAuth.WebApi/Controllers/FilesController.cs
@@ -69,7 +69,7 @@ namespace OpenAuth.WebApi.Controllers
/// 服务器存储的文件信息
[HttpPost]
[AllowAnonymous]
- public Response> Upload(IFormFileCollection files)
+ public Response> Upload([FromForm] IFormFileCollection files)
{
var result = new Response>();
try
@@ -93,7 +93,7 @@ namespace OpenAuth.WebApi.Controllers
/// 服务器存储的文件信息
[HttpPost]
[AllowAnonymous]
- public Response> UploadWithFormData(IFormCollection formdata)
+ public Response> UploadWithFormData([FromForm] IFormCollection formdata)
{
var result = new Response>();
try
diff --git a/OpenAuth.WebApi/Controllers/FlowApproversController.cs b/OpenAuth.WebApi/Controllers/FlowApproversController.cs
index d3ba6fd0..b185a562 100644
--- a/OpenAuth.WebApi/Controllers/FlowApproversController.cs
+++ b/OpenAuth.WebApi/Controllers/FlowApproversController.cs
@@ -21,7 +21,7 @@ namespace OpenAuth.WebApi.Controllers
//添加
[HttpPost]
- public Response Add(AddApproverReq obj)
+ public Response Add([FromBody] AddApproverReq obj)
{
var result = new Response();
try
@@ -39,7 +39,7 @@ namespace OpenAuth.WebApi.Controllers
//修改
[HttpPost]
- public Response Update(AddApproverReq obj)
+ public Response Update([FromBody] AddApproverReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/FlowInstancesController.cs b/OpenAuth.WebApi/Controllers/FlowInstancesController.cs
index fd8a8ed3..ca79097f 100644
--- a/OpenAuth.WebApi/Controllers/FlowInstancesController.cs
+++ b/OpenAuth.WebApi/Controllers/FlowInstancesController.cs
@@ -87,7 +87,7 @@ namespace OpenAuth.WebApi.Controllers
/// 召回流程
/// 召回后流程状态为【草稿】状态,可以再次发起流程。所有的流程节点状态还原,但保留审批记录
[HttpPost]
- public Response ReCall(RecallFlowInstanceReq obj)
+ public Response ReCall([FromBody] RecallFlowInstanceReq obj)
{
var result = new Response();
try
@@ -106,7 +106,7 @@ namespace OpenAuth.WebApi.Controllers
/// 启动流程
/// 通常是对状态为【草稿】的流程进行操作,进入运行状态
[HttpPost]
- public Response Start(StartFlowInstanceReq obj)
+ public Response Start([FromBody] StartFlowInstanceReq obj)
{
var result = new Response();
try
@@ -128,7 +128,7 @@ namespace OpenAuth.WebApi.Controllers
/// 更新时可以修改表单内容,可以修改流程基本信息,但不能更换表单模版
///
[HttpPost]
- public Response Update(UpdateFlowInstanceReq obj)
+ public Response Update([FromBody] UpdateFlowInstanceReq obj)
{
var result = new Response();
try
@@ -150,7 +150,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Verification(VerificationReq request)
+ public Response Verification([FromBody] VerificationReq request)
{
var response = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/FlowSchemesController.cs b/OpenAuth.WebApi/Controllers/FlowSchemesController.cs
index f517084d..440a1e07 100644
--- a/OpenAuth.WebApi/Controllers/FlowSchemesController.cs
+++ b/OpenAuth.WebApi/Controllers/FlowSchemesController.cs
@@ -38,7 +38,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response Add(FlowScheme obj)
+ public Response Add([FromBody] FlowScheme obj)
{
var result = new Response();
try
@@ -57,7 +57,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response Update(FlowScheme obj)
+ public Response Update([FromBody] FlowScheme obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/FormsController.cs b/OpenAuth.WebApi/Controllers/FormsController.cs
index 14144ce4..20a11848 100644
--- a/OpenAuth.WebApi/Controllers/FormsController.cs
+++ b/OpenAuth.WebApi/Controllers/FormsController.cs
@@ -49,7 +49,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response Add(Form obj)
+ public Response Add([FromBody] Form obj)
{
var result = new Response();
try
@@ -68,7 +68,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response Update(Form obj)
+ public Response Update([FromBody] Form obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/ModulesController.cs b/OpenAuth.WebApi/Controllers/ModulesController.cs
index 6e56659d..09e193a1 100644
--- a/OpenAuth.WebApi/Controllers/ModulesController.cs
+++ b/OpenAuth.WebApi/Controllers/ModulesController.cs
@@ -132,7 +132,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response Add(Module obj)
+ public Response Add([FromBody] Module obj)
{
var result = new Response();
try
@@ -151,7 +151,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response Update(Module obj)
+ public Response Update([FromBody] Module obj)
{
var result = new Response();
try
@@ -192,7 +192,7 @@ namespace OpenAuth.WebApi.Controllers
/// 当前登录用户的所有角色会自动分配菜单
///
[HttpPost]
- public Response AddMenu(ModuleElement obj)
+ public Response AddMenu([FromBody] ModuleElement obj)
{
var result = new Response();
try
@@ -213,7 +213,7 @@ namespace OpenAuth.WebApi.Controllers
/// 修改菜单属性
///
[HttpPost]
- public Response UpdateMenu(ModuleElement obj)
+ public Response UpdateMenu([FromBody] ModuleElement obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/OpenJobsController.cs b/OpenAuth.WebApi/Controllers/OpenJobsController.cs
index eb02eeb9..21deb431 100644
--- a/OpenAuth.WebApi/Controllers/OpenJobsController.cs
+++ b/OpenAuth.WebApi/Controllers/OpenJobsController.cs
@@ -45,7 +45,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Add(AddOrUpdateOpenJobReq obj)
+ public Response Add([FromBody] AddOrUpdateOpenJobReq obj)
{
var result = new Response();
try
@@ -139,7 +139,7 @@ namespace OpenAuth.WebApi.Controllers
/// 改变任务状态,启动/停止
///
[HttpPost]
- public Response ChangeStatus(ChangeJobStatusReq req)
+ public Response ChangeStatus([FromBody] ChangeJobStatusReq req)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/OrgsController.cs b/OpenAuth.WebApi/Controllers/OrgsController.cs
index fe587ae6..b3d04507 100644
--- a/OpenAuth.WebApi/Controllers/OrgsController.cs
+++ b/OpenAuth.WebApi/Controllers/OrgsController.cs
@@ -43,7 +43,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Add(SysOrg obj)
+ public Response Add([FromBody] SysOrg obj)
{
var result = new Response();
try
@@ -62,7 +62,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response Update(SysOrg obj)
+ public Response Update([FromBody] SysOrg obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/ResourcesController.cs b/OpenAuth.WebApi/Controllers/ResourcesController.cs
index a7e63c98..3fb7f54f 100644
--- a/OpenAuth.WebApi/Controllers/ResourcesController.cs
+++ b/OpenAuth.WebApi/Controllers/ResourcesController.cs
@@ -49,7 +49,7 @@ namespace OpenAuth.WebApi.Controllers
}
[HttpPost]
- public Response Add(AddOrUpdateResReq obj)
+ public Response Add([FromBody] AddOrUpdateResReq obj)
{
var resp = new Response();
try
@@ -66,7 +66,7 @@ namespace OpenAuth.WebApi.Controllers
}
[HttpPost]
- public Response Update(AddOrUpdateResReq obj)
+ public Response Update([FromBody] AddOrUpdateResReq obj)
{
Response resp = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/RolesController.cs b/OpenAuth.WebApi/Controllers/RolesController.cs
index 332d4384..bc063d47 100644
--- a/OpenAuth.WebApi/Controllers/RolesController.cs
+++ b/OpenAuth.WebApi/Controllers/RolesController.cs
@@ -47,7 +47,7 @@ namespace OpenAuth.WebApi.Controllers
/// 添加角色,如果当前登录用户不是System,则直接把新角色分配给当前登录用户
///
[HttpPost]
- public Response Add(RoleView obj)
+ public Response Add([FromBody] RoleView obj)
{
var result = new Response();
try
@@ -71,7 +71,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Update(RoleView obj)
+ public Response Update([FromBody] RoleView obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/SysLogsController.cs b/OpenAuth.WebApi/Controllers/SysLogsController.cs
index cc788e2c..b4ab33f5 100644
--- a/OpenAuth.WebApi/Controllers/SysLogsController.cs
+++ b/OpenAuth.WebApi/Controllers/SysLogsController.cs
@@ -41,7 +41,7 @@ namespace OpenAuth.WebApi.Controllers
/// 添加
///
[HttpPost]
- public Response Add(SysLog obj)
+ public Response Add([FromBody] SysLog obj)
{
var result = new Response();
try
@@ -62,7 +62,7 @@ namespace OpenAuth.WebApi.Controllers
/// 修改日志(建议废弃)
///
[HttpPost]
- public Response Update(SysLog obj)
+ public Response Update([FromBody] SysLog obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/SysMessagesController.cs b/OpenAuth.WebApi/Controllers/SysMessagesController.cs
index 40033754..99dc7957 100644
--- a/OpenAuth.WebApi/Controllers/SysMessagesController.cs
+++ b/OpenAuth.WebApi/Controllers/SysMessagesController.cs
@@ -47,7 +47,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Read(ReadMsgReq obj)
+ public Response Read([FromBody] ReadMsgReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/SysPrinterPlansController.cs b/OpenAuth.WebApi/Controllers/SysPrinterPlansController.cs
index 85bbe40b..4ed7218c 100644
--- a/OpenAuth.WebApi/Controllers/SysPrinterPlansController.cs
+++ b/OpenAuth.WebApi/Controllers/SysPrinterPlansController.cs
@@ -41,7 +41,7 @@ namespace OpenAuth.WebApi.Controllers
//添加
[HttpPost]
- public Response Add(AddOrUpdateSysPrinterPlanReq obj)
+ public Response Add([FromBody] AddOrUpdateSysPrinterPlanReq obj)
{
var result = new Response();
try
@@ -103,7 +103,7 @@ namespace OpenAuth.WebApi.Controllers
//修改
[HttpPost]
- public Response Update(AddOrUpdateSysPrinterPlanReq obj)
+ public Response Update([FromBody] AddOrUpdateSysPrinterPlanReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/UsersController.cs b/OpenAuth.WebApi/Controllers/UsersController.cs
index eeec363d..6753037c 100644
--- a/OpenAuth.WebApi/Controllers/UsersController.cs
+++ b/OpenAuth.WebApi/Controllers/UsersController.cs
@@ -41,7 +41,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response ChangeProfile(ChangeProfileReq request)
+ public Response ChangeProfile([FromBody] ChangeProfileReq request)
{
var result = new Response();
@@ -65,7 +65,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response ChangePassword(ChangePasswordReq request)
+ public Response ChangePassword([FromBody] ChangePasswordReq request)
{
var result = new Response();
try
@@ -83,7 +83,7 @@ namespace OpenAuth.WebApi.Controllers
//添加或修改
[HttpPost]
- public Response AddOrUpdate(UpdateUserReq obj)
+ public Response AddOrUpdate([FromBody] UpdateUserReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/WmsInboundOrderDtblsController.cs b/OpenAuth.WebApi/Controllers/WmsInboundOrderDtblsController.cs
index 8104b2cd..d8f43707 100644
--- a/OpenAuth.WebApi/Controllers/WmsInboundOrderDtblsController.cs
+++ b/OpenAuth.WebApi/Controllers/WmsInboundOrderDtblsController.cs
@@ -40,7 +40,7 @@ namespace OpenAuth.WebApi.Controllers
//添加
[HttpPost]
- public Response Add(AddOrUpdateWmsInboundOrderDtblReq obj)
+ public Response Add([FromBody] AddOrUpdateWmsInboundOrderDtblReq obj)
{
var result = new Response();
try
@@ -63,7 +63,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Update(AddOrUpdateWmsInboundOrderDtblReq obj)
+ public Response Update([FromBody] AddOrUpdateWmsInboundOrderDtblReq obj)
{
var result = new Response();
try
diff --git a/OpenAuth.WebApi/Controllers/WmsInboundOrderTblsController.cs b/OpenAuth.WebApi/Controllers/WmsInboundOrderTblsController.cs
index da3b10eb..52f5d4c1 100644
--- a/OpenAuth.WebApi/Controllers/WmsInboundOrderTblsController.cs
+++ b/OpenAuth.WebApi/Controllers/WmsInboundOrderTblsController.cs
@@ -43,7 +43,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Add(AddOrUpdateWmsInboundOrderTblReq obj)
+ public Response Add([FromBody] AddOrUpdateWmsInboundOrderTblReq obj)
{
var result = new Response();
try
@@ -69,7 +69,7 @@ namespace OpenAuth.WebApi.Controllers
///
///
[HttpPost]
- public Response Update(AddOrUpdateWmsInboundOrderTblReq obj)
+ public Response Update([FromBody] AddOrUpdateWmsInboundOrderTblReq obj)
{
var result = new Response();
try