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

import com.red.circle.framework.core.dto.CommonCommand;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import java.io.Serial;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 区域业务关系
 * </p>
 *
 * @author pengshigang
 * @since 2023-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysRegionRelationCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

  private Long id;

  /**
   * 系统.
   */
  @NotBlank
  private String sysOrigin;

  /**
   * 区域ID.
   */
  @NotBlank
  private String regionId;

  /**
   * 关联id.
   */
  @NotEmpty
  private List<Long> relationIds;

  /**
   * 业务类型分组 RegionRelationGroupEnum.
   */
  @NotBlank
  private String groupType;

  /**
   * 0.下架 1.上架.
   */
  private Boolean showcase;

}
