Browse Source

feature: 角色申请路径修改

mazq 1 year ago
parent
commit
3e2d65c965

+ 1 - 1
dcuc-auth-service/src/main/java/com/dragoninfo/dcuc/auth/business/impl/zerotrust/ApproveRemoteCallBusinessImpl.java

@@ -272,7 +272,7 @@ public class ApproveRemoteCallBusinessImpl implements IApproveRemoteCallBusiness
     protected ResponseDTO<FlowApplyRespDTO> beginFlow(FlowApplyReqDTO flowApplyReqDTO) {
 
         String baseUrl = approvalProperties.getBaseUrl();
-        String url = baseUrl + "/api/v3/apply";
+        String url = baseUrl + ApprovalApiConstance.ROLE_OPEATE_APPLY;
         ResponseDTO<FlowApplyRespDTO> responseDTO = this.baseReqData(url, flowApplyReqDTO, "开启流程请求",
                 new TypeReference<FlowDataRespDto<FlowApplyRespDTO>>() {
                 });

+ 5 - 0
dcuc-auth-service/src/main/java/com/dragoninfo/dcuc/auth/constance/ApprovalApiConstance.java

@@ -61,4 +61,9 @@ public class ApprovalApiConstance {
      * 任务列表获取地址
      */
     public static final String CLASS_TYPE_URL = "/approve-core/api/v3/task-classes";
+
+    /**
+     * 角色操作流程地址
+     */
+    public static final String ROLE_OPEATE_APPLY = "/approve-core/api/v3/apply";
 }