package com.schisandra.auth.domain.convert;

import com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO;
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper(componentModel = "spring")
public interface SchisandraAuthPermissionBOConverter {
    SchisandraAuthPermissionBOConverter INSTANCE = Mappers.getMapper(SchisandraAuthPermissionBOConverter.class);
    /**
     * @description: BO 转 实体
     * @param: [schisandraAuthPermissionBO]
     * @return: com.schisandra.auth.infra.basic.bo.SchisandraAuthPermission
     * @author zhang
     * @date: 2024/4/17 16:59
     */
    SchisandraAuthPermission convertBOToEntity(SchisandraAuthPermissionBO schisandraAuthPermissionBO);
    /**
     * @description: 实体 转 BO
     * @param: [schisandraAuthPermission]
     * @return: com.schisandra.auth.domain.bo.SchisandraAuthPermissionBO
     * @author zhang
     * @date: 2024/4/17 17:00
     */
    SchisandraAuthPermissionBO convertEntityToBO(SchisandraAuthPermission schisandraAuthPermission);
}
