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

import com.engine.salary.annotation.TableTitle;
import com.engine.salary.enums.auth.DataLinkEnum;
import com.engine.salary.enums.auth.DataTargetTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthDataDTO {

    private Long id;

    /**
     * 连接符，交、并、补
     */
    @TableTitle(title = "连接",dataIndex = "linkName",key = "linkName")
    private String linkName;

    private DataLinkEnum link;

    @TableTitle(title = "对象类型",dataIndex = "targetTypeName",key = "targetTypeName")
    private String targetTypeName;
    private DataTargetTypeEnum targetType;

    @TableTitle(title = "对象",dataIndex = "targetName",key = "targetName")
    private String targetName;
    private String target;

    @TableTitle(title = "批次",dataIndex = "sortedIndex",key = "sortedIndex")
    private Integer sortedIndex;

}
