package com.yh.saas.plugin.news.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.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 职员新闻喜好类型
 * </p>
 *
 * @author wangs
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("news_announcement_read_user_like")
public class AnnoReadUserLike extends BaseModel<AnnoReadUserLike> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 职员id
     */
    private String staffId;
    /**
     * 租户id
     */
    private String tenantId;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 类型id
     */
    private String typeId;
    /**
     * 类型名称
     */
    private String typeName;
    /**
     * 是否选中
     */
    @TableField(exist = false)
    private Boolean chooseFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static class QueryFiles {

        public static final String COMP_ID = "comp_id";

        public static final String STAFF_ID = "staff_id";

        public static final String TYPE_ID = "type_id";

    }
}
