package com.schisandra.auth.application.convert;

import com.schisandra.auth.application.dto.SchisandraSmsConfigDTO;
import com.schisandra.auth.domain.bo.SchisandraSmsConfigBO;
import com.schisandra.auth.infra.basic.entity.SchisandraSmsConfig;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * (SchisandraSmsConfig)实体类
 *
 * @author makejava
 * @since 2024-05-08 20:09:54
 */
@Mapper(componentModel = "spring")
public interface SchisandraSmsConfigDTOConvert {

    SchisandraSmsConfigDTOConvert INSTANCE = Mappers.getMapper(SchisandraSmsConfigDTOConvert.class);

    /**
     * @description 将bo转换为实体
     * @param schisandraSmsConfigDTO
     * @return com.schisandra.auth.infra.basic.bo.SchisandraAuthUser
     * @author schisandra
     * @date 2024/3/21 23:13
     */
    SchisandraSmsConfigBO convertDTOToBO(SchisandraSmsConfigDTO schisandraSmsConfigDTO);

    /**
     * @description 将实体转换为bo
     * @param schisandraSmsConfigBO
     * @return com.schisandra.auth.domain.bo.SchisandraAuthUserBO
     * @author schisandra
     * @date 2024/3/21 23:13
     */
    SchisandraSmsConfigDTO convertBOToDTO(SchisandraSmsConfigBO schisandraSmsConfigBO);

    List<SchisandraSmsConfigDTO> convertBOToDTOList(List<SchisandraSmsConfigBO> schisandraSmsConfigBO);

}

