| | |
| | | |
| | | import cc.mrbird.febs.common.annotation.EncryptEnable; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.dapp.dto.ApproveDto; |
| | | import cc.mrbird.febs.dapp.dto.ConnectDto; |
| | | import cc.mrbird.febs.dapp.dto.EncryptDto; |
| | | import cc.mrbird.febs.dapp.dto.SystemDto; |
| | | import cc.mrbird.febs.dapp.dto.*; |
| | | import cc.mrbird.febs.dapp.service.DappMemberService; |
| | | import cc.mrbird.febs.dapp.service.DappSimulateDataService; |
| | | import cc.mrbird.febs.dapp.service.DappSystemService; |
| | | import cc.mrbird.febs.dapp.vo.SimulateDataVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import io.swagger.annotations.ApiResponses; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * @author |
| | |
| | | System.out.println(encryptDto.getTest()); |
| | | return new FebsResponse().success().data("123"); |
| | | } |
| | | |
| | | @ApiOperation(value = "IGT获取验证码", notes = "获取验证码") |
| | | @GetMapping("/captcha") |
| | | public FebsResponse captcha() throws IOException { |
| | | return dappMemberService.captchaCreator(); |
| | | } |
| | | |
| | | @ApiOperation(value = "IGT注册接口", notes = "注册接口") |
| | | @PostMapping(value = "/register") |
| | | public FebsResponse register(@RequestBody @Validated RegisterDto registerDto) { |
| | | return dappMemberService.register(registerDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "IGT账号密码登录接口", notes = "账号密码登录接口") |
| | | @PostMapping(value = "/toLogin") |
| | | public FebsResponse login(@RequestBody LoginDto loginDto) { |
| | | return dappMemberService.toLogin(loginDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "IGT游客身份登录", notes = "游客身份登录") |
| | | @PostMapping(value = "/touristLogin") |
| | | public FebsResponse touristLogin(@RequestBody TouristLoginDto touristLoginDto) { |
| | | return dappMemberService.touristLogin(touristLoginDto); |
| | | } |
| | | } |