You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
package com.project.classicpaper.application;
|
|
|
|
import com.project.base.domain.result.PageResult;
|
|
import com.project.base.domain.result.Result;
|
|
import com.project.classicpaper.domain.dto.ClassicPaperSetDTO;
|
|
import com.project.classicpaper.domain.param.ClassicPaperSetParam;
|
|
|
|
public interface ClassicPaperSetApplicationService {
|
|
|
|
/**
|
|
* 批量生成经典套题(N个版本),返回套题组信息
|
|
*/
|
|
Result<ClassicPaperSetDTO> generate(ClassicPaperSetDTO request) throws Exception;
|
|
|
|
/**
|
|
* 套题组列表
|
|
*/
|
|
Result<PageResult<ClassicPaperSetDTO>> list(ClassicPaperSetParam param);
|
|
|
|
/**
|
|
* 套题组详情(含所有版本及其题目列表)
|
|
* @param setId 套题组ID
|
|
* @param paperId 可选,指定版本ID,传则只返回该版本,不传返回整组
|
|
*/
|
|
Result<ClassicPaperSetDTO> getDetail(Long setId, Long paperId);
|
|
|
|
/**
|
|
* 废弃套题组(连带所有版本)
|
|
*/
|
|
Result<String> delete(Long setId) throws Exception;
|
|
|
|
/**
|
|
* 更新分值比例,同时计算每道题的分值
|
|
*/
|
|
Result<ClassicPaperSetDTO> save(ClassicPaperSetDTO request) throws Exception;
|
|
}
|
|
|