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

com.lx.entity.UserInfo Maven / Gradle / Ivy

Go to download

使用文档: https://a7fi97h1rc.feishu.cn/docx/X3LRdtLhkoXQ8hxgXDQc2CLOnEg?from=from_copylink

There is a newer version: 1.1
Show newest version
package com.lx.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(name = "用户信息")
public class UserInfo implements Serializable {

    public static final long serialVersionUID = 50009944212722661L;
    @Schema(description="用户ID")
    @NotNull(message = "用户id不能为空!")
    private String userId;

    @Schema(description="用户类型")
    private String userType;

    @Schema(description="用户颁发token时类型, 类型一致会删掉用户之前的token")
    private String tokenType;

    public UserInfo() {
    }
    public UserInfo(String userId, String userType) {
        this.userId = userId;
        this.userType = userType;
        this.tokenType = userType;
    }
    public UserInfo(String userId, String userType, String tokenType) {
        this.userId = userId;
        this.userType = userType;
        this.tokenType = tokenType;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy