|
|
@ -3,6 +3,7 @@ package com.epmet.modules.resiregister.controller; |
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.form.ResiInfoSubmitFormDTO; |
|
|
|
import com.epmet.dto.form.ResiRegisterFormDTO; |
|
|
|
import com.epmet.dto.form.VerificationCodeFormDTO; |
|
|
@ -34,6 +35,7 @@ public class ResiRegisterController { |
|
|
|
**/ |
|
|
|
@PostMapping("init") |
|
|
|
public Result<ResiRegisterResultDTO> init(@LoginUser TokenDto tokenDTO, @RequestBody ResiRegisterFormDTO resiRegisterFormDTO) { |
|
|
|
ValidatorUtils.validateEntity(resiRegisterFormDTO); |
|
|
|
return resiRegisterService.init(tokenDTO, resiRegisterFormDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -44,6 +46,7 @@ public class ResiRegisterController { |
|
|
|
**/ |
|
|
|
@PostMapping("submit") |
|
|
|
public Result submit(@LoginUser TokenDto tokenDTO, @RequestBody ResiInfoSubmitFormDTO resiInfoSubmitFormDTO) { |
|
|
|
ValidatorUtils.validateEntity(resiInfoSubmitFormDTO); |
|
|
|
return resiRegisterService.submit(tokenDTO, resiInfoSubmitFormDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -54,6 +57,7 @@ public class ResiRegisterController { |
|
|
|
**/ |
|
|
|
@PostMapping("getverificationcode") |
|
|
|
public Result getVerificationCode(@LoginUser TokenDto tokenDTO, @RequestBody VerificationCodeFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return resiRegisterService.getVerificationCode(tokenDTO, formDTO); |
|
|
|
} |
|
|
|
|
|
|
|