lisy
2023-06-14 19d7560cd5b1f6498e9889d7f0e8a8e18ba4197f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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<TImgConfig> getDriver(){
        return imgConfigService.list(new QueryWrapper<TImgConfig>()
                .eq("position", 1));
    }
 
}