package weaver.aiyh_pcn.async_organization.result; import java.util.ArrayList; /** * @author EBU7-dev1-ayh * @create 2021/7/21 0021 13:57 * */ public class ResultBean{ /**响应状态码*/ private boolean code; private String errorMessage; private String traceId; /**响应消息*/ private String msg; /**总页数*/ private int totalPage; /**当前页数*/ private int page; /**每页数据量*/ private int pageSize; /**数据总量*/ private int totalCount; /**响应数据*/ private ArrayList items; @Override public String toString() { return "ResultBean{" + "code=" + code + ", errorMessage='" + errorMessage + '\'' + ", traceId='" + traceId + '\'' + ", msg='" + msg + '\'' + ", totalPage=" + totalPage + ", page=" + page + ", pageSize=" + pageSize + ", totalCount=" + totalCount + ", items=" + items + '}'; } public ResultBean() { } public ResultBean(boolean code, String msg, int totalPage, int page, int pageSize, int totalCount, ArrayList items) { this.code = code; this.msg = msg; this.totalPage = totalPage; this.page = page; this.pageSize = pageSize; this.totalCount = totalCount; this.items = items; } public boolean getCode() { return code; } public void setCode(boolean code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public int getTotalPage() { return totalPage; } public void setTotalPage(int totalPage) { this.totalPage = totalPage; } public int getPage() { return page; } public void setPage(int page) { this.page = page; } public int getPageSize() { return pageSize; } public void setPageSize(int pageSize) { this.pageSize = pageSize; } public int getTotalCount() { return totalCount; } public void setTotalCount(int totalCount) { this.totalCount = totalCount; } public ArrayList getItems() { return items; } public boolean isCode() { return code; } public String getErrorMessage() { return errorMessage; } public String getTraceId() { return traceId; } public ResultBean(boolean code, String errorMessage, String traceId, String msg, int totalPage, int page, int pageSize, int totalCount, ArrayList items) { this.code = code; this.errorMessage = errorMessage; this.traceId = traceId; this.msg = msg; this.totalPage = totalPage; this.page = page; this.pageSize = pageSize; this.totalCount = totalCount; this.items = items; } public void setItems(ArrayList items) { this.items = items; } }