删除使用DeleteMapping
This commit is contained in:
@@ -11,6 +11,7 @@ import io.swagger.v3.oas.annotations.Operation;
|
|||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import jakarta.validation.Valid;
|
import jakarta.validation.Valid;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@@ -45,7 +46,7 @@ public class FunModuleController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "删除模块", description = "删除模块")
|
@Operation(summary = "删除模块", description = "删除模块")
|
||||||
@PostMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
public XResult<Void> delete(@RequestBody @Valid FunModuleDeleteReq req) {
|
public XResult<Void> delete(@RequestBody @Valid FunModuleDeleteReq req) {
|
||||||
return funmoduleService.delete(req);
|
return funmoduleService.delete(req);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user