9 changed files with 232 additions and 3 deletions
			
			
		@ -0,0 +1,35 @@
					 | 
				
			||||
package com.hnac.hzinfo.inspect.ai.dto.robot; | 
				
			||||
 | 
				
			||||
 | 
				
			||||
import io.swagger.annotations.ApiModel; | 
				
			||||
import io.swagger.annotations.ApiModelProperty; | 
				
			||||
import lombok.Data; | 
				
			||||
import lombok.EqualsAndHashCode; | 
				
			||||
 | 
				
			||||
import javax.validation.constraints.NotBlank; | 
				
			||||
import java.io.Serializable; | 
				
			||||
 | 
				
			||||
@Data | 
				
			||||
@EqualsAndHashCode | 
				
			||||
@ApiModel(value = "机器人设备实例DTO对象",description = "机器人设备实例DTO对象") | 
				
			||||
public class RobotInstanceDTO implements Serializable { | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("设备编号") | 
				
			||||
    @NotBlank(message = "机器人编号不能为空") | 
				
			||||
    private String deviceCode; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("机器人名称") | 
				
			||||
    @NotBlank(message = "机器人名称不能为空") | 
				
			||||
    private String deviceName; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("模型标识") | 
				
			||||
    private String modelSignage; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("站点编号") | 
				
			||||
    @NotBlank(message = "站点编号不能为空") | 
				
			||||
    private String projectId; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("标准设备需要传入密钥") | 
				
			||||
    private String secretKey; | 
				
			||||
 | 
				
			||||
} | 
				
			||||
@ -0,0 +1,45 @@
					 | 
				
			||||
package com.hnac.hzinfo.inspect.ai.vo.robot; | 
				
			||||
 | 
				
			||||
 | 
				
			||||
import com.fasterxml.jackson.annotation.JsonIgnore; | 
				
			||||
import com.hnac.hzinfo.sdk.v5.device.vo.RealDataRedisVO; | 
				
			||||
import io.swagger.annotations.ApiModelProperty; | 
				
			||||
import lombok.Data; | 
				
			||||
import lombok.EqualsAndHashCode; | 
				
			||||
 | 
				
			||||
import java.io.Serializable; | 
				
			||||
 | 
				
			||||
@Data | 
				
			||||
@EqualsAndHashCode | 
				
			||||
public class RobotRealDataVO extends RealDataRedisVO implements Serializable { | 
				
			||||
    @ApiModelProperty("数据上送时间") | 
				
			||||
    private String ts; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("实时数据") | 
				
			||||
    private String v; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("上送数据质量,0为有效") | 
				
			||||
    private String q; | 
				
			||||
 | 
				
			||||
    @JsonIgnore | 
				
			||||
    private String n; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("物模型属性ID") | 
				
			||||
    private String attrId; | 
				
			||||
 | 
				
			||||
    @JsonIgnore | 
				
			||||
    private String realId; | 
				
			||||
 | 
				
			||||
    @JsonIgnore | 
				
			||||
    private Long attrType; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("物模型属性标识") | 
				
			||||
    @JsonIgnore | 
				
			||||
    private String signage; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("物模型属性名称") | 
				
			||||
    private String attrName; | 
				
			||||
 | 
				
			||||
    @ApiModelProperty("启停状态") | 
				
			||||
    private Integer state; | 
				
			||||
} | 
				
			||||
@ -0,0 +1,11 @@
					 | 
				
			||||
package com.hnac.hzinfo.inspect.constants; | 
				
			||||
 | 
				
			||||
public interface ParamConstants { | 
				
			||||
 | 
				
			||||
    /**机器人模型编号**/ | 
				
			||||
    String ROBOT_MODEL_CODE = "robot.model.code"; | 
				
			||||
 | 
				
			||||
    /**机器人状态属性**/ | 
				
			||||
    String ROBOT_DEVICE_ATTR_ENABLE = "robot.device.attr.enable"; | 
				
			||||
 | 
				
			||||
} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue