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.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author jianxing
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class UserRoleRelationUpdateRequest extends GlobalUserRoleRelationUpdateRequest {
/**

View File

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

View File

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

View File

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