package com.zsElectric.boot.auth.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 微信小程序手机号Code登录请求参数（新版接口）
 *
 * @author Ray.Hao
 * @since 2.0.0
 */
@Schema(description = "微信小程序手机号Code登录请求参数")
@Data
public class WxMiniAppPhoneCodeLoginDTO {

    @Schema(description = "微信小程序wx.login获取的code，用于换取openid", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "code不能为空")
    private String code;

    @Schema(description = "微信小程序getPhoneNumber获取的code，用于获取手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "phoneCode不能为空")
    private String phoneCode;

}
