|  |  |  | 
|---|
|  |  |  | import javax.validation.constraints.NotBlank; | 
|---|
|  |  |  | import javax.validation.constraints.NotNull; | 
|---|
|  |  |  | import javax.validation.constraints.Size; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableField; | 
|---|
|  |  |  | import org.apache.commons.lang3.builder.ToStringBuilder; | 
|---|
|  |  |  | import org.apache.commons.lang3.builder.ToStringStyle; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.BaseEntity; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 菜单图标 */ | 
|---|
|  |  |  | private String icon; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 角色类型 1=平台 2=分公司 3=业务员 4=供应商 5=诊所端 6=仓库员 */ | 
|---|
|  |  |  | @TableField(value = "role_type") | 
|---|
|  |  |  | private Integer roleType; | 
|---|
|  |  |  | /** 路由名称 */ | 
|---|
|  |  |  | @TableField(value = "router_name") | 
|---|
|  |  |  | private String routerName; | 
|---|
|  |  |  | /** 子菜单 */ | 
|---|
|  |  |  | private List<SysMenu> children = new ArrayList<SysMenu>(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Integer getRoleType() { | 
|---|
|  |  |  | return roleType; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRoleType(Integer roleType) { | 
|---|
|  |  |  | this.roleType = roleType; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getMenuId() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.icon = icon; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getRouterName() { | 
|---|
|  |  |  | return routerName; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRouterName(String routerName) { | 
|---|
|  |  |  | this.routerName = routerName; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public List<SysMenu> getChildren() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return children; | 
|---|