| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package com.inspur.customer.service.dto;
- import lombok.Data;
- import org.springframework.lang.Nullable;
- import java.io.Serializable;
- import java.util.List;
- /**
- * keycloak user
- * @author linwenhua
- * @date 2022-06-14 16:54
- **/
- @Data
- public class KeycloakUserCO implements Serializable {
- private static final long serialVersionUID = 6869360605249346844L;
- private String id;
- private String username;
- private String phone;
- private String email;
- private String wechat;
- private String wechatAppletOpenId;
- public void setPhone(@Nullable List<String> phones) {
- if (phones != null && !phones.isEmpty()) {
- phone = phones.get(0);
- }
- }
- public void setWechat(@Nullable List<String> wechats) {
- if (wechats != null && !wechats.isEmpty()) {
- String temp = wechats.get(0);
- if (!temp.contains("{\"")) {
- wechat = temp;
- }
- }
- }
- public void setWechatApplet(@Nullable List<String> wechatApplets) {
- if (wechatApplets != null && !wechatApplets.isEmpty()) {
- String temp = wechatApplets.get(0);
- if (!temp.contains("{\"")) {
- wechatAppletOpenId = temp;
- }
- }
- }
- }
|