|
@@ -1,17 +1,11 @@
|
|
package com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.controller;
|
|
package com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.controller;
|
|
|
|
|
|
-import com.auth0.jwt.JWT;
|
|
|
|
-import com.auth0.jwt.interfaces.DecodedJWT;
|
|
|
|
import com.dragoninfo.dcuc.auth.auth.dto.ServiceAuthFlowDTO;
|
|
import com.dragoninfo.dcuc.auth.auth.dto.ServiceAuthFlowDTO;
|
|
-import com.dragoninfo.dcuc.auth.auth.dto.WorkFlowResutlAcceptDTO;
|
|
|
|
-import com.dragoninfo.dcuc.auth.auth.enumresources.WorkFlowStatusEnum;
|
|
|
|
import com.dragoninfo.dcuc.auth.auth.facade.IServiceAuthFlowFacade;
|
|
import com.dragoninfo.dcuc.auth.auth.facade.IServiceAuthFlowFacade;
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.vo.AuthFlowRepeatCheckVo;
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.vo.AuthFlowRepeatCheckVo;
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.vo.ResourceInfoVo;
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.vo.ResourceInfoVo;
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.vo.ServiceAuthFlowAcceptVo;
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.vo.ServiceAuthFlowAcceptVo;
|
|
-import com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.vo.WorkFlowResutlAcceptVo;
|
|
|
|
import com.dragoninfo.dcuc.authweb.util.HeadTokenUtils;
|
|
import com.dragoninfo.dcuc.authweb.util.HeadTokenUtils;
|
|
-import com.dragoninfo.dcuc.common.Constants;
|
|
|
|
import com.dragoninfo.dcuc.common.entity.ApiResult;
|
|
import com.dragoninfo.dcuc.common.entity.ApiResult;
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseDTO;
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseDTO;
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseStatus;
|
|
import com.dragonsoft.duceap.base.entity.http.ResponseStatus;
|
|
@@ -22,7 +16,6 @@ import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -32,7 +25,6 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Optional;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author mazq
|
|
* @author mazq
|
|
@@ -96,7 +88,6 @@ public class WorkFlowApiController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 服务授权撤销是否存在授权结果
|
|
* 服务授权撤销是否存在授权结果
|
|
*/
|
|
*/
|
|
@@ -118,29 +109,6 @@ public class WorkFlowApiController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-// /**
|
|
|
|
-// * 服务授权工作单审批结果处理
|
|
|
|
-// * 提供接口
|
|
|
|
-// * 也提供kafka消息的形式
|
|
|
|
-// * kafka形式在auth服务内部处理
|
|
|
|
-// */
|
|
|
|
-// @ApiOperation(value = "服务授权工作单审批结果处理")
|
|
|
|
-// @ApiImplicitParams({@ApiImplicitParam(name = "workFlowResutlVo", value = "审批结果vo")})
|
|
|
|
-// @PostMapping(value = "service-result", consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
-// @ResponseBody
|
|
|
|
-// public ApiResult dealAuthFlowResult(@RequestBody WorkFlowResutlAcceptVo flowResutlVo) {
|
|
|
|
-// WorkFlowResutlAcceptDTO dto = new WorkFlowResutlAcceptDTO();
|
|
|
|
-// dto.setApproveResult(WorkFlowStatusEnum.SUCCESS.getValue());
|
|
|
|
-// dto.setProcessInstanceId(flowResutlVo.getProcessInstanceId());
|
|
|
|
-// dto.setRemark(flowResutlVo.getDesc());
|
|
|
|
-// dto.setMessageId(flowResutlVo.getMessageId());
|
|
|
|
-// serviceAuthFlowFacade.dealAuthFlowResult(dto);
|
|
|
|
-// return ApiResult.setSuccess();
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 设置申请单appCode和serviceCode信息
|
|
* 设置申请单appCode和serviceCode信息
|
|
*/
|
|
*/
|