package com.sptg.estate.api.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.sptg.common.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * title: Notice
 * package: com.sptg.estate.api.entity
 * description: 公告
 *
 *
 *
 */
@Setter
@Getter
@TableName(value="estate_notice")
public class Notice extends BaseEntity implements java.io.Serializable{

    /**
     * 编号
     */
    @TableField(value = "s_code")
    private  String  code;
    /**
     * 标题
     */
    @TableField(value = "s_title")
    private  String  title;
    /**
     * 内容
     */
    @TableField(value = "s_content")
    private  String content;
    /**
     * 公共图片
     */
    @TableField(exist=false)
    private List<NoticeImg>  noticeImages;
    /**
     * 创建人id
     */
    @TableField(value = "l_create_account_id")
    private Long createAccountId;
    /**
     *  创建人登录名
     */
    @TableField(value = "s_create_account_name")
    private String createAccountName;
    /**
     *所属机构Id
     */
    @TableField(value = "l_org_id")
    private Long orgId;
    /**
     * 根机构Id
     */
    @TableField(value = "l_root_org_id")
    private Long rootOrgId;

    /**
     * 存储位置
     */
    @TableField(value = "s_org_position")
    private String orgPosition;

    /**
     * 下发的小区列表id，多个用“，”隔开
     */
    @TableField(value = "s_residentialIds")
    private String residentialIds;

    /**
     * 公告类型
     */
    @TableField(value = "i_type")
    private Integer type;
}
