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


import com.engine.salary.enums.auth.DataLinkEnum;
import com.engine.salary.enums.auth.DataTargetTypeEnum;
import com.engine.salary.util.valid.Modify;
import com.engine.salary.util.valid.ModifyTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 数据
 * <p>Copyright: Copyright (c) 2024</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthDataSaveParam {
    private Long id;

    private Long roleId;

    private DataLinkEnum link;

    private DataTargetTypeEnum targetType;

    @Modify(modifyType = ModifyTypeEnum.RESTORE_SQL)
    private String target;

    @Modify(modifyType = ModifyTypeEnum.RESTORE_SQL)
    private String targetName;

    private Integer sortedIndex;
}