package com.yifu.cloud.plus.v1.business.service.system;

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.business.entity.system.SysBusDict;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;

import java.util.Map;

/**
 * @author fxj
 * @date 2021-08-18 14:51:15
 */
public interface SysBusDictService extends IService<SysBusDict> {

    /**
     * 简单分页查询
     *
     * @param sysBusDict
     * @return
     */
    IPage<SysBusDict> getSysBusDictPage(Page<SysBusDict> page, SysBusDict sysBusDict);


    /**
     * 获取B端字典数据Map
     * @param itemType
     * @param type 0  key = value   1  key = label
     * @return
     */
    Map<String, SysBusDict> getSysBusDictByItemType(String itemType,String type);


    R<Map<String, String>> getBusiDicMap(String type, String itemType);
}
