From 960c1b07776517f528ad9716a2dbdedaa2be7975 Mon Sep 17 00:00:00 2001 From: dev01 Date: Sat, 5 Nov 2022 09:16:51 +0800 Subject: [PATCH] =?UTF-8?q?[FrontedWebApi]=20User=20API=20parameter=20?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=8A=A0=E5=85=A5FromBody?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/ApiControllers/UserController.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/FrontendWebApi/ApiControllers/UserController.cs b/FrontendWebApi/ApiControllers/UserController.cs index a6756f6..5b926c2 100644 --- a/FrontendWebApi/ApiControllers/UserController.cs +++ b/FrontendWebApi/ApiControllers/UserController.cs @@ -245,7 +245,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task> GetOneUser(string guid) + public async Task> GetOneUser([FromBody] string guid) { ApiResult apiResult = new ApiResult(); @@ -282,7 +282,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task> DeleteOneUser(string guid) + public async Task> DeleteOneUser([FromBody] string guid) { ApiResult apiResult = new ApiResult(); @@ -321,7 +321,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task> SaveRole(PostRole post) + public async Task> SaveRole([FromBody] PostRole post) { ApiResult apiResult = new ApiResult(); @@ -394,7 +394,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task> GetOneRole(string guid) + public async Task> GetOneRole([FromBody] string guid) { ApiResult apiResult = new ApiResult(); @@ -430,7 +430,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task> DeleteOneRole(string guid) + public async Task> DeleteOneRole([FromBody] string guid) { ApiResult apiResult = new ApiResult(); @@ -479,7 +479,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task>> RoleAuthList(PostRoleAuthFilter post) + public async Task>> RoleAuthList([FromBody] PostRoleAuthFilter post) { ApiResult> apiResult = new ApiResult>(); List roleAuthList = new List(); @@ -617,7 +617,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task> DeleteOneRoleAuth(PostDeleteRoleAuth post) + public async Task> DeleteOneRoleAuth([FromBody] PostDeleteRoleAuth post) { ApiResult apiResult = new ApiResult();