package com.red.circle.console.app.dto.clienobject.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.console.app.dto.clienobject.admin.UserCO;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队通知.
 *
 * @author pengshigang on 2022/12/15
 */
@Data
@Accessors(chain = true)
public class TeamNoticeCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 消息id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 团队ID.
   */
  private Long teamId;

  /**
   * 团队系统.
   */
  private String sysOrigin;

  /**
   * 标题.
   */
  private String title;

  /**
   * 内容.
   */
  private String content;

  /**
   * 封面.
   */
  private String cover;

  /**
   * 链接.
   */
  private String link;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 创建用户.
   */
  private UserCO createUserInfo;

  /**
   * 过期时间.
   */
  private Timestamp expiredTime;

}
