|
|
@ -10,10 +10,7 @@ import com.epmet.dto.form.RemoveBindFormDTO; |
|
|
|
import com.epmet.dto.result.GoToAuthResultDTO; |
|
|
|
import com.epmet.service.AppLetAuthorizationService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author zxc |
|
|
@ -32,9 +29,9 @@ public class AppLetAuthorizationController { |
|
|
|
* @author zxc |
|
|
|
*/ |
|
|
|
@PostMapping("gotoauth") |
|
|
|
public Result<GoToAuthResultDTO> goToAuth(@LoginUser TokenDto tokenDto, @RequestBody GoToAuthFormDTO formDTO){ |
|
|
|
public Result<GoToAuthResultDTO> goToAuth(@LoginUser TokenDto tokenDto, @RequestBody GoToAuthFormDTO formDTO, @RequestHeader("source")String source){ |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
GoToAuthResultDTO goToAuthResultDTO = appLetAuthorizationService.goToAuth(tokenDto,formDTO); |
|
|
|
GoToAuthResultDTO goToAuthResultDTO = appLetAuthorizationService.goToAuth(tokenDto,formDTO,source); |
|
|
|
return new Result().ok(goToAuthResultDTO); |
|
|
|
} |
|
|
|
|
|
|
|