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

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

/**
 * @author pengliang on 2022/2/16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class UserSpecialIdCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录Id.
   */
  String id;

  /**
   * 归属系统.
   */
  @NotBlank
  String sysOrigin;

  /**
   * 用户ID.
   */
  @NotNull
  @JsonSerialize(using = ToStringSerializer.class)
  Long userId;

  /**
   * 时序id.
   */
  Long timeId;

  /**
   * 号码.
   */
  @NotBlank
  String account;

  /**
   * 过期天.
   */
  Long expiredDays;

  /**
   * 备注.
   */
  String remark;

  /**
   * 自定义字段.
   */
  Map<String, String> customizeField;

  /**
   * 操作用户id.
   */
  Long optUserId;

  /**
   * true编辑自定义属性.
   */
  Boolean editCustomizeField;

  /**
   * 最近操用户.
   */
  Long latestOptUserId;

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