chore: add equals and hashcode anno
This commit is contained in:
parent
dff51e3d6e
commit
13da0485f7
|
@ -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 {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
Loading…
Reference in New Issue