Skip to content

Commit

Permalink
chore: CommonIdInput -> CommonIdReq
Browse files Browse the repository at this point in the history
  • Loading branch information
dragove committed Jan 5, 2024
1 parent e434f97 commit b825a02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -73,7 +73,7 @@ public MaaResult<Void> updateCopilotSet(
@SecurityRequirement(name = SpringDocConfig.SECURITY_SCHEME_NAME)
@PostMapping("/delete")
public MaaResult<Void> deleteCopilotSet(
@Parameter(description = "删除作业集信息请求") @Valid @RequestBody CommonIdInput<Long> req) {
@Parameter(description = "删除作业集信息请求") @Valid @RequestBody CommonIdReq<Long> req) {
service.delete(req.getId(), helper.getUserId());
return MaaResult.success();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Getter
@Setter
public class CommonIdInput<T> {
public class CommonIdReq<T> {

@NotNull(message = "id必填")
private T id;
Expand Down

0 comments on commit b825a02

Please sign in to comment.