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

com.spring.boxes.dollar.term.Authority Maven / Gradle / Ivy

package com.spring.boxes.dollar.term;

import com.spring.boxes.dollar.support.UniqSupply;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
public class Authority implements UniqSupply, Serializable {

    @Schema(description = "用户主键账号")
    protected long userId;

    @Schema(description = "登录账号")
    protected String account;

    @Schema(description = "登录后展示名称")
    protected String showName;

    /*@Schema(description = "拥有的资源列表")
    protected Set urls;*/

    //@Schema(description = "拥有的角色列表")
    //protected Set roles;

    //@Schema(description = "权限列表")
    //protected Set permission;

    @Schema(description = "密码")
    protected String password;

    @Schema(description = "平台类型")
    protected String platform;

    @Schema(description = "盐值")
    protected String salt;

    @Schema(description = "有效性")
    protected int enabled;

    public Authority(String showName) {
        this.showName = showName;
    }

    @Override
    public String toString() {
        return this.showName;
    }

    @Override
    public Long getUniqueId() {
        return this.getUserId();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy