com.dahuatech.icc.oauth.model.v202010.OauthLogoutRequest Maven / Gradle / Ivy
Show all versions of java-sdk-oauth Show documentation
package com.dahuatech.icc.oauth.model.v202010;
import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.constant.OauthConstant;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
/**
* 注销授权信息,需要鉴权
*
* 无请求参数,需请求头
*
*
Authorization-鉴权信息(必填)
*
*
openId -微信用户唯一表示(非必填)
*
*
User-Client-客户端标识位(非必填)
*
* @author 232676
* @since 1.0.0 2020-10-24 20:59:11
*/
public class OauthLogoutRequest extends AbstractIccRequest {
/** openId请求头,非必填 */
private String openId;
/** User-Client,非必填 */
private String userClient;
public OauthLogoutRequest() throws ClientException {
super(OauthConstant.url(OauthConstant.OAUTH_URL_LOGOUT_GET), Method.GET, Boolean.TRUE);
}
@Override
public Class getResponseClass() {
return OauthLogoutResponse.class;
}
public String getOpenId() {
return openId;
}
public void setOpenId(String openId) {
this.openId = openId;
header("openId", openId);
}
public String getUserClient() {
return userClient;
}
public void setUserClient(String userClient) {
this.userClient = userClient;
header("User-Client", userClient);
}
public void businessValid() {
}
}