|
@@ -1,8 +1,13 @@
|
|
|
package com.caimei.www.controller.unlimited;
|
|
|
|
|
|
import com.caimei.www.controller.BaseController;
|
|
|
+import com.caimei.www.pojo.page.PageContent;
|
|
|
+import com.caimei.www.service.HelpService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
|
/**
|
|
|
* Description
|
|
@@ -15,11 +20,18 @@ public class HelpPageController extends BaseController {
|
|
|
|
|
|
private static final String HELP_PAGE_PATH = "help/help";
|
|
|
|
|
|
+ private HelpService helpService;
|
|
|
+ @Autowired
|
|
|
+ public void setHelpService(HelpService helpService) {
|
|
|
+ this.helpService = helpService;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 帮助页
|
|
|
*/
|
|
|
- @GetMapping("/help.html")
|
|
|
- public String help() {
|
|
|
+ @GetMapping("/help/{id}.html")
|
|
|
+ public String help(final Model model, @PathVariable("id") Integer id) {
|
|
|
+ // PageContent helpPage = helpService.getHelpPageById(id);
|
|
|
return HELP_PAGE_PATH;
|
|
|
}
|
|
|
|