package com.xunhong.erp.turbo.base.dto;

import com.alibaba.cola.dto.DTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserSession extends DTO {
	public static final ThreadLocal<UserSession> USER_THREAD_LOCAL = new ThreadLocal<>();

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

	/**
	 * 平台id
	 */
	private Long platformId;

	/**
	 * 角色id
	 */
	private String roleSlug;

	/**
	 * ip
	 */
	private String ipAddr;

	/**
	 * 创建人ID
	 */
	private Long createdBy;

	/**
	 * 创建人名称
	 */
	private String createdByName;
}
