package com.engine.salary.entity.auth.dto;

import com.engine.salary.annotation.TableTitle;
import com.engine.salary.entity.salarysob.po.SalarySobPO;
import com.engine.salary.entity.taxagent.po.TaxAgentPO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 角色
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthRoleDTO {

    private Long id;

    @TableTitle(title = "业务线", dataIndex = "name", key = "name")
    private String name;

    @TableTitle(title = "描述", dataIndex = "description", key = "description")
    private String description;

    /**
     * 扣缴义务人资源
     */
    private List<TaxAgentPO> taxAgentIds;

    /**
     * 账套资源
     */
    private List<SalarySobPO> sobIds;

    @TableTitle(title = "资源", dataIndex = "resources", key = "resources")
    private Integer resources;

    @TableTitle(title = "成员", dataIndex = "members", key = "members")
    private Integer members;

    @TableTitle(title = "权限", dataIndex = "opts", key = "opts")
    private Integer opts;

    @TableTitle(title = "数据", dataIndex = "datas", key = "datas")
    private Integer datas;


}