| | |
| | | this.time = time; |
| | | } |
| | | |
| | | public ResponseMsg(HttpStatus code, int count, T result) { |
| | | public ResponseMsg(HttpStatus code, long count, T result) { |
| | | this.code = code.getValue(); |
| | | this.msg = this.code == 200 ? "成功" : "失败"; |
| | | this.count = count; |
| | |
| | | this.time = System.currentTimeMillis(); |
| | | } |
| | | |
| | | public ResponseMsg(HttpStatus code, String msg, int count, T result) { |
| | | public ResponseMsg(HttpStatus code, String msg, long count, T result) { |
| | | this.code = code.getValue(); |
| | | this.msg = msg; |
| | | this.count = count; |
| | |
| | | this.time = System.currentTimeMillis(); |
| | | } |
| | | |
| | | public ResponseMsg(int code, String msg, int count, T result, long time) { |
| | | public ResponseMsg(int code, String msg, long count, T result, long time) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | this.count = count; |
| | |
| | | |
| | | private String msg; |
| | | |
| | | private int count; |
| | | private long count; |
| | | |
| | | private T result; |
| | | |
| | |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public int getCount() { |
| | | public long getCount() { |
| | | return count; |
| | | } |
| | | |
| | | public void setCount(int count) { |
| | | public void setCount(long count) { |
| | | this.count = count; |
| | | } |
| | | |