package cn.chnmuseum.party.model;
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.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
*
* 角色菜单对应表
*
*
* @author 杨智平
* @since 2018-08-03
*/
@TableName("ref_role_menu")
public class RoleMenu extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id",type = IdType.UUID)
private String id;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间", hidden = true)
@TableField("create_time")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间", hidden = true)
@TableField("update_time")
private Date updateTime;
/**
* 角色ID
*/
@ApiModelProperty(value = "角色ID")
@TableField("role_id")
private String roleId;
/**
* 菜单ID
*/
@ApiModelProperty(value = "菜单ID")
@TableField("menu_id")
private String menuId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getRoleId() {
return roleId;
}
public void setRoleId(String roleId) {
this.roleId = roleId;
}
public String getMenuId() {
return menuId;
}
public void setMenuId(String menuId) {
this.menuId = menuId;
}
@Override
protected Serializable pkVal() {
return this.id;
}
@Override
public String toString() {
return "RoleMenu{" +
", id=" + id +
", createTime=" + createTime +
", updateTime=" + updateTime +
", roleId=" + roleId +
", menuId=" + menuId +
"}";
}
}