package com.zsElectric.boot.business.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsElectric.boot.business.model.entity.FirmInfo;
import com.zsElectric.boot.business.model.form.FirmInfoForm;
import com.zsElectric.boot.business.model.vo.FirmInfoVO;

import java.util.List;

/**
 * 企业信息对象转换器
 *
 * @author zsElectric
 * @since 2025-12-11 10:10
 */
@Mapper(componentModel = "spring")
public interface FirmInfoConverter{

    FirmInfoForm toForm(FirmInfo entity);

    FirmInfo toEntity(FirmInfoForm formData);

    /**
     * 实体转换为VO
     *
     * @param entity 实体对象
     * @return VO对象
     */
    FirmInfoVO toVO(FirmInfo entity);

    /**
     * 实体列表转换为VO列表
     *
     * @param entities 实体对象列表
     * @return VO对象列表
     */
    List<FirmInfoVO> toVO(List<FirmInfo> entities);
}