package com.jwipc.sys.convert;

import com.jwipc.supplier.model.po.SupplierTemplateFieldAliasPO;
import com.jwipc.sys.dto.AllowedCharacterTypeCheckedDTO;
import com.jwipc.sys.dto.ValidationRuleSettingFieldSelectDTO;
import com.jwipc.sys.dto.ValidationRuleSettingInsetUpdateDTO;
import com.jwipc.sys.dto.ValidationRuleSettingListResultDTO;
import com.jwipc.sys.entity.AllowedCharacterType;
import com.jwipc.sys.entity.TRegexRule;
import com.jwipc.sys.model.po.TRegexRulePO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Chen Tianshi
 * @since 2025/8/27 17:51
 */
@Mapper(componentModel = "spring")
public interface ValidationRuleSettingConvert {
    List<ValidationRuleSettingListResultDTO> po2PageListDTO(List<TRegexRulePO> poList);
    TRegexRule insertUpdateDto2Entity(ValidationRuleSettingInsetUpdateDTO dto);
    List<AllowedCharacterTypeCheckedDTO> characterEntityList2CheckedList(List<AllowedCharacterType> list);
    List<ValidationRuleSettingFieldSelectDTO> fieldSelectPo2DTO(List<SupplierTemplateFieldAliasPO> poList);
}
