package com.yh.saas.plugin.configuration.announcement.entity;

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 com.yh.saas.common.support.util.query.SearchField;
import com.yh.saas.common.support.util.query.SearchMode;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 公告模块 关联接收人 - 实体类
 * </p>
 *
 * @Auther ZhangMingYu
 * @since 2019年8月14日15:50:28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("announcement_read_user_info")
public class AnnoReadUserInfo extends BaseModel<AnnoReadUserInfo> {

    /**
     * 主键ID
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 公司id
     */
    private String compId;

    /**
     * 接收人ID
     */
    @SearchField(value = "read_user_id", mode = SearchMode.EQ)
    private String readUserId;

    /**
     * 公告关联ID
     */
    @SearchField(value = "announcement_id", mode = SearchMode.EQ)
    private String announcementId;

    /**
     * 是否读取
     */
    private String isRead;



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



    public static class QueryFiles {

        public static final String READ_USER_ID = "read_user_id";

        public static final String ANNOUNCEMENT_ID = "announcement_id";

    }
}
