package com.sptg.permissions.api.dto;

import com.baomidou.mybatisplus.annotations.TableField;
import com.sptg.permissions.api.entity.Account;
import com.sptg.permissions.api.entity.Organization;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * title: AccountDto
 * package: com.sptg.permissions.api.dto
 * description:
 *
 *                  
 *                 
 */
@Getter
@Setter
public class AccountDto extends Account {

    /**
     * 排序条件
     */
    @TableField(exist = false)
    private String sortField;

    /**
     * 排序顺序
     */
    @TableField(exist = false)
    private String sortOrder;

    /**
     * 当前在线用户
     */
    @TableField(exist = false)
    private Account onLineUser;

    /**
     * 角色Id
     */
    @TableField(exist = false)
    private Long roleId;

    /**
     * 角色Id列表,用“,”分割
     */
    @TableField(exist = false)
    private String roleIds;

    /**
     * 选中的机构Id
     */
    @TableField(exist = false)
    private Long selectedId;

    /**
     * 机构列表
     */
    @TableField(exist = false)
    private List<Organization> orgList;

    /**
     * 批量删除所选id集合
     */
    @TableField(exist = false)
    private List<String> ids;

    /**
     * 是否不对密码进行加密：0,需要加密;1,不加密
     */
    @TableField(exist = false)
    private Integer isNotEncryption;
}
