UserInfoVO.java 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.ruoyi.equity.domain.vo;
  2. import io.swagger.annotations.ApiModelProperty;
  3. import lombok.Builder;
  4. import lombok.Data;
  5. import java.io.Serializable;
  6. import java.util.Objects;
  7. /**
  8. * @Param 封装用户的系统-项目-合同-id信息
  9. * @Author wangwl
  10. * @Date 2024/7/18 16:26
  11. **/
  12. @Data
  13. @Builder
  14. public class UserInfoVO implements Serializable {
  15. @ApiModelProperty("userId")
  16. private Long userId;
  17. @ApiModelProperty("msg")
  18. private String msg;
  19. public UserInfoVO() {
  20. }
  21. public UserInfoVO(Long userId) {
  22. this.userId = userId;
  23. }
  24. public UserInfoVO(Long userId, String msg) {
  25. this.userId = userId;
  26. this.msg = msg;
  27. }
  28. @Override
  29. public boolean equals(Object o) {
  30. if (this == o) return true;
  31. if (o == null || getClass() != o.getClass()) return false;
  32. UserInfoVO that = (UserInfoVO) o;
  33. return Objects.equals(userId, that.userId) && Objects.equals(msg, that.msg);
  34. }
  35. @Override
  36. public int hashCode() {
  37. return Objects.hash(userId, msg);
  38. }
  39. }