|
|
@ -6,6 +6,7 @@ import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.StaffOrgsResultDTO; |
|
|
|
import com.epmet.dto.result.UserTokenResultDTO; |
|
|
|
import com.epmet.service.ThirdLoginService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
@ -19,6 +20,7 @@ import java.util.List; |
|
|
|
* @Description 第三方-居民端、政府端登陆服务 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@RestController |
|
|
|
@RequestMapping("thirdlogin") |
|
|
|
public class ThirdLoginController { |
|
|
@ -34,8 +36,11 @@ public class ThirdLoginController { |
|
|
|
**/ |
|
|
|
@PostMapping("resilogin") |
|
|
|
public Result<UserTokenResultDTO> resiLogin(@RequestBody LoginFormDTO formDTO) { |
|
|
|
long start = System.currentTimeMillis(); |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<UserTokenResultDTO>().ok(thirdLoginService.resiLogin(formDTO)); |
|
|
|
UserTokenResultDTO resultDTO = thirdLoginService.resiLogin(formDTO); |
|
|
|
log.error("resilogin total cost:{}",System.currentTimeMillis()-start); |
|
|
|
return new Result<UserTokenResultDTO>().ok(resultDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|