package com.flightfeather.grid.service
|
|
import com.flightfeather.grid.domain.ds1.entity.ClueQuestion
|
import org.springframework.web.multipart.MultipartFile
|
|
interface ClueQuestionService {
|
|
/**
|
* 上报线索问题及图片
|
* @param question 问题
|
* @param files 图片
|
*/
|
fun uploadQuestionAndImage(question: String, files: Array<MultipartFile>?): Boolean
|
|
/**
|
* 更新线索问题及图片
|
* @param question 问题
|
* @param deleteImg 删除的图片路径数组
|
* @param files 图片
|
*/
|
fun updateQuestionAndImage(question: String, deleteImg: String, files: Array<MultipartFile>): Boolean
|
|
/**
|
* 删除线索问题及图片
|
* @param questionId 问题主键id
|
*/
|
fun deleteQuestion(questionId: String): Boolean
|
|
/**
|
* 自动生成新问题的uid
|
* @param question 问题
|
*/
|
fun newQuestionUid(question: ClueQuestion)
|
|
/**
|
* 保存问题图片文件
|
* @param question 问题
|
* @param files 文件
|
*/
|
fun saveImageFile(question: ClueQuestion, files: Array<MultipartFile>?): String
|
|
/**
|
* 删除问题图片文件硬盘记录
|
* @param question 问题
|
* @param deleteImg 图片相对路径
|
*/
|
fun deleteImageFile(question: ClueQuestion, deleteImg: String)
|
|
/**
|
* 获取线索问题
|
* @param clueId
|
*/
|
fun getClueQuestion(clueId: String): List<ClueQuestion?>
|
|
/**
|
* 推送线索问题及图片至第三方
|
*/
|
fun pushQuestion(questionIdList: List<String>?): Boolean
|
}
|