Commit f4b3bb5aaa63db3c486e6bed21fe8c5c1ffed5eb

Authored by cherishsince
1 parent 33d77b9b

定义ai模块错误码

yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/exception/enums/ServiceErrorCodeRange.java
... ... @@ -43,4 +43,6 @@ public class ServiceErrorCodeRange {
43 43  
44 44 // 模块 crm 错误码区间 [1-020-000-000 ~ 1-021-000-000)
45 45  
  46 + // 模块 ai 错误码区间 [1-022-000-000 ~ 1-023-000-000)
  47 +
46 48 }
... ...
yudao-module-ai/yudao-module-ai-api/src/main/java/cn/iocoder/yudao/module/ai/ErrorCodeConstants.java 0 → 100644
  1 +package cn.iocoder.yudao.module.ai;
  2 +
  3 +import cn.iocoder.yudao.framework.common.exception.ErrorCode;
  4 +
  5 +/**
  6 + * System 错误码枚举类
  7 + *
  8 + * system 系统,使用 1-002-000-000 段
  9 + */
  10 +public interface ErrorCodeConstants {
  11 +
  12 + // ========== 模块 ai 错误码区间 [1-022-000-000 ~ 1-023-000-000) ==========
  13 +
  14 + ErrorCode AI_MODULE_NOT_SUPPORTED = new ErrorCode(1_022_000_000, "AI模型暂不支持!");
  15 +
  16 +}
... ...