完成小程序帮助管理接口

This commit is contained in:
little-cat-sweet 2021-08-04 18:00:29 +08:00
parent af68f5c475
commit 57a37b3ba7

View File

@ -19,6 +19,7 @@ import java.util.List;
@RestController
@RequestMapping("/help")
public class XhpcHelpController extends BaseController {
@Autowired
IXhpcHelpService iXhpcHelpService;
@PostMapping("/delete")
@ -47,9 +48,27 @@ public class XhpcHelpController extends BaseController {
return getDataTable(list);
}
@GetMapping("/selectItem")
public AjaxResult selectHelpItem(@RequestParam Long helpId){
return iXhpcHelpService.selectHelpItem(helpId);
}
@GetMapping(value = "/listTitles")
public TableDataInfo listTitles(@RequestParam Integer type){
startPage();
return getDataTable(iXhpcHelpService.selectTitleId(type));
}
@GetMapping(value = "/showContent")
public AjaxResult listDetails(@RequestParam Long helpId){
return AjaxResult.success(iXhpcHelpService.selectDetails(helpId));
}
}