com.github.javaclub.base.domain.RoleMenu Maven / Gradle / Ivy
/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
*
* @(#)RoleMenu.java 2023-09-06
*
* Copyright (c) 2023 - 2099. All Rights Reserved.
*
*/
package com.github.javaclub.base.domain;
import java.io.Serializable;
import java.util.Date;
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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* RoleMenu 实体类
*
* @version $Id: RoleMenu.java 2023-09-06 19:11:11 Exp $
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("s_sys_role_menu")
@ApiModel(description = "角色与菜单对应关系")
public class RoleMenu implements Serializable {
private static final long serialVersionUID = 1693998671718L;
@ApiModelProperty(value = "主键ID")
@TableId(type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "角色ID")
private Long roleId;
@ApiModelProperty(value = "菜单ID")
private Long menuId;
@ApiModelProperty(value = "创建者ID")
private Long creatorId;
@ApiModelProperty(value = "创建时间")
private Date createdTime;
@ApiModelProperty(value = "修改时间")
@TableField(update = "now()")
private Date modifiedTime;
public RoleMenu() {}
}