package com.yifu.cloud.plus.v1.yifu.social.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.social.entity.FailReasonConfig;

import java.util.List;
import java.util.Map;

/**
 * 失败原因配置
 *
 * @author huyc
 * @date 2024-05-08 10:41:32
 */
public interface FailReasonConfigService extends IService<FailReasonConfig> {
	/**
	 * 失败原因配置简单分页查询
	 * @param failReasonConfig 失败原因配置
	 * @return
	 */
	IPage<FailReasonConfig> getFailReasonConfigPage(Page<FailReasonConfig> page, FailReasonConfig failReasonConfig);

	// 查可用的列表，可模糊搜索
	List<FailReasonConfig> getFailListByReasonKey(String reasonKey);

	/**
	 * @Description: 获取list组装map来使用 hgw
	 * @Author: hgw
	 * @Date: 2024/5/11 16:24
	 * @return: java.util.Map<java.lang.String, com.yifu.cloud.plus.v1.yifu.social.entity.FailReasonConfig>
	 **/
	Map<String, FailReasonConfig> getFailReasonMap();
}