tao.mo

增加查看版本接口

mt
2022年11月22日19:05:13
......@@ -27,6 +27,8 @@ public class HsCodeInterface {
@Autowired
IClearApiHsCodeLogService iClearApiHsCodeLogService;
//当前版本号
final String VERSION = "1.3";
@ApiOperation(value = "获取hscode数据", httpMethod = "POST", notes = "ex: http://192.168.1.71:8080/hscode/hscodeRequest")
@PostMapping("/hscodeRequest")
......@@ -74,4 +76,12 @@ public class HsCodeInterface {
iClearApiHsCodeLogService.saveIClearApiHsCodeLog(iclearApiHsCodeLog);
}
}
@ApiOperation(value = "获取当前API版本", httpMethod = "POST", notes = "ex: http://192.168.1.71:8080/hscode/version")
@PostMapping("/version")
@ResponseBody
public String version(HttpServletRequest request) {
String msg = "当前版本号为:" + this.VERSION;
return msg;
}
}
......