
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;

@Data
@EqualsAndHashCode(callSuper = true)
public class Oauth2LoginRequest extends AbstractOapRequest {

    @ServiceParamField(describe = "用户名")
    @NotBlank
    private String userName;

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

    @ServiceParamField(describe = "登录用户")
    private String loginType = "person";
}

