Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
extend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
park
extend
Commits
a1c9171f
Commit
a1c9171f
authored
Jun 22, 2020
by
xieshixiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
74b1f5bd
ce05e5bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/BindInfoControlller.java
+3
-0
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/TestController.java
+32
-0
No files found.
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/BindInfoControlller.java
View file @
a1c9171f
...
...
@@ -48,6 +48,7 @@ public class BindInfoControlller extends BaseController {
* @date: 2020/6/19 10:27
*/
@PostMapping
(
"bind"
)
@BodyDecryptAnnotation
@ResponseEncryptAnnotation
public
Response
<
String
>
bindInfo
(
@RequestBody
BindInfo
info
)
{
if
(
info
==
null
)
{
...
...
@@ -66,6 +67,8 @@ public class BindInfoControlller extends BaseController {
* @date: 2020/6/19 10:27
*/
@PostMapping
(
"unbind"
)
@BodyDecryptAnnotation
@ResponseEncryptAnnotation
public
Response
unbindInfo
(
@RequestBody
@Validated
UnBindReq
req
)
{
return
service
.
unbindInfo
(
req
)
?
ResponseGenerator
.
success
()
:
ResponseGenerator
.
fail
(
"解绑失败"
);
}
...
...
api/src/main/java/com/hikcreate/edl/pub/web/mobile/api/controller/TestController.java
0 → 100644
View file @
a1c9171f
package
com
.
hikcreate
.
edl
.
pub
.
web
.
mobile
.
api
.
controller
;
import
com.hikcreate.common.sdk.response.apiparam.Response
;
import
com.hikcreate.common.sdk.response.apiparam.ResponseGenerator
;
import
com.hikcreate.edl.common.sdk.util.EncryptStringAes
;
import
com.hikcreate.edl.pub.web.mobile.infra.core.annotatiion.BodyDecryptAnnotation
;
import
com.hikcreate.edl.pub.web.mobile.infra.core.annotatiion.HeaderDecryptAnnotation
;
import
com.hikcreate.edl.pub.web.mobile.infra.core.annotatiion.ResponseEncryptAnnotation
;
import
com.hikcreate.edl.pub.web.mobile.infra.core.configbean.SignKeyConfigBean
;
import
com.hikcreate.edl.pub.web.mobile.infra.model.param.response.TestRes
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
* @author lixian
* @description
* @date 2020/6/18 17:57
**/
@Slf4j
@RestController
@RequestMapping
(
"/test"
)
public
class
TestController
{
@Autowired
SignKeyConfigBean
signKeyConfigBean
;
@GetMapping
(
value
=
"encrypt"
)
public
String
encrypt
(
String
plain
)
{
return
EncryptStringAes
.
encryptAes
(
plain
,
signKeyConfigBean
.
getKey
());
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment