2023-10-22 01:10:10 +00:00
|
|
|
package com.yzdx.AiInterviewer.service;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
import com.yzdx.AiInterviewer.entity.Question;
|
|
|
|
import com.yzdx.AiInterviewer.entity.dto.QuestionDto;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public interface QuestionService extends IService<Question> {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取题目列表
|
|
|
|
* @param encoding 公司编码
|
|
|
|
* @return 题目列表
|
|
|
|
* */
|
|
|
|
List<QuestionDto> getQuestionList(String encoding);
|
2023-10-24 07:33:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 增加题目
|
|
|
|
* @param encoding 公司编码
|
|
|
|
* @param bankId 题库类型id
|
|
|
|
* @param details 题目详情
|
|
|
|
* @param promote 题目promote
|
|
|
|
* @param title 题目标题
|
|
|
|
* @param userId 用户id
|
|
|
|
* @return 改变的行数
|
|
|
|
* */
|
|
|
|
Integer addQuestion(String title,Integer bankId,String details,String promote,String encoding,Integer userId);
|
|
|
|
/**
|
|
|
|
* 修改题目
|
|
|
|
* @param id 题目ID
|
|
|
|
* @param encoding 公司编码
|
|
|
|
* @param bankId 题库类型id
|
|
|
|
* @param details 题目详情
|
|
|
|
* @param promote 题目promote
|
|
|
|
* @param title 题目标题
|
|
|
|
* @param userId 用户id
|
|
|
|
* @return 改变的行数
|
|
|
|
* */
|
|
|
|
Integer updateQuestion(Integer id,String title,Integer bankId,String details,String promote,String encoding,Integer userId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 删除题目
|
|
|
|
* @param id 删除题目的id
|
|
|
|
* @return 改变的行数
|
|
|
|
* */
|
|
|
|
Integer deleteQuestion(Integer id);
|
2023-10-22 01:10:10 +00:00
|
|
|
}
|