diff --git a/src/main/java/plus/maa/backend/controller/CopilotSetController.java b/src/main/java/plus/maa/backend/controller/CopilotSetController.java index 66f6f3b5..dbb11e42 100644 --- a/src/main/java/plus/maa/backend/controller/CopilotSetController.java +++ b/src/main/java/plus/maa/backend/controller/CopilotSetController.java @@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RestController; import plus.maa.backend.config.SpringDocConfig; import plus.maa.backend.config.security.AuthenticationHelper; -import plus.maa.backend.controller.request.CommonIdInput; +import plus.maa.backend.controller.request.CommonIdReq; import plus.maa.backend.controller.request.CopilotSetUpdateReq; import plus.maa.backend.controller.request.copilotset.CopilotSetModCopilotsReq; import plus.maa.backend.controller.request.copilotset.CopilotSetCreateReq; @@ -73,7 +73,7 @@ public MaaResult updateCopilotSet( @SecurityRequirement(name = SpringDocConfig.SECURITY_SCHEME_NAME) @PostMapping("/delete") public MaaResult deleteCopilotSet( - @Parameter(description = "删除作业集信息请求") @Valid @RequestBody CommonIdInput req) { + @Parameter(description = "删除作业集信息请求") @Valid @RequestBody CommonIdReq req) { service.delete(req.getId(), helper.getUserId()); return MaaResult.success(); } diff --git a/src/main/java/plus/maa/backend/controller/request/CommonIdInput.java b/src/main/java/plus/maa/backend/controller/request/CommonIdReq.java similarity index 89% rename from src/main/java/plus/maa/backend/controller/request/CommonIdInput.java rename to src/main/java/plus/maa/backend/controller/request/CommonIdReq.java index 535608d3..c8a6abd5 100644 --- a/src/main/java/plus/maa/backend/controller/request/CommonIdInput.java +++ b/src/main/java/plus/maa/backend/controller/request/CommonIdReq.java @@ -10,7 +10,7 @@ */ @Getter @Setter -public class CommonIdInput { +public class CommonIdReq { @NotNull(message = "id必填") private T id;