package org.nl.common.utils.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.nl.system.service.user.dao.SysUser;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: lyd
 * @description: 当前用户的信息
 * @Date:
 */
@Data
public class CurrentUser implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;

    //账号
    private String username;
    //姓名
    private String presonName;

    //用户详细信息
    private SysUser user;

    private List<String> permissions = new ArrayList<>();
}
