| | |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.common.system.bean.LoginUserBean; |
| | | import com.xcong.excoin.common.system.dto.LoginDto; |
| | | import com.xcong.excoin.common.system.dto.OutCenterRegisterDto; |
| | | import com.xcong.excoin.common.system.dto.RegisterDto; |
| | | import com.xcong.excoin.common.system.dto.WtWalletDto; |
| | | import com.xcong.excoin.configurations.properties.ApplicationProperties; |
| | | import com.xcong.excoin.configurations.properties.SecurityProperties; |
| | | import com.xcong.excoin.modules.login.vo.LoginVo; |
| | | import com.xcong.excoin.modules.member.service.MemberService; |
| | | import com.xcong.excoin.utils.RedisUtils; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import io.swagger.annotations.ApiResponses; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; |
| | |
| | | public Result register(@RequestBody @Validated RegisterDto registerDto) { |
| | | return memberservice.register(registerDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "创建接口", notes = "创建接口") |
| | | @PostMapping(value = "/registerOutCenter") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200,message = "OK",response = LoginVo.class), |
| | | }) |
| | | public Result registerOutCenter(@RequestBody @Validated OutCenterRegisterDto outCenterRegisterDto) { |
| | | return memberservice.registerOutCenter(outCenterRegisterDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "导入接口", notes = "导入接口") |
| | | @PostMapping(value = "/loginOutCenter") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200,message = "OK",response = LoginVo.class), |
| | | }) |
| | | public Result loginOutCenter(@RequestBody WtWalletDto wtWalletDto) { |
| | | return memberservice.recovery(wtWalletDto); |
| | | } |
| | | |
| | | } |