package com.red.circle.other.inner.model.dto.agency.agency;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.enums.team.TeamAppProcessReason;
import com.red.circle.other.inner.enums.team.TeamApplicationProcessStatus;
import com.red.circle.other.inner.enums.team.TeamApplicationType;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队申请流程.
 *
 * @author pengliang on 2022/12/1
 */
@Data
@Accessors(chain = true)
public class TeamApplicationProcessDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

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

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

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

  /**
   * 审核状态.
   */
  private TeamApplicationProcessStatus status;

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

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

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

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

  /**
   * 修改用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateUser;

  /**
   * 修改用户来源：0 app、1 后台.
   */
  private Integer updateUserOrigin;

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

}
