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

import com.engine.salary.annotation.TableTitle;
import com.engine.salary.enums.common.SharedTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 薪资帐套表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
//hrsa_page_list_template
public class PageListTemplateDTO {


    private Long id;


    /**
     * 模板名称
     */
    @TableTitle(title = "模板名称",dataIndex = "name",key = "name")
    private String name;

    /**
     * 页面
     */
    private String page;

    /**
     * 设置
     */
    private List<String> setting;

    /**
     * 是否共享,0否，1是
     * @see SharedTypeEnum
     */
    private Integer sharedType;

    @TableTitle(title = "可见性",dataIndex = "sharedTypeName",key = "sharedTypeName")
    private String sharedTypeName;

    /**
     * 是否系统模板
     */
    private Integer systemType;

    @TableTitle(title = "是否系统模板",dataIndex = "systemTypeName",key = "systemTypeName")
    private String systemTypeName;

    @TableTitle(title = "范围",dataIndex = "limits",key = "limits")
    private String limits;

    @TableTitle(title = "导出模板",dataIndex = "fileName",key = "fileName")
    private String fileName;
    private Integer fileId;


    /**
     * 限制
     */
    private List<Long> limitIds;

    private Boolean canEdit;

}