|
@@ -1,13 +1,15 @@
|
|
|
-package com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.controller;
|
|
|
+package com.dragoninfo.dcuc.authweb.restcontroller.api.authservice.v1.controller.zerotrust;
|
|
|
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.zerotrust.ZeroTrustDataRespVO;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.zerotrust.ZeroTrustMessageRespVO;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.zerotrust.authapply.ApiRoleAuthReqVo;
|
|
|
+import com.dragoninfo.dcuc.auth.api.vo.zerotrust.authapply.ApiServiceAuthReqVo;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.zerotrust.authapply.AuthApplyRespVo;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.zerotrust.role.ApiAppRoleRespVo;
|
|
|
import com.dragoninfo.dcuc.auth.api.vo.zerotrust.role.ApiRolesReqVo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.api.IZeroTrustAuthApplyFacade;
|
|
|
import com.dragoninfo.dcuc.auth.auth.api.IZeroTrustAuthFacade;
|
|
|
+import com.dragoninfo.dcuc.auth.auth.vo.zerotrust.approval.ApprovalCallBackReqVO;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -41,4 +43,16 @@ public class AuthApplyApiController {
|
|
|
return zeroTrustAuthApplyFacade.roleAuthApply(reqVo);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "服务授权申请")
|
|
|
+ @PostMapping("")
|
|
|
+ public ZeroTrustDataRespVO<AuthApplyRespVo> serviceAuthApply(@Valid @RequestBody ApiServiceAuthReqVo reqVo) {
|
|
|
+ return zeroTrustAuthApplyFacade.serviceAuthApply(reqVo);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("approval/call-back")
|
|
|
+ public ZeroTrustMessageRespVO approvalCallBack(@Valid @RequestBody ApprovalCallBackReqVO approvalCallBackReqVO) {
|
|
|
+ return zeroTrustAuthApplyFacade.callBack(approvalCallBackReqVO);
|
|
|
+ }
|
|
|
+
|
|
|
}
|