|  |  | 
 |  |  | package com.doumee.keyCabinet.http.param; | 
 |  |  |  | 
 |  |  | import java.io.Serializable; | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 服务端完成后,返回给客户端的基本类 | 
 |  |  | 
 |  |  | public class BaseResponse<T> implements Serializable { | 
 |  |  |     // 错误码 | 
 |  |  |     //错误码") | 
 |  |  |     protected String errorCode; | 
 |  |  |     protected Integer code; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     // 错误描述 | 
 |  |  |     //"错误描述") | 
 |  |  |    protected String errorMsg; | 
 |  |  |    protected String message; | 
 |  |  |  | 
 |  |  |    public String getErrorCode() { | 
 |  |  |       return errorCode; | 
 |  |  |    public Integer getCode() { | 
 |  |  |       return code; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setErrorCode(String errorCode) { | 
 |  |  |       this.errorCode = errorCode; | 
 |  |  |    public void setCode(Integer code) { | 
 |  |  |       this.code = code; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public String getErrorMsg() { | 
 |  |  |       return errorMsg; | 
 |  |  |    public String getMessage() { | 
 |  |  |       return message; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setErrorMsg(String errorMsg) { | 
 |  |  |       this.errorMsg = errorMsg; | 
 |  |  |    public void setMessage(String message) { | 
 |  |  |       this.message = message; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    private T record; | 
 |  |  |    private T data; | 
 |  |  |  | 
 |  |  |    private List<T> recordList; | 
 |  |  |    private Integer totalCount; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |    public T getRecord() { | 
 |  |  |       return record; | 
 |  |  |    public T getData() { | 
 |  |  |       return data; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setRecord(T record) { | 
 |  |  |       this.record = record; | 
 |  |  |    public void setData(T data) { | 
 |  |  |       this.data = data; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public List<T> getRecordList() { | 
 |  |  |       return recordList; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setRecordList(List<T> recordList) { | 
 |  |  |       this.recordList = recordList; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public Integer getTotalCount() { | 
 |  |  |       return totalCount; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public void setTotalCount(Integer totalCount) { | 
 |  |  |       this.totalCount = totalCount; | 
 |  |  |    } | 
 |  |  | } |