新版仿ok交易所-后端
1
zyy
2025-11-27 26c4fd844884ad051c4d644da5ab7ac31f814ea2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.yami.trading.api.controller;
 
import com.yami.trading.common.domain.Result;
import com.yami.trading.common.util.IPHelper;
import com.yami.trading.service.IdentifyingCodeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
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")
public class ApiIdentifyingCodeController {
 
    @Autowired
    private IdentifyingCodeService identifyingCodeService;
 
    @RequestMapping("execute")
    public Result execute(@RequestParam String target) throws IOException {
            identifyingCodeService.send(target, IPHelper.getIpAddr());
        return Result.succeed(null);
    }
 
}