Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
security-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
security-platform
Commits
12a721e3
Commit
12a721e3
authored
May 19, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asdffffffffff
parent
98ade482
Pipeline
#1508
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
security-manager/src/main/java/com/mortals/xhx/busiz/web/SecurityApiController.java
...java/com/mortals/xhx/busiz/web/SecurityApiController.java
+3
-6
No files found.
security-manager/src/main/java/com/mortals/xhx/busiz/web/SecurityApiController.java
View file @
12a721e3
...
...
@@ -9,10 +9,7 @@ import com.mortals.xhx.busiz.rsp.MessageResp;
import
com.mortals.xhx.common.code.ApiRespCodeEnum
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -32,7 +29,7 @@ public class SecurityApiController {
* @return
*/
@PostMapping
(
"decrypt"
)
public
String
decrypt
(
MessageReq
req
)
{
public
String
decrypt
(
@RequestBody
MessageReq
req
)
{
log
.
info
(
"【解密】【请求体】--> "
+
JSONObject
.
toJSONString
(
req
));
ApiResp
<
MessageReq
>
rsp
=
new
ApiResp
<>();
rsp
.
setCode
(
ApiRespCodeEnum
.
SUCCESS
.
getValue
());
...
...
@@ -57,7 +54,7 @@ public class SecurityApiController {
* @return
*/
@PostMapping
(
"decryptBatch"
)
public
String
decryptBatch
(
@Request
Param
List
<
MessageReq
>
reqList
)
{
public
String
decryptBatch
(
@Request
Body
List
<
MessageReq
>
reqList
)
{
log
.
info
(
"【批量解密】【请求体】--> "
+
JSONObject
.
toJSONString
(
reqList
));
ApiResp
<
List
<
MessageReq
>>
rsp
=
new
ApiResp
<>();
rsp
.
setCode
(
ApiRespCodeEnum
.
SUCCESS
.
getValue
());
...
...
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