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

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/3/25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class MobileCredentialCmd extends AppExtCommand {

  /**
   * 手机号码前缀.
   */
  @NotNull(message = "phonePrefix required.")
  private Integer phonePrefix;

  /**
   * 手机号码.
   */
  @NotBlank(message = "phoneNumber required.")
  private String phoneNumber;

  /**
   * 密码.
   */
  @NotBlank(message = "pwd required.")
  private String pwd;

}
