All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.bootx.platform.starter.auth.online.OnlineUserDto Maven / Gradle / Ivy

There is a newer version: 1.3.6.2
Show newest version
package cn.bootx.platform.starter.auth.online;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author xxm
 * @since 2021/9/8
 */
@Data
@Accessors(chain = true)
@Schema(title = "在线用户")
public class OnlineUserDto {

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "会话id")
    private String sessionId;

    @Schema(description = "用户名称")
    private String name;

    @Schema(description = "用户账号")
    private String userName;

    @Schema(description = "创建时间")
    private LocalDateTime creationTime;

    @Schema(description = "剩余有效时间(秒)")
    private Long timeout;

    @Schema(description = "Token列表")
    private List tokenSigns;

    @Data
    @Accessors(chain = true)
    @Schema(title = "Token签名")
    public static class TokenSign {

        @Schema(description = "token值")
        private String value;

        @Schema(description = "所在设备标识")
        private String device;

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy