package com.zksy.system.basicData.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.common.core.domain.AjaxResult;
import com.zksy.system.basicData.domain.CrmComplain;
import com.zksy.system.basicData.domain.dto.CrmComplainDTO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 投诉Service接口
 *
 * @author sy
 * @date 2024-05-10
 */
public interface CrmComplainService extends IService<CrmComplain> {
    /**
     * TODO 新增投诉
      * @param dto
     * @return com.zksy.common.core.domain.AjaxResult
     * @author Administrator
     * @date 2024/5/20 09:17:26
     */
    AjaxResult saveCrmComplain(CrmComplainDTO dto);

    /**
     * TODO 修改投诉
      * @param crmComplain
     * @return com.zksy.common.core.domain.AjaxResult
     * @author Administrator
     * @date 2024/5/20 09:18:01
     */
    AjaxResult updateCrmComplain(CrmComplain crmComplain);

    AjaxResult getByComplainId(String id);

    /**
     * TODO 批量删除投诉信息和文件
      * @param ids
     * @return com.zksy.common.core.domain.AjaxResult
     * @author Administrator
     * @date 2024/5/21 09:28:14
     */
    AjaxResult removeCrmComplain(List<String> ids);

    void generateVoucher(HttpServletResponse response, String name, Long id) throws Exception;
}
