소스 검색

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

liude 3 달 전
부모
커밋
b314199421
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      src/main/java/com/chelvc/cloud/admin/controller/HelpController.java

+ 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);
+    }
 }