1
13693261870
2024-11-11 71c8abe501481f2029df623976f240d197edcfe8
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
package com.se.simu.controller;
 
import com.se.simu.helper.WebHelper;
import com.se.simu.service.DbService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
@Api(tags = "数据管理")
@Slf4j
@RestController
@RequestMapping("/db")
@SuppressWarnings("ALL")
public class DbController extends BaseController {
    @Resource
    DbService dbService;
 
    @ApiOperation(value = "info")
    @GetMapping(value = "/info")
    public void info(HttpServletRequest req, HttpServletResponse res) {
        try {
            dbService.info(req, res);
        } catch (Exception ex) {
            WebHelper.writeJson2Page(res, HttpStatus.BAD_REQUEST, ex.getMessage());
        }
    }
}