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.inner.model.dto.AdminUserDTO;
import com.red.circle.other.inner.enums.team.TeamAppProcessApprovalReason;
import com.red.circle.other.inner.enums.team.TeamApplicationType;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队申请审核日志.
 *
 * @author pengshigang on 2022/12/19
 */
@Data
@Accessors(chain = true)
public class TeamApplicationProcessApprovalCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;


  /**
   * 记录id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

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

  /**
   * 类型.
   */
  private TeamApplicationType type;

  /**
   * 原因.
   */
  private TeamAppProcessApprovalReason reason;

  /**
   * 关联id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long associateId;

  /**
   * 被处理用户id.
   */
  private Long beProcessUserId;

  /**
   * 被处理用户.
   */
  private UserProfileDTO beProcessUser;

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

  /**
   * 创建用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createUser;

  private AdminUserDTO createSysUser;

  private UserProfileDTO createUserProfile;

  /**
   * 创建用户来源：0 app、1 后台.
   */
  private Integer createUserOrigin;

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


}
