chore: add equals and hashcode anno

This commit is contained in:
CaptainB 2023-07-04 12:35:37 +08:00 committed by 刘瑞斌
parent dff51e3d6e
commit 13da0485f7
4 changed files with 8 additions and 0 deletions

View File

@ -6,11 +6,13 @@ import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size; import jakarta.validation.constraints.Size;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* @author jianxing * @author jianxing
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false)
public class UserRoleRelationUpdateRequest extends GlobalUserRoleRelationUpdateRequest { public class UserRoleRelationUpdateRequest extends GlobalUserRoleRelationUpdateRequest {
/** /**

View File

@ -1,8 +1,10 @@
package io.metersphere.system.dto.excel; package io.metersphere.system.dto.excel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
@Data @Data
@EqualsAndHashCode(callSuper = false)
public class UserExcelRowDTO extends UserExcel { public class UserExcelRowDTO extends UserExcel {
public int dataIndex; public int dataIndex;
public String errorMessage; public String errorMessage;

View File

@ -1,8 +1,10 @@
package io.metersphere.system.dto.request; package io.metersphere.system.dto.request;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
@Data @Data
@EqualsAndHashCode(callSuper = false)
public class UserChangeEnableRequest extends UserBatchProcessRequest { public class UserChangeEnableRequest extends UserBatchProcessRequest {
boolean enable; boolean enable;
} }

View File

@ -5,11 +5,13 @@ import io.metersphere.system.domain.User;
import io.metersphere.system.domain.UserRole; import io.metersphere.system.domain.UserRole;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@Data @Data
@EqualsAndHashCode(callSuper = false)
public class UserTableResponse extends User { public class UserTableResponse extends User {
@Schema(title = "用户所属组织") @Schema(title = "用户所属组织")
private List<Organization> organizationList = new ArrayList<>(); private List<Organization> organizationList = new ArrayList<>();