using QYZH.InteractiveMagazine.Models.Dto;
using QYZH.InteractiveMagazine.Models.Dto.Material;
using MaterialEntity = QYZH.InteractiveMagazine.Models.Entity.Material;
namespace QYZH.InteractiveMagazine.IService;
///
/// 资料服务接口
///
public interface IMaterialService : IBaseService
{
///
/// 创建资料
///
/// 资料信息
/// 创建后的资料信息
Task CreateAsync(MaterialInput input);
///
/// 更新资料
///
/// 资料ID
/// 资料信息
/// 更新后的资料信息
Task UpdateAsync(long id, MaterialInput input);
///
/// 删除资料
///
/// 资料ID
Task DeleteAsync(long id);
///
/// 根据ID获取资料
///
/// 资料ID
/// 资料信息
Task GetByIdAsync(long id);
///
/// 分页查询资料列表
///
/// 查询条件
/// 分页结果
Task> GetListAsync(MaterialQueryInput input);
///
/// 更新资料启用/禁用状态
///
/// 资料ID
/// 操作结果
Task UpdateStatusAsync(long id);
///
/// 获取小程序可见资料列表
///
/// 资料列表
Task> GetEnabledListAsync();
}