chenw 7 rokov pred
rodič
commit
f8af1917b4

+ 13 - 0
bi-server/src/main/java/com/usoftchina/bi/server/controller/dashboard/DashboardsController.java

@@ -1,7 +1,9 @@
 package com.usoftchina.bi.server.controller.dashboard;
 
+import com.usoftchina.bi.core.base.RepCode;
 import com.usoftchina.bi.core.base.RepEntity;
 import com.usoftchina.bi.core.base.TestPage;
+import com.usoftchina.bi.core.utils.EncryUtil;
 import com.usoftchina.bi.server.model.bo.ShareReqBO;
 import com.usoftchina.bi.server.model.pojo.annotation.CheckToken;
 import com.usoftchina.bi.server.model.vo.configVo.ChangeOrderInfo;
@@ -75,6 +77,17 @@ public class DashboardsController {
         return dashboardsService.getDashboards(token, id);
     }
 
+    /**
+     * 看板编号加密
+     * @param code
+     * @return
+     */
+    @ApiOperation(value = "单个看板", notes = "查看单个看板(通过看板编号)", response = RepEntity.class)
+    @GetMapping("/encryptCode")
+    public RepEntity encryptCode(@RequestParam("code") String code){
+        return new RepEntity(RepCode.success, EncryUtil.encryptBiCode(code + "&" + System.currentTimeMillis()));
+    }
+
     /**
      * 通过看板编号查看单个看板详情
      * @param code