TRX 1 rok temu
rodzic
commit
7b0debc019

+ 19 - 0
FullCardClient/src/main/java/com/zhongshu/card/client/model/quest/PsdParam.java

@@ -0,0 +1,19 @@
+package com.zhongshu.card.client.model.quest;
+
+import com.zhongshu.card.client.model.base.IDParam;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * @author TRX
+ * @date 2024/11/29
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class PsdParam extends IDParam {
+
+    private String psd;
+
+}

+ 3 - 6
FullCardServer/src/main/java/com/zhongshu/card/server/core/controller/quest/QuestInfoController.java

@@ -2,10 +2,7 @@ package com.zhongshu.card.server.core.controller.quest;
 
 import com.github.microservice.net.ResultContent;
 import com.zhongshu.card.client.model.base.IDParam;
-import com.zhongshu.card.client.model.quest.QuestInfoModel;
-import com.zhongshu.card.client.model.quest.QuestInfoParam;
-import com.zhongshu.card.client.model.quest.QuestInfoSearch;
-import com.zhongshu.card.client.model.quest.QuestInfoUpdateParam;
+import com.zhongshu.card.client.model.quest.*;
 import com.zhongshu.card.server.core.service.quest.QuestService;
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.Parameter;
@@ -47,8 +44,8 @@ public class QuestInfoController {
 
     @Operation(summary = "删除", description = "删除")
     @RequestMapping(value = "deleteById", method = {RequestMethod.POST})
-    public ResultContent deleteById(@RequestBody IDParam param) {
-        return this.questService.deleteById(param.getId());
+    public ResultContent deleteById(@RequestBody PsdParam param) {
+        return this.questService.deleteById(param);
     }
 
     @Operation(summary = "列表-分页查询", description = "列表-分页查询")