|  |  | 
 |  |  | import com.baomidou.mybatisplus.annotations.TableId; | 
 |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
 |  |  | import com.baomidou.mybatisplus.enums.IdType; | 
 |  |  | import com.zy.system.service.RoleService; | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import com.core.common.SpringUtils; | 
 |  |  | import com.zy.system.service.RoleService; | 
 |  |  | import io.swagger.annotations.ApiModelProperty; | 
 |  |  |  | 
 |  |  | import java.io.Serializable; | 
 |  |  | 
 |  |  |     @ApiModelProperty(value= "角色等级 1: 一级  2: 二级  3: 三级  4: 四级  5: 五级  ") | 
 |  |  |     private Short level; | 
 |  |  |  | 
 |  |  |     public Role() {} | 
 |  |  |     public Role() { | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public Role(String code,String name,Long leader,Short level) { | 
 |  |  |         this.code = code; | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getLevel$(){ | 
 |  |  |         if (null == this.level){ return null; } | 
 |  |  |         if (null == this.level) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         switch (this.level){ | 
 |  |  |             case 1: | 
 |  |  |                 return "一级"; |