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

import com.red.circle.framework.dto.Command;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户实时状态表.
 * </p>
 *
 * @author pengliang
 * @since 2020-05-28
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class OnlineStatusUploadCmd extends Command {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 系统.
   */
  @NotBlank(message = "sysOrigin required")
  private String sysOrigin;

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

  /**
   * 状态.
   */
  @NotBlank(message = "status required")
  private String status;

  /**
   * 是否定时调用.
   */
  private Boolean task;

  /**
   * 房间会话.
   */
  private String sessionId;

}
