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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.red.circle.framework.core.dto.CommonCommand;
import java.io.Serial;
import java.util.Objects;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * APP管理员-修改状态.
 * </p>
 *
 * @author houyong
 * @since 2021-03-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysAdministratorChangeStatusCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识
   */
  private Long id;

  /**
   * 状态 0：禁用 1：正常.
   */
  private Integer status;

  @JsonIgnore
  public boolean isDisable() {
    return Objects.equals(0, status);
  }

  @JsonIgnore
  public boolean isNormal() {
    return Objects.equals(1, status);
  }

}
