init:初始化项目结构
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright [2022] [https://www.xiaonuo.vip]
|
||||
*
|
||||
* Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
|
||||
*
|
||||
* 1.请不要删除和修改根目录下的LICENSE文件。
|
||||
* 2.请不要删除和修改Snowy源码头部的版权声明。
|
||||
* 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
|
||||
* 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
|
||||
* 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
|
||||
* 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
|
||||
*/
|
||||
package org.nl.controller;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.nl.common.pojo.CommonResult;
|
||||
import org.nl.language.LangBehavior;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@Tag(name = "AGV模块")
|
||||
@RestController()
|
||||
@RequestMapping("/api/agv")
|
||||
@Validated
|
||||
public class AgvStatusController {
|
||||
static {
|
||||
System.out.println("初始化AGV模块------------");
|
||||
}
|
||||
@GetMapping("status")
|
||||
public CommonResult<JSONObject> status() {
|
||||
ArrayList<Object> list = new ArrayList<>();
|
||||
return CommonResult.ok();
|
||||
}
|
||||
}
|
||||
60
nl-agv/src/main/java/org/nl/server/dto/AgvStatus.java
Normal file
60
nl-agv/src/main/java/org/nl/server/dto/AgvStatus.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package org.nl.server.dto;
|
||||
|
||||
public class AgvStatus {
|
||||
/**
|
||||
* 车辆ID
|
||||
*/
|
||||
private String agvId;
|
||||
/**
|
||||
* 车辆类型
|
||||
*/
|
||||
private String type;
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
private String icon;
|
||||
/**
|
||||
* 电量
|
||||
*/
|
||||
private String power;
|
||||
/**
|
||||
* AGV状态未知
|
||||
* 待机中
|
||||
* 关机
|
||||
* 运行中
|
||||
* 交通管制
|
||||
* 任务等待
|
||||
* 充电中
|
||||
* 故障中
|
||||
* 低电量
|
||||
*/
|
||||
private String statusType;
|
||||
/**
|
||||
* 状态类型:1.休息 2.正常运行 3.异常
|
||||
*/
|
||||
private Integer status;
|
||||
/**
|
||||
* 动作状态:请求取货/放货/取货完成。。。
|
||||
*/
|
||||
private String action;
|
||||
/**
|
||||
* 动作交互信息
|
||||
*/
|
||||
private String actionMsg;
|
||||
/**
|
||||
* 任务号
|
||||
*/
|
||||
private String taskCode;
|
||||
/**
|
||||
* 坐标X
|
||||
*/
|
||||
private String x;
|
||||
/**
|
||||
* 坐标Y
|
||||
*/
|
||||
private String y;
|
||||
/**
|
||||
* 航向角
|
||||
*/
|
||||
private String angle;
|
||||
}
|
||||
Reference in New Issue
Block a user