package com.red.circle.other.inner.model.cmd.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.Command;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商务拓展团队表.
 * </p>
 *
 * @author pengshigang
 * @since 2022-06-07
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class BdTeamInfoCmd extends Command {

  @Serial
  private static final long serialVersionUID = 1L;


  /**
   * 主键标识.
   */
  @NotNull(message = "id required.")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 来源app.
   */
  @NotBlank(message = "sysOrigin required.")
  private String sysOrigin;

  /**
   * bd lead user id.
   */
  private Long bdLeadUserId;

  /**
   * 用户id.
   */
  @NotNull(message = "userId required.")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 联系方式
   */
  private String contact;

  /**
   * 区域.
   */
  @NotBlank(message = "region required.")
  private String region;

  /**
   * 成员数
   */
  private Long memberQuantity;

  /**
   * 创建用户.
   */
  @NotNull(message = "createUser required.")
  private Long createUser;

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

}
