com.gitee.easyopen.ResultCreator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easyopen-mini Show documentation
Show all versions of easyopen-mini Show documentation
easyopen mini版,保留基本签名校验,文档功能。https://gitee.com/durcframework/easyopen
package com.gitee.easyopen;
/**
* 生成结果
*
* @author tanghc
*
*/
public interface ResultCreator {
/**
* 生成结果
*
* @param returnObj
* 业务类返回的对象
* @return 返回最终结果
*/
Result createResult(Object returnObj);
/**
* 返回错误消息
*
* @param code
* @param errorMsg
* @param data
* @return 返回最终结果
*/
Result createErrorResult(Object code, String errorMsg, Object data);
}