wuxw
2022-01-15 630cb0babb264657d8a07476e328654573620f8c
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
package com.java110.api.rest;
 
import com.java110.api.smo.IApiServiceSMO;
import com.java110.api.smo.ITestServiceSMO;
import com.java110.core.base.controller.BaseController;
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.*;
 
/**
 * rest api
 * Created by wuxw on 2018/10/16.
 */
@RestController
@RequestMapping(path = "/test")
@Api(value = "对外统一提供服务接口服务")
public class TestApi extends BaseController {
 
    private static Logger logger = LoggerFactory.getLogger(TestApi.class);
    private static final String VERSION = "version";
    private static final String VERSION_2 = "2.0";
    @Autowired
    private IApiServiceSMO apiServiceSMOImpl;
 
    @Autowired
    private ITestServiceSMO testServiceSMOImpl;
 
    /**
     * 健康检查 服务
     *
     * @return
     */
    @RequestMapping(path = "/health", method = RequestMethod.GET)
    public String health() {
        return testServiceSMOImpl.getVersion("123");
    }
 
 
}