package com.schisandra.auth.application.convert;

import com.schisandra.auth.application.dto.SchisandraAuthRoleDTO;
import com.schisandra.auth.application.dto.SchisandraAuthUserDTO;
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
import com.schisandra.auth.domain.bo.SchisandraAuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * ClassName:SchisandraAuthRoleDTOConvert
 * Package:com.schisandra.auth.application.convert
 * Description:
 *
 * @Author:
 * @Create:2024/4/4 - 21:40
 * @Version: v1.0
 */
@Mapper(componentModel = "spring")
public interface SchisandraAuthRoleDTOConverter {

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

    /**
     * @param authRoleDTO
     * @return com.schisandra.auth.domain.bo.SchisandraAuthRoleBO
     * @description DTO转BO
     * @author schisandra
     * @date 2024/3/21 23:11
     */

    SchisandraAuthRoleBO convertDTOToBO(SchisandraAuthRoleDTO authRoleDTO);

    /**
     * @description: BO转DTO
     * @param: [authUserBO]
     * @return: com.schisandra.auth.application.dto.SchisandraAuthRoleDTO
     * @author: schisandra
     * @date: 2024/3/21 23:26
     */
    SchisandraAuthRoleDTO convertBOToDTO(SchisandraAuthRoleBO authRoleBO);

}
