package org.springblade.modules.martial.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.martial.pojo.entity.MartialCompetitionAttachment;

import java.util.List;

/**
 * 赛事附件 服务类
 *
 * @author BladeX
 */
public interface IMartialCompetitionAttachmentService extends IService<MartialCompetitionAttachment> {

	/**
	 * 根据赛事ID和附件类型获取附件列表
	 *
	 * @param competitionId  赛事ID
	 * @param attachmentType 附件类型
	 * @return 附件列表
	 */
	List<MartialCompetitionAttachment> getByCompetitionIdAndType(Long competitionId, String attachmentType);

	/**
	 * 根据赛事ID获取所有附件
	 *
	 * @param competitionId 赛事ID
	 * @return 附件列表
	 */
	List<MartialCompetitionAttachment> getByCompetitionId(Long competitionId);

	/**
	 * 删除赛事的指定类型附件
	 *
	 * @param competitionId  赛事ID
	 * @param attachmentType 附件类型
	 * @return 是否成功
	 */
	boolean removeByCompetitionIdAndType(Long competitionId, String attachmentType);

}
