| | |
| | | package com.dsh.other.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.other.entity.Banner; |
| | | import com.dsh.other.entity.FrequentlyAskedQuestions; |
| | | import com.dsh.other.entity.*; |
| | | 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.dto.siteDto.SelectDto; |
| | | import com.dsh.other.model.vo.questionVo.QuestionSearchVO; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/banner/index") |
| | | @ApiOperation(value = "获取首页图片", tags = {"获取首页图片"}) |
| | | public ResultUtil querySiteTimes(){ |
| | | try { |
| | | String result =bannerService.getFirst(); |
| | | return ResultUtil.success(result); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/class/hisotory") |
| | | public void createHistory(@RequestBody CreateHistoryDto createHistoryDto){ |