Ver código fonte

商家列表查询优化、增加协议详情查询

liude 3 meses atrás
pai
commit
b314199421

+ 11 - 0
src/main/java/com/chelvc/cloud/admin/controller/HelpController.java

@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.PutMapping;
 import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 /**
@@ -76,4 +77,14 @@ public class HelpController {
     public void deleteHelp(@PathVariable("id") @Min(value = 1, message = "问题配置主键不能小于1") Long id) {
         this.helpClient.deleteHelpById(id);
     }
+    /**
+     * 查询帮助
+     *
+     * @param id 帮助主键
+     * @return 帮助
+     */
+    @GetMapping("/help/selectHelpById")
+    public HelpDTO selectHelpById(@RequestParam("id") Long id) {
+        return this.helpClient.selectHelpById(id);
+    }
 }