package com.sundot.airport.exam.common.service;


import com.github.pagehelper.PageInfo;
import com.sundot.airport.exam.common.model.result.TestPaperCatPageResult;
import com.sundot.airport.exam.domain.TestPaperCat;
import com.sundot.airport.exam.logic.manage.model.params.TestPaperCatPageParam;

import java.util.Optional;

/**
 * <b>功能名：</b>TestPaperCatService<br>
 * <b>说明：</b> 试卷分类表 <br>
 * <b>著作权：</b> Copyright (C) 2021 HUIFANEDU  CORPORATION<br>
 * <b>修改履历：
 *
 * @author 2021-06-18 liangxiao
 */
public interface TestPaperCatService extends BaseService<TestPaperCat> {

    /**
     * <b>方法名: </b> pageList <br>
     * <b>说明: </b> 分页查询 <br>
     *
     * @param param com.sundot.airport.logic.manage.model.params.TestPaperCatPageParam 分页查询条件
     * @return com.github.pagehelper.PageInfo<com.sundot.airport.exam.domain.TestPaper.TestPaperCatPageResult><br>
     * <b>修改履历: </b>
     * @author 2021/6/21 liangxiao
     */
    PageInfo<TestPaperCatPageResult> pageList(TestPaperCatPageParam param);

    /**
     * <b>方法名: </b> byNameCheckExistsGet <br>
     * <b>说明: </b> 根据名称检查是否存在记录 <br>
     *
     * @param tpcName java.lang.String 试卷分类名称
     * @return java.util.Optional<com.sundot.airport.exam.domain.TestPaperCat><br>
     * <b>修改履历: </b>
     * @author 2021/6/21 liangxiao
     */
    Optional<TestPaperCat> byNameCheckExistsGet(String tpcName);
}
