新版仿ok交易所-后端
zj
2025-03-02 bf6c08e0b9f18cca48cc616729387e5885d067f2
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
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;
 
@RequestMapping("api/idcode")
@RestController
@Api(tags = "idcode")
public class ApiIdentifyingCodeController {
 
    @Autowired
    private IdentifyingCodeService identifyingCodeService;
 
    @RequestMapping("execute")
    public Result execute(@RequestParam String target) {
            identifyingCodeService.send(target, IPHelper.getIpAddr());
        return Result.succeed(null);
    }
 
}