|
@@ -3,6 +3,7 @@ package com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v4.controller
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.BusinessRespEnum;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.DataRespVO;
|
|
|
+import com.dragoninfo.dcuc.auth.api.vo.MessageRespVO;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.ResultRespVO;
|
|
|
import com.dragoninfo.dcuc.auth.auth.api.IApiDataAuthFacade;
|
|
|
import com.dragoninfo.dcuc.auth.auth.dto.AppDataSensitiveLevelDTO;
|
|
@@ -19,6 +20,7 @@ import com.dragoninfo.dcuc.auth.auth.vo.ServiceAuthenticationResVO;
|
|
|
import com.dragoninfo.dcuc.auth.sub.vo.AuthUserVo;
|
|
|
import com.dragoninfo.dcuc.auth.token.facade.IAuthTokenFacade;
|
|
|
import com.dragoninfo.dcuc.auth.token.vo.TokenDetailRespVo;
|
|
|
+import com.dragoninfo.dcuc.auth.token.vo.TokenReceiveVO;
|
|
|
import com.dragoninfo.dcuc.auth.token.vo.UserTokenInfoRespVO;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v4.vo.*;
|
|
|
import com.dragoninfo.dcuc.authweb.util.HeadTokenUtils;
|
|
@@ -33,6 +35,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.Optional;
|
|
@@ -235,6 +238,11 @@ public class AuthV4Controller {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("token-receive")
|
|
|
+ public MessageRespVO tokenReceive(@Valid @RequestBody TokenReceiveVO receiveVO) {
|
|
|
+ return authTokenFacade.tokenReceive(receiveVO);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("userOrgDataAuth")
|
|
|
public ResultRespVO<DataAuthRespVO> userOrgDataAuth(@RequestBody UserOrgAuthReqVO userOrgAuthReqVO) {
|
|
|
|