Merge branch 'master' of http://git.estsh.com/i3-IMPP/i3plus-pojo
commit
19c635e8b2
@ -0,0 +1,96 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.base.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 基本返回结果
|
||||||
|
* @Reference :
|
||||||
|
* @Author : alwaysfrin
|
||||||
|
* @CreateDate : 2018-11-14 15:58
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
public class BaseResultBean<Obj> {
|
||||||
|
|
||||||
|
@ApiParam("是否成功")
|
||||||
|
public boolean success;
|
||||||
|
|
||||||
|
@ApiParam("信息代码-国际化")
|
||||||
|
public String code;
|
||||||
|
|
||||||
|
@ApiParam("操作消息")
|
||||||
|
public String msg;
|
||||||
|
|
||||||
|
@ApiParam("错误消息")
|
||||||
|
public String errorMsg;
|
||||||
|
|
||||||
|
@ApiParam("http路径")
|
||||||
|
public String url;
|
||||||
|
|
||||||
|
@ApiParam("List结果集")
|
||||||
|
public List<Obj> resultList;
|
||||||
|
|
||||||
|
@ApiParam("单个结果")
|
||||||
|
public Obj resultObject;
|
||||||
|
|
||||||
|
@ApiParam("翻页和结果集")
|
||||||
|
public ListPager<Obj> listPager;
|
||||||
|
|
||||||
|
@ApiParam("Map结果集")
|
||||||
|
public Map<String, Object> resultMap;
|
||||||
|
|
||||||
|
@ApiParam("翻页操作")
|
||||||
|
public Pager pager;
|
||||||
|
|
||||||
|
@ApiParam("总记录数")
|
||||||
|
public int totalCount;
|
||||||
|
|
||||||
|
public boolean isSuccess() {
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsg() {
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorMsg() {
|
||||||
|
return errorMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Obj> getResultList() {
|
||||||
|
return resultList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Obj getResultObject() {
|
||||||
|
return resultObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ListPager<Obj> getListPager() {
|
||||||
|
return listPager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, Object> getResultMap() {
|
||||||
|
return resultMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pager getPager() {
|
||||||
|
return pager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTotalCount() {
|
||||||
|
return totalCount;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue