package com.aegis.emergency.plan.service;

import com.aegis.emergency.plan.domain.PlanParticipant;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 预案执行对象 Service
 */
public interface IPlanParticipantService extends IService<PlanParticipant> {

    /**
     * 根据预案查询执行对象
     *
     * @param planId 预案ID
     * @return 执行对象列表
     */
    List<PlanParticipant> listByPlanId(Long planId);

    /**
     * 删除预案下的执行对象
     *
     * @param planId 预案ID
     * @return 是否成功
     */
    boolean removeByPlanId(Long planId);
}