package com.lesingle.edu.common.mapper;

import com.lesingle.edu.dto.response.LessonFeedbackResponse;
import com.lesingle.edu.entity.LessonFeedback;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * LessonFeedback Entity Mapper
 */
@Mapper(componentModel = "spring")
public interface LessonFeedbackMapper {

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

    /**
     * Entity 转 Response
     */
    LessonFeedbackResponse toVO(LessonFeedback entity);

    /**
     * Entity 列表转 Response 列表
     */
    List<LessonFeedbackResponse> toVO(List<LessonFeedback> entities);

    /**
     * Response 转 Entity（用于创建/更新时）
     */
    LessonFeedback toEntity(LessonFeedbackResponse vo);
}
