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

import com.engine.salary.util.valid.Modify;
import com.engine.salary.util.valid.ModifyTypeEnum;
import com.engine.salary.util.valid.ValueTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 人员扩展参数
 * <p>Copyright: Copyright (c) 2023</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EmployeeInfoExpandDTO {

    private Long id;
    /**
     * 功能模块
     */
    private String module;
    /**
     * 模块信息
     */
    private String moduleInfo;
    /**
     * 主键
     */
    private String pk;

    /**
     * sql
     */
    @Modify(modifyType = ModifyTypeEnum.RESTORE_SQL)
    private String expandSql;

    /**
     * 字段设置
     */
    @Modify(valueType = ValueTypeEnum.ARRAY)
    private List<FieldSetting> fieldSettings;

}
