package com.storlead.sales.pojo.vo.customer;

import com.baomidou.mybatisplus.annotation.TableField;
import com.storlead.framework.annotate.Dict;
import com.storlead.sales.pojo.entity.customer.BulletinEntity;
import com.storlead.sales.pojo.entity.customer.SysResourceEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @program: sp-tems
 * @description:
 * @author: xiaojiawei
 * @create: 2022-07-21 15:38
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="bulletinVO", description="公告VO记录")
public class BulletinVO extends BulletinEntity {

   /**
    * 已阅读人数
    */
   @ApiModelProperty(value = "已阅读人数")
   private Integer readCount;

   @ApiModelProperty(value = "阅读状态 1.已读 0.未读")
   private Integer isRead;
   /**
    * 应阅读人数
    */
   @ApiModelProperty(value = "应阅读人数")
   private Integer readTotal;

   @ApiModelProperty(value = "所属栏目（对应字典栏目value）1.企业动态、2.内部分享")
   @Dict(dictCode = "column_value",valueField = "columnName")
   private String columnValue;

   @ApiModelProperty(value = "所属栏目中文")
   private String columnName;

   @ApiModelProperty(value = "通知人员名称")
   private String noticeUserNames;

   @ApiModelProperty(value = "创建人名称")
   private String staffName;

   @ApiModelProperty(value = "创建人头像")
   private String staffPhoto;

   @ApiModelProperty(value = "是否有权限修改")
   private Boolean canUpdate;

   @ApiModelProperty(value = "是否有权限删除")
   private Boolean canDelete;

   @ApiModelProperty(value = "附件")
   private List<SysResourceEntity> files;
   /**
    * 阅读对象
    */
   @ApiModelProperty(value = "阅读对象")
   private List<BulletinReadVO> readVOs;

   @ApiModelProperty(value = "评论集合")
   private List<RecordCommentVO> commentls;

}
