3 changed files with 33 additions and 22 deletions
-
5src/main/java/com/iflytop/handacid/app/controller/TestController.java
-
28src/main/java/com/iflytop/handacid/app/core/state/ChannelState.java
-
22src/main/java/com/iflytop/handacid/app/core/state/DeviceState.java
@ -0,0 +1,28 @@ |
|||
package com.iflytop.handacid.app.core.state; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
|||
import com.iflytop.handacid.app.common.enums.ChannelCode; |
|||
import com.iflytop.handacid.app.common.enums.ChannelStateCode; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
import lombok.RequiredArgsConstructor; |
|||
import org.springframework.context.annotation.Scope; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Schema(description = "通道状态") |
|||
@Data |
|||
@Component |
|||
@Scope("prototype") |
|||
@RequiredArgsConstructor |
|||
@JsonIgnoreProperties(value = {"advisors", "frozen", "preFiltered", "proxyTargetClass", "targetSource", "exposeProxy", "advisorCount", "proxiedInterfaces", "targetClass"}) |
|||
public class ChannelState { |
|||
@Schema(description = "通道code") |
|||
private ChannelCode channelCode; |
|||
|
|||
@Schema(description = "当前通道状态") |
|||
private ChannelStateCode stateCode = ChannelStateCode.IDLE; |
|||
|
|||
@Schema(description = "剩余容量(单位:mL)") |
|||
private Double remainingVolume; |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue