修改 websocket 连接逻辑.

This commit is contained in:
lijiahangmax
2024-03-22 01:04:30 +08:00
parent 5609f320da
commit 1e9805c99f
32 changed files with 88 additions and 64 deletions

View File

@@ -97,7 +97,7 @@ public class CodeGeneratorEngine extends VelocityTemplateEngine {
// http 注释标识
objectMap.put("httpComment", "###");
// 版本
objectMap.put("since", OrionOpsProConst.VERSION);
objectMap.put("version", OrionOpsProConst.VERSION);
// api 注释
Map<String, String> apiComment = new HashMap<>(12);
String comment = tableInfo.getComment();

View File

@@ -12,7 +12,7 @@ import java.math.*;
* $!{table.comment} 缓存对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit;
* $!{table.comment}缓存 key
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
public interface ${type}CacheKeyDefine {

View File

@@ -32,7 +32,7 @@ import java.util.List;
* $!{table.comment} api
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Tag(name = "${package.ModuleName} - $!{table.comment}服务")

View File

@@ -13,7 +13,7 @@ import java.util.List;
* $!{table.comment} 内部对象转换器
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Mapper

View File

@@ -12,7 +12,7 @@ import java.math.*;
* $!{table.comment} 实体对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -15,7 +15,7 @@ import java.math.*;
* $!{table.comment} 导出对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -18,7 +18,7 @@ import java.math.*;
* $!{table.comment} 创建请求对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -13,7 +13,7 @@ import java.math.*;
* $!{table.comment} 查询请求对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -18,7 +18,7 @@ import java.math.*;
* $!{table.comment} 更新请求对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -11,7 +11,7 @@ import java.math.*;
* $!{table.comment} 视图响应对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -11,7 +11,7 @@ import ${mapperAnnotationClass.name};
* $!{table.comment} Mapper 接口
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
#if(${mapperAnnotationClass})

View File

@@ -10,7 +10,7 @@ import static com.orion.ops.framework.biz.operator.log.core.enums.OperatorRiskLe
* $!{table.comment} 操作日志类型
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Module("${package.ModuleName}:${typeHyphen}")

View File

@@ -43,7 +43,7 @@ import java.util.stream.Collectors;
* $!{table.comment} 服务实现类
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Slf4j

View File

@@ -13,7 +13,7 @@ import java.util.List;
* $!{table.comment} 服务类
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
public interface ${table.serviceName} {

View File

@@ -26,7 +26,7 @@ import java.util.stream.Collectors;
* $!{table.comment} 对外服务实现类
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Slf4j

View File

@@ -10,7 +10,7 @@ import java.util.List;
* $!{table.comment} 对外服务类
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
public interface ${type}Api {

View File

@@ -16,7 +16,7 @@ import java.util.List;
* $!{table.comment} 对外服务对象转换器
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Mapper

View File

@@ -17,7 +17,7 @@ import java.math.*;
* $!{table.comment} 创建请求业务对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -15,7 +15,7 @@ import java.math.*;
* $!{table.comment} 查询请求业务对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -17,7 +17,7 @@ import java.math.*;
* $!{table.comment} 更新请求业务对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -11,7 +11,7 @@ import java.math.*;
* $!{table.comment} 业务对象
*
* @author ${author}
* @version ${since}
* @version ${version}
* @since ${date}
*/
@Data

View File

@@ -20,9 +20,9 @@ import static org.junit.jupiter.api.Assertions.*;
/**
* $!{table.comment} 对外服务单元测试
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/8/23 10:36
* @author ${author}
* @version ${version}
* @since ${date}
*/
@Slf4j
@Import({${type}ApiImpl.class, ${type}ServiceImpl.class})

View File

@@ -21,9 +21,9 @@ import static org.junit.jupiter.api.Assertions.*;
/**
* $!{table.comment} 服务单元测试
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/8/23 10:36
* @author ${author}
* @version ${version}
* @since ${date}
*/
@Slf4j
@Import(${type}ServiceImpl.class)