puzhibing
2023-02-15 2811bab657aab4145b65a45a824fb63e93b58e30
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
package com.stylefeng.guns.modular.api;
 
 
import com.stylefeng.guns.modular.system.util.MinistryOfTransport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
 
 
/**
 * 交通部测试接口
 */
@Api
@RestController
@RequestMapping("/base/ministryOfTransport")
public class MinistryOfTransportController {
 
    @Autowired
    private MinistryOfTransport ministryOfTransport;
 
 
 
    @ResponseBody
    @ApiOperation(value = "上传企业基础信息", tags = {"交通部测试接口"})
    @RequestMapping(value = "/pushCompany", method = RequestMethod.POST)
    public void pushCompany() {
        try {
            ministryOfTransport.baseInfoCompany();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}