| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | @RequestMapping("api/idcode") |
| | | @RestController |
| | | @Api(tags = "idcode") |
| | |
| | | private IdentifyingCodeService identifyingCodeService; |
| | | |
| | | @RequestMapping("execute") |
| | | public Result execute(@RequestParam String target) { |
| | | public Result execute(@RequestParam String target) throws IOException { |
| | | identifyingCodeService.send(target, IPHelper.getIpAddr()); |
| | | return Result.succeed(null); |
| | | } |