package cn.pluss.platform;

import cn.pluss.platform.entity.SxfMccInfo;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Djh
 * @since 2020-09-22
 *
 * 常规mcc使用请看
 * {@link cn.pluss.platform.entity.MccInfoSort}
 * {@link cn.pluss.platform.mcc.MccInfoSortService}
 */
public interface SxfMccInfoService extends IService<SxfMccInfo> {

    Page<SxfMccInfo> pageData(Page<SxfMccInfo> page, String keyWord);

    /**
     * mcc表信息转换为树形
     * @return 树形mcc信息
     */
    JSONArray treeData();

    SxfMccInfo getByMccCode(String mccCode);
}
