Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.IService/IJournalService.cs
glz f2f7ec9100 feat: 完成多模块功能迭代与代码重构
本次提交包含多方面更新:
1. 新增消息类型枚举、杂志标题字段与AI提示词状态管理
2. 重构杂志服务,新增创建杂志接口并统一OSS路径命名规范
3. 调整题库任务结构,将答案解析迁移至独立表并优化关联查询
4. 新增AI提示词无分页查询与状态切换接口
5. 精简任务添加输入DTO,移除冗余字段
6. 修复控制器路由命名大小写不一致问题
2026-06-16 16:54:02 +08:00

56 lines
1.5 KiB
C#

using QYZH.InteractiveMagazine.Models.Dto.Journal;
using QYZH.InteractiveMagazine.Models.Dto.DotMatrix;
using QYZH.InteractiveMagazine.Models.Enum;
using QYZH.InteractiveMagazine.Models.Dto;
using QYZH.InteractiveMagazine.Models.Entity;
namespace QYZH.InteractiveMagazine.IService;
public interface IJournalService : IBaseService<Journal>
{
/// <summary>
/// 查询List
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
Task<List<JournalDto>> GetListAsync(JournalQueryDto dto);
/// <summary>
/// 分页查询
/// </summary>
/// <param name="search"></param>
/// <returns></returns>
Task<PageListModel<JournalDto>> GetPageListAsync(PageQueryModel<JournalQueryDto> search);
/// <summary>
/// 创建杂志
/// </summary>
/// <param name="input">杂志信息</param>
/// <returns>新杂志ID</returns>
Task<BaseResponse<long>> AddAsync(JournalAddDto input);
/// <summary>
/// 编辑
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
Task<BaseResponse<bool>> EditAsync(JournalEditDto input);
Task<List<JournalTaskOutput>> Tasks(long id);
Task<JournalDto> DetailAsync(long id);
Task<bool> DeleteAsync(List<long> id);
Task<bool> StartPageAsync(long Id, int Index);
Task<bool> StatusAsync(long id, JournalStatusEnum status);
Task<DotMatrixOutput> PrintCodeAsync(long id);
Task<bool> ResultReportAsync(DotMatrixNoteJournalReportInput input);
}