实时通讯

This commit is contained in:
高保安
2025-12-01 10:08:41 +08:00
commit e6623be1e5
140 changed files with 6032 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package com.realtime.exception;
import com.realtime.sysconst.enumConst.ResultEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends RuntimeException {
private Integer code;
private ResultEnum result;
public BusinessException(ResultEnum result) {
super(result.getMsg());
this.code = result.getCode();
}
public BusinessException(String msg) {
super(msg);
}
}