Commit 12a721e3 authored by 赵啸非's avatar 赵啸非

asdffffffffff

parent 98ade482
Pipeline #1508 canceled with stages
......@@ -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(@RequestParam List<MessageReq> reqList) {
public String decryptBatch(@RequestBody List<MessageReq> reqList) {
log.info("【批量解密】【请求体】--> " + JSONObject.toJSONString(reqList));
ApiResp<List<MessageReq>> rsp = new ApiResp<>();
rsp.setCode(ApiRespCodeEnum.SUCCESS.getValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment