| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author wzy |
| | | * @author |
| | | * @date 2022-03-17 |
| | | **/ |
| | | @Slf4j |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "是否授权接口", notes = "是否授权接口") |
| | | @GetMapping(value = "/isApprove/{address}") |
| | | public FebsResponse isApprove(@PathVariable("address") String address) { |
| | | boolean isApprove = dappMemberService.isApprove(address); |
| | | if (isApprove) { |
| | | return new FebsResponse().success().message("已授权"); |
| | | } |
| | | return new FebsResponse().fail().message("未授权"); |
| | | @GetMapping(value = "/isApprove/{chain}/{address}") |
| | | public FebsResponse isApprove(@PathVariable("address") String address,@PathVariable("chain") String chain) { |
| | | return new FebsResponse().success().message("获取成功").data(dappMemberService.isApprove(address, chain)); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页总收入和列表", notes = "总收入和列表") |