package com.jeesharp.business.modules.member.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 通过微信小程序 getPhoneNumber 的 phoneCode 获取手机号请求。
 *
 * @author jeesharp
 */
@Data
@Schema(description = "通过微信手机号code获取手机号请求")
public class GetPhoneByCodeDTO {

    @Schema(description = "button open-type=getPhoneNumber 回调中的动态令牌 code", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "phoneCode不能为空")
    private String phoneCode;
}
