package com.fs.app.param;

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

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

/**
 * @author caolq
 * 小程序用户单独授权手机号参数
 */
@Data
public class FsUserPhoneUpdateParam implements Serializable {

    @NotBlank(message = "code不能为空")
    @ApiModelProperty(value = "小程序登陆code")
    private String code;

    @ApiModelProperty(value = "小程序完整用户信息的加密数据")
    private String encryptedData;

    @ApiModelProperty(value = "小程序加密算法的初始向量")
    private String iv;

    @NotBlank(message = "小程序appid不能为空")
    @ApiModelProperty(value = "小程序appid")
    private String appId;

    @NotBlank(message = "userId不能为空")
    @ApiModelProperty(value = "当前用户id")
    private String userId;

}
