package com.sundot.airport.common.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sundot.airport.common.domain.BaseAttachment;

/**
 * 附件Service接口
 *
 * @author ruoyi
 * @date 2025-07-14
 */
public interface IBaseAttachmentService extends IService<BaseAttachment> {
    /**
     * 查询附件
     *
     * @param id 附件主键
     * @return 附件
     */
    public BaseAttachment selectBaseAttachmentById(Long id);

    /**
     * 查询附件列表
     *
     * @param baseAttachment 附件
     * @return 附件集合
     */
    public List<BaseAttachment> selectBaseAttachmentList(BaseAttachment baseAttachment);

    /**
     * 新增附件
     *
     * @param baseAttachment 附件
     * @return 结果
     */
    public int insertBaseAttachment(BaseAttachment baseAttachment);

    /**
     * 修改附件
     *
     * @param baseAttachment 附件
     * @return 结果
     */
    public int updateBaseAttachment(BaseAttachment baseAttachment);

    /**
     * 批量删除附件
     *
     * @param ids 需要删除的附件主键集合
     * @return 结果
     */
    public int deleteBaseAttachmentByIds(Long[] ids);

    /**
     * 删除附件信息
     *
     * @param id 附件主键
     * @return 结果
     */
    public int deleteBaseAttachmentById(Long id);
}
