VersionInterface.java 1.17 KB
package com.erry.iclear.dateInterface.api;

import com.erry.iclear.dateInterface.api.request.HsCodeParam;
import com.erry.iclear.dateInterface.api.response.ResultHsCode;
import com.erry.iclear.dateInterface.entity.IClearApiHsCodeLog;
import com.erry.iclear.dateInterface.service.HsCodeService;
import com.erry.iclear.dateInterface.service.IClearApiHsCodeLogService;
import com.erry.iclear.dateInterface.util.StringUtil;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;

/**
 * @author Administrator
 * /hscode/hscodeRequest
 */
@RestController
@RequestMapping("/version")
@Slf4j
public class VersionInterface {
    //当前版本号
    final String VERSION = "1.7";

    @ApiOperation(value = "获取当前API版本", httpMethod = "GET", notes = "ex:  http://192.168.1.71:8080/version/version")
    @GetMapping("/version")
    @ResponseBody
    public String version(HttpServletRequest request) {
        String msg = "当前API版本号为:" + this.VERSION;
        return msg;
    }
}