推送二维码被扫信息 消息格式修改

This commit is contained in:
15683799673
2025-09-13 13:46:06 +08:00
parent 26e31014b5
commit 53feebeec0
3 changed files with 10 additions and 6 deletions

View File

@@ -7,21 +7,21 @@ package org.dromara.resource.api.domain;
*/
public enum WebSocketMsgType {
ALARM_MSG(100),
ALARM_MSG("100"),
MOBILE_QRCODE(200);
MOBILE_QRCODE("qrcode");
/**
* 消息类型编码
* 大类型 - 100,200,300,400 累加100
* 小类型 - 101 102 103 累加1
*/
private final Integer code;
private final String code;
WebSocketMsgType(Integer code) {
WebSocketMsgType(String code) {
this.code = code;
}
public Integer getCode() {
public String getCode() {
return code;
}
}