<reponame>shuigedeng/taotao-cloud-paren
package com.taotao.cloud.oauth2.api.tmp.social.user;


import java.util.Map;

public class WechatOAuth2User implements CustomOAuth2User {
    public static final String TYPE = "wechat";
    public static final String APP_ID = "appid";
    public static final String SECRET = "secret";

    private Map<String, Object> attributes;
    private String openid;
    private String nickname;
    private String headimgurl;

    @Override
    public String getName() {
        return this.openid;
    }

    @Override
    public String getNickname() {
        return nickname;
    }

    @Override
    public String getAvatar() {
        return headimgurl;
    }
}
