package com.storlead.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * @program: sp-sales
 * @description:
 * @author: chenkq
 * @create: 2022-06-28 18:19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@ApiModel(value="RoleMenu对象", description="角色菜单权限")
@TableName("role_menu")
public class RoleMenuEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;


    public RoleMenuEntity(Long roleId, Long menuId,Integer isApp) {
        this.roleId = roleId;
        this.menuId = menuId;
        this.isApp = isApp;
    }

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "菜单ID")
    private Long menuId;

    @ApiModelProperty(value = "菜单ID")
    private Integer isApp;
}
