Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tao.mo
2022-11-22 19:05:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51b06988c80bd96d2938b52d2889e2fc28c7965f
51b06988
1 parent
da454777
增加查看版本接口
mt 2022年11月22日19:05:13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
src/main/java/com/erry/iclear/dateInterface/api/HsCodeInterface.java
src/main/java/com/erry/iclear/dateInterface/api/HsCodeInterface.java
View file @
51b0698
...
...
@@ -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
;
}
}
...
...
Please
register
or
login
to post a comment