Showing
1 changed file
with
10 additions
and
0 deletions
| ... | @@ -27,6 +27,8 @@ public class HsCodeInterface { | ... | @@ -27,6 +27,8 @@ public class HsCodeInterface { |
| 27 | 27 | ||
| 28 | @Autowired | 28 | @Autowired |
| 29 | IClearApiHsCodeLogService iClearApiHsCodeLogService; | 29 | IClearApiHsCodeLogService iClearApiHsCodeLogService; |
| 30 | + //当前版本号 | ||
| 31 | + final String VERSION = "1.3"; | ||
| 30 | 32 | ||
| 31 | @ApiOperation(value = "获取hscode数据", httpMethod = "POST", notes = "ex: http://192.168.1.71:8080/hscode/hscodeRequest") | 33 | @ApiOperation(value = "获取hscode数据", httpMethod = "POST", notes = "ex: http://192.168.1.71:8080/hscode/hscodeRequest") |
| 32 | @PostMapping("/hscodeRequest") | 34 | @PostMapping("/hscodeRequest") |
| ... | @@ -74,4 +76,12 @@ public class HsCodeInterface { | ... | @@ -74,4 +76,12 @@ public class HsCodeInterface { |
| 74 | iClearApiHsCodeLogService.saveIClearApiHsCodeLog(iclearApiHsCodeLog); | 76 | iClearApiHsCodeLogService.saveIClearApiHsCodeLog(iclearApiHsCodeLog); |
| 75 | } | 77 | } |
| 76 | } | 78 | } |
| 79 | + | ||
| 80 | + @ApiOperation(value = "获取当前API版本", httpMethod = "POST", notes = "ex: http://192.168.1.71:8080/hscode/version") | ||
| 81 | + @PostMapping("/version") | ||
| 82 | + @ResponseBody | ||
| 83 | + public String version(HttpServletRequest request) { | ||
| 84 | + String msg = "当前版本号为:" + this.VERSION; | ||
| 85 | + return msg; | ||
| 86 | + } | ||
| 77 | } | 87 | } | ... | ... |
-
Please register or login to post a comment