| package com.xcong.excoin.netty.bean; | 
|   | 
| import java.io.Serializable; | 
| import java.util.HashMap; | 
| import java.util.List; | 
| import java.util.Map; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-04-18 16:17 | 
|  **/ | 
| public class ResponseBean implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     public static final String SUCCESS = "200"; | 
|   | 
|     private String status; | 
|   | 
|     private String type; | 
|   | 
|     private String info; | 
|   | 
|     private String channelId; | 
|   | 
|     private Map<Object, Object> mapInfo = new HashMap<>(); | 
|   | 
|     private List<?> row; | 
|   | 
|     public static ResponseBean ok(String type, String info) { | 
|         ResponseBean responseBean = new ResponseBean(); | 
|         responseBean.status = SUCCESS; | 
|         responseBean.type = type; | 
|         responseBean.info = info; | 
|         return responseBean; | 
|     } | 
|   | 
|     public String getStatus() { | 
|         return status; | 
|     } | 
|   | 
|     public void setStatus(String status) { | 
|         this.status = status; | 
|     } | 
|   | 
|     public String getType() { | 
|         return type; | 
|     } | 
|   | 
|     public void setType(String type) { | 
|         this.type = type; | 
|     } | 
|   | 
|     public String getInfo() { | 
|         return info; | 
|     } | 
|   | 
|     public void setInfo(String info) { | 
|         this.info = info; | 
|     } | 
|   | 
|     public String getChannelId() { | 
|         return channelId; | 
|     } | 
|   | 
|     public void setChannelId(String channelId) { | 
|         this.channelId = channelId; | 
|     } | 
|   | 
|     public Map<Object, Object> getMapInfo() { | 
|         return mapInfo; | 
|     } | 
|   | 
|     public void setMapInfo(Map<Object, Object> mapInfo) { | 
|         this.mapInfo = mapInfo; | 
|     } | 
|   | 
|     public void putInfo(Object key, Object value) { | 
|         this.mapInfo.put(key, value); | 
|     } | 
|   | 
|     public List<?> getRow() { | 
|         return row; | 
|     } | 
|   | 
|     public void setRow(List<?> row) { | 
|         this.row = row; | 
|     } | 
| } |