
com.github.fartherp.framework.tree.convert.ConvertTool Maven / Gradle / Ivy
/*
* Copyright (c) 2017. CK. All rights reserved.
*/
package com.github.fartherp.framework.tree.convert;
import com.github.fartherp.framework.tree.bo.Treeable;
import com.github.fartherp.framework.tree.model.common.Tree;
import java.util.List;
/**
* Created by framework .
* Auth: hyssop
* Date: 2016-09-09
*/
public interface ConvertTool {
/**
* 返回给前端Tree数据
*
* @param list 业务数据list
* @param mc 业务回调接口
* @return 返回给前端Tree数据
*/
public String findTreeStr(List list, ModelCall mc);
/**
* 返回树列表
*
* @param list 列表
* @param mc 回调接口
* @return 返回值
*/
public List findChildren(List list, ModelCall mc);
/**
* 具体业务实现接口
*
* @param 业务数据转换成EasyUITreeModel
*/
public static interface ModelCall {
/**
* 业务数据转换成属性结构
*
* @param t 业务数据
* @return EasyUITreeModel
*/
T convert(S t);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy