Browse Source

refactor: 优化类名

huangzqa 4 years ago
parent
commit
9ef128f1f1

+ 5 - 6
approve-core-service/src/main/java/com/dragonsoft/dcuc/approve/controller/ReferenceController1.java → approve-core-service/src/main/java/com/dragonsoft/dcuc/approve/controller/ReferenceController.java

@@ -1,10 +1,8 @@
 package com.dragonsoft.dcuc.approve.controller;
 package com.dragonsoft.dcuc.approve.controller;
 
 
-import com.dragonsoft.dcuc.approve.model.resp.TaskOperateVo;
 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;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.beans.factory.annotation.Value;
-import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
@@ -17,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
  * @date 2021/2/24 10:33
  * @date 2021/2/24 10:33
  */
  */
 @RestController
 @RestController
-public class ReferenceController1 {
+public class ReferenceController {
     /**
     /**
      * 工作流api请求url
      * 工作流api请求url
      */
      */
@@ -33,15 +31,16 @@ public class ReferenceController1 {
     /**
     /**
      * 工作流管理端上下文
      * 工作流管理端上下文
      */
      */
-    private static  final  String workflowManageContext = "/duceap-duwf-manager";
+    private static final String WORKFLOW_MANAGE_CONTEXT = "/duceap-duwf-manager";
 
 
     /**
     /**
      * 工作流管理端页面地址
      * 工作流管理端页面地址
+     *
      * @return
      * @return
      */
      */
     @RequestMapping(value = "v1/workflow-url", method = RequestMethod.GET)
     @RequestMapping(value = "v1/workflow-url", method = RequestMethod.GET)
-    ResponseStatus workflowUrl(){
-        String url = "http://" + workflowManageUrl.substring(0, workflowManageUrl.indexOf(":") + 1) + workflowManagePort + workflowManageContext;
+    ResponseStatus workflowUrl() {
+        String url = "http://" + workflowManageUrl.substring(0, workflowManageUrl.indexOf(":") + 1) + workflowManagePort + WORKFLOW_MANAGE_CONTEXT;
         return ResponseDTO.newInstance(url);
         return ResponseDTO.newInstance(url);
     }
     }