| | |
| | | package com.ruoyi.integration.controller; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.integration.api.model.SecurityDetection; |
| | | import com.ruoyi.integration.mongodb.service.SecurityDetectionService; |
| | | 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 javax.annotation.Resource; |
| | |
| | | @Resource |
| | | private SecurityDetectionService securityDetectionService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取安全检测数据 |
| | | * @param transactionSerialNumber |
| | | * @return |
| | | */ |
| | | @PostMapping("/getSecurityDetection") |
| | | public R<SecurityDetection> getSecurityDetection(@RequestParam("transactionSerialNumber") String transactionSerialNumber){ |
| | | SecurityDetection securityDetection = securityDetectionService.getSecurityDetection(transactionSerialNumber); |
| | | return R.ok(securityDetection); |
| | | } |
| | | } |