package com.dsh.other.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.dsh.other.entity.TImgConfig; import com.dsh.other.service.TImgConfigService; import io.swagger.annotations.Api; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; /** * 图片配置控制器 */ @Api @CrossOrigin @RestController @RequestMapping("") public class ImgConfigController { private Logger logger = LoggerFactory.getLogger("business-log"); @Autowired private TImgConfigService imgConfigService; /** * 获取 没有学员信息的图片配置 */ @PostMapping("/imgConfig/getNoneStu") public List getDriver(){ return imgConfigService.list(new QueryWrapper() .eq("position", 1)); } }