package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 角色菜单表
 * </p>
 *
 * @author XKF
 * @since 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ROLEFUNCMENU")
@ApiModel(value="Rolefuncmenu对象", description="角色菜单表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Rolefuncmenu extends Model<Rolefuncmenu> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色权限ID")
    @TableField("ROLEID")
    private Long roleid;

    @ApiModelProperty(value = "菜单代码")
    @TableField("RESOURCECODE")
    private String resourcecode;


    @Override
    public Serializable pkVal() {
        return this.roleid;
    }

}
