package com.fs.app.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * H5 公众号 OAuth 登录入参（按 appId 查播放源配置换票）
 */
@Data
public class FsUserLoginByMpOauthParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "code参数缺失")
    @ApiModelProperty(value = "微信授权 code", required = true)
    private String code;

    @NotBlank(message = "appId参数缺失")
    @ApiModelProperty(value = "公众号 AppID", required = true)
    private String appId;

    @ApiModelProperty(value = "短链码，对应 fs_course_link.link（登录阶段可选）")
    private String uuid;
}
