| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | |
| | | * @since 2024-04-26 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/management/tStudy") |
| | | @RequestMapping("/tStudy") |
| | | public class TStudyController { |
| | | @Autowired |
| | | private StudyClient studyClient; |
| | |
| | | return AjaxResult.success(data); |
| | | } |
| | | @ApiOperation(value = "选择故事列表查询", tags = {"后台-学习"}) |
| | | @PostMapping(value = "/storyist1") |
| | | @PostMapping(value = "/storyList1") |
| | | @ResponseBody |
| | | public AjaxResult<PageInfo<TStory>> storyist(ChoiceStory dto) { |
| | | public AjaxResult<PageInfo<TStory>> storyList(ChoiceStory dto) { |
| | | R<PageInfo<TStory>> pageInfoR = studyClient.storyList(dto); |
| | | PageInfo<TStory> data = pageInfoR.getData(); |
| | | return AjaxResult.success(data); |
| | |
| | | @ApiOperation(value = "新增或修改学习配置", tags = {"后台-学习"}) |
| | | @PostMapping(value = "/addStudySet") |
| | | @ResponseBody |
| | | public AjaxResult addStudySet(AddStudySetDTO dto) { |
| | | public AjaxResult addStudySet(@RequestBody AddStudySetDTO dto) { |
| | | studyClient.addStudySet(dto); |
| | | return AjaxResult.success("保存成功"); |
| | | } |