12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package com.yaozhitech.spring5.common.msg;
- /**
- * ${DESCRIPTION}
- *
- * @author wanghaobin
- * @create 2017-06-09 7:32
- */
- public class ListRestResponse<T> {
- String msg;
- T result;
- int count;
- public String getMsg() {
- return msg;
- }
- public void setMsg(String msg) {
- this.msg = msg;
- }
- public T getResult() {
- return result;
- }
- public void setResult(T result) {
- this.result = result;
- }
- public int getCount() {
- return count;
- }
- public void setCount(int count) {
- this.count = count;
- }
- public ListRestResponse count(int count) {
- this.setCount(count);
- return this;
- }
- public ListRestResponse count(Long count) {
- this.setCount(count.intValue());
- return this;
- }
- public ListRestResponse msg(String msg) {
- this.setMsg(msg);
- return this;
- }
- public ListRestResponse result(T result) {
- this.setResult(result);
- return this;
- }
- }
|