package com.seer.teach.admin.convert;


import com.seer.teach.admin.response.SubjectResp;
import com.seer.teach.teacher.module.entity.SubjectsEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectConvert {


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

    List<SubjectResp> convertRespList(List<SubjectsEntity> list);

    @Mapping(source = "id", target = "id")
    @Mapping(source = "subject", target = "subject")
    SubjectResp convertTwo(SubjectsEntity entity);
}