Browse Source

登录失效 换code
非未提交状态 去除 "M" 按钮

shiqian 4 năm trước cách đây
mục cha
commit
05855857ba

+ 5 - 0
boman-api/boman-domain/src/main/java/com.boman.domain/constant/Constants.java

@@ -34,6 +34,11 @@ public class Constants
      */
     public static final Integer SUCCESS = 200;
 
+    /**
+     * 登录状态失效
+     */
+    public static final Integer LOGIN_EXPIRE = 401;
+
     /**
      * 失败标记
      */

+ 9 - 0
boman-api/boman-domain/src/main/java/com.boman.domain/dto/R.java

@@ -17,6 +17,10 @@ public class R<T> implements Serializable
 
     /** 失败 */
     public static final int FAIL = Constants.FAIL;
+    /**
+     * 登录状态失效
+     */
+    public static final Integer LOGIN_EXPIRE = Constants.LOGIN_EXPIRE;
 
     private int code;
 
@@ -49,6 +53,11 @@ public class R<T> implements Serializable
         return restResult(null, FAIL, msg);
     }
 
+    public static <T> R<T> loginExpire(String msg)
+    {
+        return restResult(null, LOGIN_EXPIRE, msg);
+    }
+
     public static <T> R<T> fail(T data)
     {
         return restResult(data, FAIL, null);

+ 1 - 0
boman-web-core/src/main/java/com/boman/web/core/service/TableServiceCmdService.java

@@ -579,6 +579,7 @@ public class TableServiceCmdService {
             btns.remove(GlobalBtn.D);
             btns.remove(GlobalBtn.A);
             btns.remove(GlobalBtn.U);
+            btns.remove(GlobalBtn.M);
         }
 
         return Strings.nullToEmpty(CollectionUtils.listToString(btns));