package com.erp.ai.mapper;

import com.erp.ai.model.AiAgentSchedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AiAgentScheduleMapper {
    List<AiAgentSchedule> listAll();

    List<AiAgentSchedule> listActive();

    AiAgentSchedule getById(@Param("id") long id);

    int insert(AiAgentSchedule schedule);

    int update(AiAgentSchedule schedule);

    int delete(@Param("id") long id);

    int markRun(@Param("id") long id);
}
