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