liujie
2023-05-22 9f2315d92cc93f8f431805a10ea9ce3f79fa7eb2
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package com.stylefeng.guns.modular.system.controller;
 
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.core.base.controller.BaseController;
import com.stylefeng.guns.modular.system.utils.tips.SuccessTip;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.stylefeng.guns.modular.system.model.TExamSite;
import com.stylefeng.guns.modular.system.service.ITExamSiteService;
 
import java.util.Date;
import java.util.List;
 
/**
 * 控制器
 *
 * @author fengshuonan
 * @Date 2022-12-29 11:18:27
 */
@Controller
@Api(tags = "检查站")
@RequestMapping("/api/tExamSite")
public class TExamSiteController extends BaseController {
 
 
    @Autowired
    private ITExamSiteService tExamSiteService;
 
 
 
    /**
     * 获取列表
     */
 
    @ApiOperation(value = "检查站列表",notes="检查站列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."),
            @ApiImplicitParam(name = "pageNumber", value = "pageNumber", required = true, dataType = "int",paramType = "query"),
            @ApiImplicitParam(name = "pageSize", value = "pageSize", required = true, dataType = "int",paramType = "query"),
    })
    @GetMapping(value = "/list")
    @ResponseBody
    public Object list(int pageNumber,int pageSize) {
        Page<TExamSite> tExamSitePage = new Page<>(pageNumber, pageSize);
        List<TExamSite> list = tExamSiteService.selectExamSite(tExamSitePage);
        tExamSitePage.setRecords(list);
        return new SuccessTip(tExamSitePage);
    }
 
 
 
 
    /**
     * 详情
     */
    @RequestMapping(value = "/detail/{tExamSiteId}")
    @ResponseBody
    public Object detail(@PathVariable("tExamSiteId") Integer tExamSiteId) {
        return tExamSiteService.selectById(tExamSiteId);
    }
}