package com.zhiqiyun.open.router.request.oauth2;

import com.dliyun.oap.framework.annotation.ServiceParamField;
import com.dliyun.oap.framework.request.AbstractOapRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = true)
public class Oauth2UpdateInfoRequest extends AbstractOapRequest {
    @ServiceParamField(describe = "用户认证的Token")
    @NotBlank
    private String accessToken;

    @ServiceParamField(describe = "姓名")
    @NotBlank
    private String name;

    @ServiceParamField(describe = "真实姓名")
    @NotBlank
    private String realName;

    @ServiceParamField(describe = "密码")
    private String password;

    @ServiceParamField(describe = "性别(1,2)")
    private Integer sex;

    @ServiceParamField(describe = "邮箱")
    private String email;

    @ServiceParamField(describe = "手机号码")
    private String phone;
}
