添加协议类型定义

This commit is contained in:
houwei 2024-07-12 10:00:48 +08:00
parent f86df95fa9
commit 05a1e90d3c
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,16 @@
package com.das.common.constant;
/**
* 协议类型枚举值
*/
public interface ProtocolTypeIds {
/**
* IEC 104 主协议
*/
Integer IEC_104_MASTER = 1;
/**
* IEC 104 从协议
*/
Integer IEC_104_SLAVER = 2;
}

View File

@ -32,7 +32,7 @@ public class SysAuthority extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 用户ID
* 权限ID
*/
@TableId(value = "id", type = IdType.ASSIGN_ID)
@JsonSerialize(using = ToStringSerializer.class)