com.mizhousoft.commons.web.ActionRespBuilder Maven / Gradle / Ivy
package com.mizhousoft.commons.web;
import java.util.HashMap;
import java.util.Map;
/**
* ActionResponse构建器
*
* @version
*/
public abstract class ActionRespBuilder
{
public static final String OKEY_FIELD = "okey";
public static final String ERROR_FIELD = "error";
public static final String ERROR_CODE_FIELD = "errorCode";
public static final String DATA_FIELD = "data";
/**
* 构建成功响应
*
* @return
*/
public static ActionResponse buildSucceedResp()
{
ActionResponse response = new ActionResponse();
response.setOkey(true);
return response;
}
/**
* 构建成功响应
*
* @param object
* @return
*/
public static GenericResponse