com.ssrs.platform.model.entity.Privilege Maven / Gradle / Ivy
package com.ssrs.platform.model.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
*
* 权限表
*
*
* @author ssrs
* @since 2020-04-04
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_privilege")
public class Privilege implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 拥有者类型
*/
private String ownerType;
/**
* 拥有者
*/
@TableId(type = IdType.INPUT)
private String owner;
/**
* 权限内容
*/
private String privs;
/**
* 添加时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 添加人
*/
@TableField(fill = FieldFill.INSERT)
private String createUser;
/**
* 修改时间
*/
@TableField(fill = FieldFill.UPDATE)
private LocalDateTime updateTime;
/**
* 修改人
*/
@TableField(fill = FieldFill.UPDATE)
private String updateUser;
public static final String OWNER_TYPE = "owner_type";
public static final String OWNER = "owner";
public static final String PRIVS = "privs";
public static final String CREATE_TIME = "create_time";
public static final String CREATE_USER = "create_user";
public static final String UPDATE_TIME = "update_time";
public static final String UPDATE_USER = "update_user";
}