This commit is contained in:
dev02 2022-11-05 11:26:40 +08:00
commit 3d4aa7a941

View File

@ -246,7 +246,7 @@ namespace FrontendWebApi.ApiControllers
/// <param name="guid"></param> /// <param name="guid"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<ApiResult<SimpleUser>> GetOneUser(string guid) public async Task<ApiResult<SimpleUser>> GetOneUser([FromBody] string guid)
{ {
ApiResult<SimpleUser> apiResult = new ApiResult<SimpleUser>(); ApiResult<SimpleUser> apiResult = new ApiResult<SimpleUser>();
@ -283,7 +283,7 @@ namespace FrontendWebApi.ApiControllers
/// <param name="id"></param> /// <param name="id"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<ApiResult<string>> DeleteOneUser(string guid) public async Task<ApiResult<string>> DeleteOneUser([FromBody] string guid)
{ {
ApiResult<string> apiResult = new ApiResult<string>(); ApiResult<string> apiResult = new ApiResult<string>();
@ -322,7 +322,7 @@ namespace FrontendWebApi.ApiControllers
/// <param name="post"></param> /// <param name="post"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<ApiResult<string>> SaveRole(PostRole post) public async Task<ApiResult<string>> SaveRole([FromBody] PostRole post)
{ {
ApiResult<string> apiResult = new ApiResult<string>(); ApiResult<string> apiResult = new ApiResult<string>();
@ -395,7 +395,7 @@ namespace FrontendWebApi.ApiControllers
/// <param name="id"></param> /// <param name="id"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<ApiResult<SimpleRole>> GetOneRole(string guid) public async Task<ApiResult<SimpleRole>> GetOneRole([FromBody] string guid)
{ {
ApiResult<SimpleRole> apiResult = new ApiResult<SimpleRole>(); ApiResult<SimpleRole> apiResult = new ApiResult<SimpleRole>();
@ -431,7 +431,7 @@ namespace FrontendWebApi.ApiControllers
/// <param name="id"></param> /// <param name="id"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<ApiResult<string>> DeleteOneRole(string guid) public async Task<ApiResult<string>> DeleteOneRole([FromBody] string guid)
{ {
ApiResult<string> apiResult = new ApiResult<string>(); ApiResult<string> apiResult = new ApiResult<string>();
@ -480,7 +480,7 @@ namespace FrontendWebApi.ApiControllers
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<ApiResult<List<RoleAuthList>>> RoleAuthList(PostRoleAuthFilter post) public async Task<ApiResult<List<RoleAuthList>>> RoleAuthList([FromBody] PostRoleAuthFilter post)
{ {
ApiResult<List<RoleAuthList>> apiResult = new ApiResult<List<RoleAuthList>>(); ApiResult<List<RoleAuthList>> apiResult = new ApiResult<List<RoleAuthList>>();
List<RoleAuthList> roleAuthList = new List<RoleAuthList>(); List<RoleAuthList> roleAuthList = new List<RoleAuthList>();
@ -618,7 +618,7 @@ namespace FrontendWebApi.ApiControllers
/// <param name="post"></param> /// <param name="post"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
public async Task<ApiResult<string>> DeleteOneRoleAuth(PostDeleteRoleAuth post) public async Task<ApiResult<string>> DeleteOneRoleAuth([FromBody] PostDeleteRoleAuth post)
{ {
ApiResult<string> apiResult = new ApiResult<string>(); ApiResult<string> apiResult = new ApiResult<string>();