Browse Source

feat: 日志枚举值定义

master
wally 4 years ago
parent
commit
e9dd909078
  1. 85
      src/config/log.js

85
src/config/log.js

@ -0,0 +1,85 @@
// 功能码
export const CODE = {
BUSINESS_REPORT: {
text: '业务上报',
code: 0,
},
EVENT_REPORT: {
text: '事件上报',
code: 1,
},
NET_PARAM_SETTING_OR_READING: {
code: 2,
text: '联网参数设置或读取',
},
FUNC_PARAM_SETTING_OR_READING: {
code: 3,
text: '功能参数设置或读取',
},
READ_HISTORY_DATA: {
code: 4,
text: '读取历史日志记录',
},
READ_HISTORY_EVENT: {
code: 5,
text: '读取历史事件记录',
},
UPGRADE: {
code: 6,
text: '升级启动、传输、结束',
},
ACK: {
code: 7,
text: '应答帧(固定帧)',
},
OVER: {
code: 8,
text: '结束帧',
},
RESERVED: {
code: 9,
text: '保留',
},
};
// 传输原因
export const REASON = {
None: {
code: 0,
text: '无',
},
ReportData: {
code: 1,
text: '业务主动上报',
},
ReportEvent: {
code: 2,
text: '事件主动上报',
},
History: {
code: 3,
text: '历史数据记录或程序数据',
},
HumanOperator: {
code: 4,
text: '人工上报',
},
};
// 传输方向
export const DIRECTION = {
IACD2SERVER: '上行',
SERVER2IACD: '下行',
};
// 流控
export const DFC = {
CONTINUE: '有后续包',
OVER: '无后续包',
};
// 信息体序
export const INFO_ORDER = {
NoOrder: '无序',
HasOrder: '有序',
};
Loading…
Cancel
Save