Browse Source

功能代码常量。

tom 3 weeks ago
parent
commit
e63ca326e2
1 changed files with 57 additions and 0 deletions
  1. 57 0
      ruoyi-sim/src/main/java/com/ruoyi/sim/constant/FunCodeConst.java

+ 57 - 0
ruoyi-sim/src/main/java/com/ruoyi/sim/constant/FunCodeConst.java

@@ -0,0 +1,57 @@
+package com.ruoyi.sim.constant;
+
+/**
+ * 功能码。
+ */
+public interface FunCodeConst {
+
+    /** 10xxx 连接状态相关 **/
+
+    /**
+     *
+     * 连接线按钮没有打开。
+     */
+    Integer SWITCH_OFF = 10100;
+
+    /**
+     * 路由器ping不通。
+     */
+    Integer ROUTER_PING_LOST = 10101;
+
+    /**
+     * RS485网关ping不通。
+     */
+    Integer RS_485_GATEWAY_PING_LOST = 10102;
+
+    Integer STUDENT_PC_PING_LOST = 10103;
+
+    /**
+     * 数据库虚拟服务器ping不通。
+     */
+    Integer DB_SERVER_PING_LOST = 10104;
+
+    /**
+     * 后端调用接口失败
+     */
+    Integer BACK_END_SERVER_LOST = 10105;
+
+    /** 20xxx 模拟器状态相关 **/
+
+
+    /** 201xx 0001型模拟器状态相关 **/
+
+    Integer SIM_T_0001_BATTERY_COMPARTMENT_COVER_OPENED = 20130;
+
+    /** 202xx 0002型模拟器状态相关 **/
+
+    /**
+     * 0002型模拟器,充电时间不足。
+     */
+    Integer SIM_T_0002_INSUFFICIENT_CHARGING_TIME = 20230;
+
+    /** 203xx 0003型模拟器状态相关 **/
+
+    /** 30xxx 基础数据问题 **/
+
+    /** 40xxx 报文内容问题 **/
+}