package com.seer.teach.teacher.convert;

import com.seer.teach.teacher.common.llm.resp.GradeSubjectResult;
import com.seer.teach.teacher.common.llm.resp.SubjectResult;
import com.seer.teach.user.api.dto.GradeDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 *
 * <p>
 *
 * </p >
 *
 * @author Captain
 * @since 2025-09-19 19:12
 */
@Mapper
public interface GradeSubjectConvert {

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

    @Mapping(source = "gradeSubject.id", target = "id")
    @Mapping(source = "gradeSubject.grade", target = "grade")
    @Mapping(source = "subjects", target = "subjects")
    GradeSubjectResult toGradeSubjectResp(GradeDTO gradeSubject, List<SubjectResult> subjects);
}
