package com.sptg.permissions.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * title: RoleMenu
 * package: com.sptg.permissions.api.entity
 * description: 角色菜单关联-实体类
 *
 *                  
 *                 
 */
@Getter
@Setter
@TableName(value = "role_menu")
public class RoleMenu {

    /**
     * 主键
     */
    @TableId(value = "l_id",type = IdType.AUTO)
    private Long id;

    /**
     * 角色Id
     */
    @TableField(value = "l_role_id")
    private Long roleId;

    /**
     * 菜单Id
     */
    @TableField(value = "l_menu_id")
    private Long menuId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "t_create_date")
    private Date createDate;

    /**
     * 创建人Id
     */
    @TableField(value = "l_create_account_id")
    private Long createAccountId;

}