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

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;

/**
 * 团队成员角色变更.
 *
 * @author pengliang on 2022/12/30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TeamMemberRoleChangeCmd extends AppExtCommand {

  /**
   * 团队id.
   *
   * @eo.required
   */
  @NotNull(message = "teamId required.")
  private Long teamId;

  /**
   * 被处理等成员id.
   *
   * @eo.required
   */
  @NotNull(message = "changeMemberId required.")
  private Long changeMemberId;

  /**
   * 角色.
   *
   * @eo.required
   */
  @NotBlank(message = "role required.")
  private String role;

}
