package com.red.circle.other.app.dto.cmd.room;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 上锁房间.
 *
 * @author pengliang on 2021/6/3
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LockedRoomCmd extends AppExtCommand {

  /**
   * 房间id.
   *
   * @eo.required
   */
  @NotNull(message = "roomId required.")
  private Long roomId;

  /**
   * 房间密码.
   *
   * @eo.required
   */
  @NotBlank(message = "password required.")
  private String password;

}
