
/**
 * 
 */
package org.tio.sitexxx.view.http.pathmodel;

import org.tio.http.common.HttpRequest;
import org.tio.http.common.HttpResponse;

import java.util.Map;

/**
 * @author tanyaowu
 *
 */
public interface PathModelGenerator {

	/**
	 * 生成model，如果返回值不为null，则直接将返回值作为响应发给前端
	 * @param request
	 * @param path
	 * @param baseModel
	 * @return
	 * @throws Exception 
	 */
	HttpResponse generate(HttpRequest request, String path, Map<Object, Object> baseModel) throws Exception;
}
