| | |
| | | package com.doumee.api.business; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.constants.Constants; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.business.model.Carousel; |
| | | import com.doumee.dao.dto.FootDataDTO; |
| | | import com.doumee.dao.vo.FootDataVO; |
| | | import com.doumee.service.business.CarouselService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.io.BufferedReader; |
| | | import java.io.FileReader; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("获取foot配置") |
| | | @GetMapping("/getFoodDataVO") |
| | | public ApiResponse<FootDataVO> getFoodDataVO() { |
| | | return ApiResponse.success(carouselService.getFoodDataVO()); |
| | | } |
| | | |
| | | @ApiOperation("更新foot配置") |
| | | @PostMapping("/updFoodData") |
| | | public ApiResponse<FootDataVO> updFoodData(@RequestBody FootDataDTO footDataDTO) { |
| | | carouselService.updFoodDataVO(footDataDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | } |