package com.engine.salary.entity.auth.po;

import com.engine.hrmelog.annotation.ElogTransform;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;
import java.util.Date;

/**
 * 权限项
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthOptPO {
    @ElogTransform(name = "id")
    private Long id;

    /**
     * 角色id
     */
    @ElogTransform(name = "角色id")
    private Long roleId;

    /**
     * 页面
     */
    @ElogTransform(name = "页面")
    private String page;

    /**
     * 权限项
     */
    @ElogTransform(name = "权限项")
    private String opt;

    /**
     * 创建人
     */
    @ElogTransform(name = "创建人")
    private Long creator;

    /**
     * 创建时间
     */
    @ElogTransform(name = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ElogTransform(name = "更新时间")
    private Date updateTime;

    /**
     * 是否已删除。0：未删除、1：已删除
     */
    @ElogTransform(name = "是否已删除。0：未删除、1：已删除")
    private Integer deleteType;

    /**
     * 租户ID
     */
    @ElogTransform(name = "租户ID")
    private String tenantKey;


    //主键id集合
    private Collection<Long> ids;

}