package com.seer.teach.teacher.convert;

import com.seer.teach.teacher.common.resp.*;
import com.seer.teach.teacher.module.entity.TreasuryBoxArticlesEntity;
import com.seer.teach.teacher.module.entity.TreasuryBoxTypesEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * <p>
 *
 * </p >
 *
 * @author Captain
 * @since 2025-08-07 17:23
 */
@Mapper
public interface TreasuryBoxConvert {
    TreasuryBoxConvert INSTANCE = Mappers.getMapper(TreasuryBoxConvert.class);

    @Mapping(target = "hasChapter", constant = "false")
    AppBookInfoResp toBookInf(TreasuryBoxArticlesEntity treasuryBoxArticlesEntity);

    List<AppBookInfoResp> toBookInfoList(List<TreasuryBoxArticlesEntity> treasuryBoxArticlesEntity);
}