删除使用DeleteMapping

This commit is contained in:
2026-01-10 09:08:04 +08:00
parent f07fee186d
commit 86e82c0b12

View File

@@ -11,6 +11,7 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -45,7 +46,7 @@ public class FunModuleController {
}
@Operation(summary = "删除模块", description = "删除模块")
@PostMapping("/delete")
@DeleteMapping("/delete")
public XResult<Void> delete(@RequestBody @Valid FunModuleDeleteReq req) {
return funmoduleService.delete(req);
}