5 changed files with 63 additions and 26 deletions
-
13src/main/java/com/iflytop/colortitration/app/controller/CraftsController.java
-
12src/main/java/com/iflytop/colortitration/app/core/state/TubeState.java
-
21src/main/java/com/iflytop/colortitration/app/model/dto/CraftsStartDTO.java
-
22src/main/java/com/iflytop/colortitration/app/model/dto/SetCraftsDTO.java
-
21src/main/java/com/iflytop/colortitration/common/service/CraftsService.java
@ -1,21 +0,0 @@ |
|||||
package com.iflytop.colortitration.app.model.dto; |
|
||||
|
|
||||
import io.swagger.v3.oas.annotations.media.Schema; |
|
||||
import jakarta.validation.constraints.NotNull; |
|
||||
import jakarta.validation.constraints.Positive; |
|
||||
import lombok.Data; |
|
||||
|
|
||||
@Schema(description = "开始工艺") |
|
||||
@Data |
|
||||
public class CraftsStartDTO { |
|
||||
@Positive(message = "工艺ID 必须是正数") |
|
||||
@NotNull |
|
||||
@Schema(description = "工艺id") |
|
||||
private Long craftId; |
|
||||
// |
|
||||
// @Schema(description = "加热区id,非必填,如果不传递则自动分配加热区") |
|
||||
// private HeatModuleCode heatId; |
|
||||
|
|
||||
@Schema(description = "需要加液的试管") |
|
||||
private int[] tubes; |
|
||||
} |
|
@ -0,0 +1,22 @@ |
|||||
|
package com.iflytop.colortitration.app.model.dto; |
||||
|
|
||||
|
import com.iflytop.colortitration.app.common.enums.MultipleModuleCode; |
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import jakarta.validation.constraints.NotNull; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Schema(description = "设置试管工艺") |
||||
|
@Data |
||||
|
public class SetCraftsDTO { |
||||
|
@NotNull |
||||
|
@Schema(description = "工艺id") |
||||
|
private Long craftId; |
||||
|
|
||||
|
@Schema(description = "可以使用的滴定模块") |
||||
|
private List<MultipleModuleCode> moduleCodes; |
||||
|
|
||||
|
@Schema(description = "试管编号") |
||||
|
private List<Integer> tubeNums; |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue