Browse Source

重命名方法并移除参数验证逻辑

将方法名称从 FeeEntryAcknowledgeSingle 修改为 FeeEntryAcknowledgeSingleCreate,以更准确描述方法功能。删除了方法内部的参数验证逻辑(如对 dto.GroupId 和 dto.CurrUserId 的验证),可能将验证逻辑迁移至其他层或不再需要。建议对修改后的方法进行充分测试以确保功能正确。
Lyyyi 1 day ago
parent
commit
40f819d075
1 changed files with 1 additions and 2 deletions
  1. 1 2
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 1 - 2
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -514,9 +514,8 @@ namespace OASystem.API.Controllers
         /// <returns></returns>
         [HttpPost]
         [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
-        public async Task<IActionResult> FeeEntryAcknowledgeSingle(FeeEntryAcknowledgeSingleDto dto)
+        public async Task<IActionResult> FeeEntryAcknowledgeSingleCreate(FeeEntryAcknowledgeSingleDto dto)
         {
-
             // 1. 参数验证
             if (dto.GroupId <= 0)
                 return Ok(JsonView(false, "请选择有效的团组ID!"));