BaseResult.java 592 B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.chuanghai.attendance.common.utils;
  2. import lombok.Data;
  3. import java.io.Serializable;
  4. /**
  5. * @Author: codingliang
  6. * @Description: 接口统一返回基类
  7. * @Date: 2021-04-29 12:09
  8. * @Version: V1.0
  9. **/
  10. @Data
  11. public abstract class BaseResult<T> implements Serializable {
  12. /**
  13. * 接口调用结果标识
  14. */
  15. private boolean success = false;
  16. /**
  17. * 接口调用结果信息
  18. */
  19. private String message;
  20. /**
  21. * 接口调用业务码
  22. */
  23. private String code;
  24. /**
  25. * 接口调用返回数据
  26. */
  27. private T data;
  28. }