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

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

/**
 * 修改用户绑定手机信息.
 *
 * @author pengshigang on 2022/11/17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserMobileUpdateCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 用户id.
   */
  @NotNull
  private Long userId;

  /**
   * 手机号码前缀.
   */
  @NotNull
  private Integer phonePrefix;

  /**
   * 手机号码.
   */
  @NotBlank
  private String phoneNumber;

  /**
   * 手机号密码.
   */
  @NotBlank
  private String pwd;

}
