request lombok

This commit is contained in:
Captain.B 2020-05-12 15:39:23 +08:00
parent d9f6e6147e
commit 59a61ca6a8
25 changed files with 115 additions and 275 deletions

View File

@ -1,24 +1,11 @@
package io.metersphere.controller.request; package io.metersphere.controller.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class LoginRequest { public class LoginRequest {
private String username; private String username;
private String password; private String password;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
} }

View File

@ -1,8 +1,10 @@
package io.metersphere.controller.request; package io.metersphere.controller.request;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
@Data @Getter
@Setter
public class OrderRequest { public class OrderRequest {
private String name; private String name;
private String type; private String type;

View File

@ -1,13 +1,10 @@
package io.metersphere.controller.request; package io.metersphere.controller.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class OrganizationRequest { public class OrganizationRequest {
private String name; private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -1,22 +1,11 @@
package io.metersphere.controller.request; package io.metersphere.controller.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ProjectRequest { public class ProjectRequest {
private String workspaceId; private String workspaceId;
private String name; private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getWorkspaceId() {
return workspaceId;
}
public void setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
}
} }

View File

@ -1,22 +1,11 @@
package io.metersphere.controller.request; package io.metersphere.controller.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ReportRequest { public class ReportRequest {
private String name; private String name;
private String workspaceId; private String workspaceId;
public String getWorkspaceId() {
return workspaceId;
}
public void setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -1,32 +1,12 @@
package io.metersphere.controller.request; package io.metersphere.controller.request;
public class UserRequest { import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class UserRequest {
private String id; private String id;
private String name; private String name;
private String email; private String email;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
} }

View File

@ -1,22 +1,11 @@
package io.metersphere.controller.request; package io.metersphere.controller.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class WorkspaceRequest { public class WorkspaceRequest {
private String organizationId; private String organizationId;
private String name; private String name;
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -1,34 +1,15 @@
package io.metersphere.controller.request.member; package io.metersphere.controller.request.member;
import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
@Getter
@Setter
public class AddMemberRequest { public class AddMemberRequest {
private String workspaceId; private String workspaceId;
private List<String> userIds; private List<String> userIds;
private List<String> roleIds; private List<String> roleIds;
public List<String> getRoleIds() {
return roleIds;
}
public void setRoleIds(List<String> roleIds) {
this.roleIds = roleIds;
}
public String getWorkspaceId() {
return workspaceId;
}
public void setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
}
public List<String> getUserIds() {
return userIds;
}
public void setUserIds(List<String> userIds) {
this.userIds = userIds;
}
} }

View File

@ -1,9 +1,12 @@
package io.metersphere.controller.request.member; package io.metersphere.controller.request.member;
import lombok.Data; import lombok.Getter;
@Data import lombok.Setter;
@Getter
@Setter
public class EditPassWordRequest { public class EditPassWordRequest {
private String password; private String password;
private String newpassword; private String newpassword;
private String id; private String id;
} }

View File

@ -1,23 +1,11 @@
package io.metersphere.controller.request.member; package io.metersphere.controller.request.member;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class QueryMemberRequest { public class QueryMemberRequest {
private String name; private String name;
private String workspaceId; private String workspaceId;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getWorkspaceId() {
return workspaceId;
}
public void setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
}
} }

View File

@ -1,34 +1,15 @@
package io.metersphere.controller.request.organization; package io.metersphere.controller.request.organization;
import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
@Getter
@Setter
public class AddOrgMemberRequest { public class AddOrgMemberRequest {
private String organizationId; private String organizationId;
private List<String> userIds; private List<String> userIds;
private List<String> roleIds; private List<String> roleIds;
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public List<String> getUserIds() {
return userIds;
}
public void setUserIds(List<String> userIds) {
this.userIds = userIds;
}
public List<String> getRoleIds() {
return roleIds;
}
public void setRoleIds(List<String> roleIds) {
this.roleIds = roleIds;
}
} }

View File

@ -1,24 +1,11 @@
package io.metersphere.controller.request.organization; package io.metersphere.controller.request.organization;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class QueryOrgMemberRequest { public class QueryOrgMemberRequest {
private String name; private String name;
private String organizationId; private String organizationId;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
} }

View File

@ -1,14 +1,10 @@
package io.metersphere.controller.request.resourcepool; package io.metersphere.controller.request.resourcepool;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class QueryResourcePoolRequest { public class QueryResourcePoolRequest {
private String name; private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -1,8 +1,10 @@
package io.metersphere.controller.request.testCaseReport; package io.metersphere.controller.request.testCaseReport;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
@Data @Getter
@Setter
public class CreateReportRequest { public class CreateReportRequest {
String planId; String planId;
String templateId; String templateId;

View File

@ -1,9 +1,11 @@
package io.metersphere.controller.request.testCaseReport; package io.metersphere.controller.request.testCaseReport;
import io.metersphere.base.domain.TestCaseReportTemplate; import io.metersphere.base.domain.TestCaseReportTemplate;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
@Data @Getter
@Setter
public class QueryTemplateRequest extends TestCaseReportTemplate { public class QueryTemplateRequest extends TestCaseReportTemplate {
Boolean queryDefault; Boolean queryDefault;
} }

View File

@ -1,26 +1,14 @@
package io.metersphere.controller.request.testcase; package io.metersphere.controller.request.testcase;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@Getter
@Setter
public class PlanCaseRelevanceRequest { public class PlanCaseRelevanceRequest {
private String planId; private String planId;
private List<String> testCaseIds = new ArrayList<>(); private List<String> testCaseIds = new ArrayList<>();
public String getPlanId() {
return planId;
}
public void setPlanId(String planId) {
this.planId = planId;
}
public List<String> getTestCaseIds() {
return testCaseIds;
}
public void setTestCaseIds(List<String> testCaseIds) {
this.testCaseIds = testCaseIds;
}
} }

View File

@ -2,12 +2,14 @@ package io.metersphere.controller.request.testcase;
import io.metersphere.base.domain.TestCase; import io.metersphere.base.domain.TestCase;
import io.metersphere.controller.request.OrderRequest; import io.metersphere.controller.request.OrderRequest;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@Data @Getter
@Setter
public class QueryTestCaseRequest extends TestCase { public class QueryTestCaseRequest extends TestCase {
private List<String> nodeIds; private List<String> nodeIds;

View File

@ -1,19 +1,12 @@
package io.metersphere.controller.request.testcase; package io.metersphere.controller.request.testcase;
import io.metersphere.base.domain.TestCase;
import io.metersphere.base.domain.TestPlan; import io.metersphere.base.domain.TestPlan;
import lombok.Getter;
import lombok.Setter;
import java.util.List; @Getter
@Setter
public class QueryTestPlanRequest extends TestPlan { public class QueryTestPlanRequest extends TestPlan {
private boolean recent = false; private boolean recent = false;
public boolean isRecent() {
return recent;
}
public void setRecent(boolean recent) {
this.recent = recent;
}
} }

View File

@ -1,19 +1,13 @@
package io.metersphere.controller.request.testcase; package io.metersphere.controller.request.testcase;
import io.metersphere.base.domain.TestCaseWithBLOBs; import io.metersphere.base.domain.TestCaseWithBLOBs;
import io.metersphere.base.domain.TestPlanTestCase; import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
@Getter
@Setter
public class TestCaseBatchRequest extends TestCaseWithBLOBs { public class TestCaseBatchRequest extends TestCaseWithBLOBs {
private List<String> ids; private List<String> ids;
public List<String> getIds() {
return ids;
}
public void setIds(List<String> ids) {
this.ids = ids;
}
} }

View File

@ -1,14 +1,13 @@
package io.metersphere.controller.request.testcase; package io.metersphere.controller.request.testcase;
import io.metersphere.base.domain.TestCase;
import io.metersphere.base.domain.TestPlanTestCase; import io.metersphere.base.domain.TestPlanTestCase;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
@Data @Getter
@Setter
public class TestPlanCaseBatchRequest extends TestPlanTestCase { public class TestPlanCaseBatchRequest extends TestPlanTestCase {
private List<String> ids; private List<String> ids;
} }

View File

@ -1,17 +1,13 @@
package io.metersphere.controller.request.testplan; package io.metersphere.controller.request.testplan;
import io.metersphere.base.domain.FileMetadata; import io.metersphere.base.domain.FileMetadata;
import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
@Getter
@Setter
public class EditTestPlanRequest extends TestPlanRequest { public class EditTestPlanRequest extends TestPlanRequest {
private List<FileMetadata> updatedFileList; private List<FileMetadata> updatedFileList;
public List<FileMetadata> getUpdatedFileList() {
return updatedFileList;
}
public void setUpdatedFileList(List<FileMetadata> updatedFileList) {
this.updatedFileList = updatedFileList;
}
} }

View File

@ -1,22 +1,11 @@
package io.metersphere.controller.request.testplan; package io.metersphere.controller.request.testplan;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class FileOperationRequest { public class FileOperationRequest {
private String id; private String id;
private String name; private String name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -1,8 +1,10 @@
package io.metersphere.controller.request.testplan; package io.metersphere.controller.request.testplan;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
@Data @Getter
@Setter
public class QueryTestPlanRequest extends TestPlanRequest { public class QueryTestPlanRequest extends TestPlanRequest {
private String workspaceId; private String workspaceId;
private boolean recent = false; // 表示查询最近的测试 private boolean recent = false; // 表示查询最近的测试

View File

@ -1,8 +1,10 @@
package io.metersphere.controller.request.testplan; package io.metersphere.controller.request.testplan;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
@Data @Getter
@Setter
public class TestPlanRequest { public class TestPlanRequest {
private String id; private String id;

View File

@ -2,12 +2,14 @@ package io.metersphere.controller.request.testplancase;
import io.metersphere.base.domain.TestPlanTestCase; import io.metersphere.base.domain.TestPlanTestCase;
import io.metersphere.controller.request.OrderRequest; import io.metersphere.controller.request.OrderRequest;
import lombok.Data; import lombok.Getter;
import lombok.Setter;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@Data @Getter
@Setter
public class QueryTestPlanCaseRequest extends TestPlanTestCase { public class QueryTestPlanCaseRequest extends TestPlanTestCase {
private List<String> nodeIds; private List<String> nodeIds;