于紫祥_1901
2020-12-23 828915552e4f96b0cd898b87d4159852d620c63d
src/main/java/com/moral/entity/Account.java
@@ -1,6 +1,8 @@
package com.moral.entity;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import javax.persistence.Id;
import javax.persistence.Transient;
@@ -69,7 +71,18 @@
    * @mbggenerated  Thu Dec 07 16:17:21 CST 2017
    */
   private Date expireTime;
   private String userName;
   @Transient
   private JwtTokenVersion jwtTokenVersion;
   @Transient
    private List<Role> Roles;
   // TODO 临时角色
   public List<Role> getRoles(){
      Role role = new Role();
      role.setRoleName("temp");
      return Arrays.asList(role);
   }
   @Transient
   private Organization organization;