fix(测试计划): 去除测试计划domain联合组件的Id注解

去除测试计划domain联合组件的Id注解
This commit is contained in:
song-tianyang 2023-05-24 16:42:13 +08:00 committed by 建国
parent cb0f4a8344
commit aa7cd23e83
2 changed files with 0 additions and 6 deletions

View File

@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
@ -15,12 +14,10 @@ import java.io.Serializable;
@Data
public class TestPlanFollow implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_follow.test_plan_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
private String testPlanId;
@Id
@NotBlank(message = "{test_plan_follow.user_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "用户ID", required = true, allowableValues = "range[1, 50]")
private String userId;

View File

@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;
import java.io.Serializable;
@ -15,12 +14,10 @@ import java.io.Serializable;
@Data
public class TestPlanPrincipal implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@NotBlank(message = "{test_plan_principal.test_plan_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]")
private String testPlanId;
@Id
@NotBlank(message = "{test_plan_principal.user_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "用户ID", required = true, allowableValues = "range[1, 50]")
private String userId;