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-23 18:32:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9dd161e57909ea5b8febb41dd02b069579c89f9f
9dd161e5
1 parent
51b06988
调整查询版本号接口为get
mt 2022年11月23日18:32:51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
10 deletions
src/main/java/com/erry/iclear/dateInterface/api/HsCodeInterface.java
src/main/java/com/erry/iclear/dateInterface/api/VersionInterface.java
src/main/java/com/erry/iclear/dateInterface/api/HsCodeInterface.java
View file @
9dd161e
...
...
@@ -27,8 +27,6 @@ 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"
)
...
...
@@ -76,12 +74,4 @@ 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
;
}
}
...
...
src/main/java/com/erry/iclear/dateInterface/api/VersionInterface.java
0 → 100644
View file @
9dd161e
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.3"
;
@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
;
}
}
Please
register
or
login
to post a comment