| | |
| | | import com.dsh.other.entity.FrequentlyAskedQuestions; |
| | | import com.dsh.other.feignclient.model.AdvertisementChangeStateDTO; |
| | | import com.dsh.other.feignclient.model.AdvertisementQuery; |
| | | import com.dsh.other.entity.CreateHistoryDto; |
| | | import com.dsh.other.entity.GetHistoryDto; |
| | | import com.dsh.other.model.BannerVo; |
| | | import com.dsh.other.model.vo.questionVo.QuestionSearchVO; |
| | | import com.dsh.other.service.IBannerService; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/class/hisotory") |
| | | public void createHistory(@RequestBody CreateHistoryDto createHistoryDto){ |
| | | createHistoryDto.setDate(new Date()); |
| | | |
| | | bannerService.createHistory(createHistoryDto); |
| | | |
| | | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/class/gethisotory") |
| | | public List<GetHistoryDto> getHistory(@RequestBody Integer studentId){ |
| | | |
| | | return bannerService.gethistory(studentId); |
| | | |
| | | |
| | | } |
| | | } |