package com.cpop.core.base.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Set;

/**
 * @author: DB
 * @date: 2022-09-26 22:48
 * @Description: 登录成功vo
 */
@Data
@Accessors(chain = true)
public class LoginSuccess implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * token
     */
    private String token;

    /**
     * 权限
     */
    private Set<String> role;

    public LoginSuccess(String id, String userId, String token) {
        this.id = id;
        this.userId = userId;
        this.token = token;
    }
}
