ai-engineering-init 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/.claude/hooks/skill-forced-eval.js +26 -19
  2. package/.claude/skills/leniu-api-development/SKILL.md +1 -1
  3. package/.claude/skills/leniu-architecture-design/SKILL.md +1 -1
  4. package/.claude/skills/leniu-backend-annotations/SKILL.md +1 -1
  5. package/.claude/skills/leniu-brainstorm/SKILL.md +1 -1
  6. package/.claude/skills/leniu-code-patterns/SKILL.md +48 -2
  7. package/.claude/skills/leniu-crud-development/SKILL.md +1 -1
  8. package/.claude/skills/leniu-data-permission/SKILL.md +15 -0
  9. package/.claude/skills/leniu-database-ops/SKILL.md +1 -1
  10. package/.claude/skills/leniu-error-handler/SKILL.md +1 -1
  11. package/.claude/skills/leniu-java-amount-handling/SKILL.md +1 -1
  12. package/.claude/skills/leniu-java-concurrent/SKILL.md +1 -1
  13. package/.claude/skills/leniu-java-entity/SKILL.md +1 -1
  14. package/.claude/skills/leniu-java-export/SKILL.md +1 -1
  15. package/.claude/skills/leniu-java-logging/SKILL.md +1 -1
  16. package/.claude/skills/leniu-java-mq/SKILL.md +1 -1
  17. package/.claude/skills/leniu-java-mybatis/SKILL.md +1 -1
  18. package/.claude/skills/leniu-java-report-query-param/SKILL.md +1 -1
  19. package/.claude/skills/leniu-java-task/SKILL.md +1 -1
  20. package/.claude/skills/leniu-java-total-line/SKILL.md +1 -1
  21. package/.claude/skills/leniu-marketing-price-rule-customizer/SKILL.md +1 -1
  22. package/.claude/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +1 -1
  23. package/.claude/skills/leniu-mealtime/SKILL.md +1 -1
  24. package/.claude/skills/leniu-redis-cache/SKILL.md +15 -0
  25. package/.claude/skills/leniu-report-customization/SKILL.md +549 -0
  26. package/.claude/skills/leniu-security-guard/SKILL.md +1 -1
  27. package/.claude/skills/leniu-utils-toolkit/SKILL.md +1 -1
  28. package/.codex/skills/leniu-api-development/SKILL.md +1 -1
  29. package/.codex/skills/leniu-architecture-design/SKILL.md +5 -1
  30. package/.codex/skills/leniu-backend-annotations/SKILL.md +4 -2
  31. package/.codex/skills/leniu-brainstorm/SKILL.md +1 -1
  32. package/.codex/skills/leniu-code-patterns/SKILL.md +48 -2
  33. package/.codex/skills/leniu-crud-development/SKILL.md +1 -1
  34. package/.codex/skills/leniu-data-permission/SKILL.md +15 -0
  35. package/.codex/skills/leniu-database-ops/SKILL.md +1 -1
  36. package/.codex/skills/leniu-error-handler/SKILL.md +1 -1
  37. package/.codex/skills/leniu-java-amount-handling/SKILL.md +1 -1
  38. package/.codex/skills/leniu-java-concurrent/SKILL.md +1 -1
  39. package/.codex/skills/leniu-java-entity/SKILL.md +1 -1
  40. package/.codex/skills/leniu-java-export/SKILL.md +24 -23
  41. package/.codex/skills/leniu-java-logging/SKILL.md +1 -1
  42. package/.codex/skills/leniu-java-mq/SKILL.md +1 -1
  43. package/.codex/skills/leniu-java-mybatis/SKILL.md +1 -1
  44. package/.codex/skills/leniu-java-report-query-param/SKILL.md +1 -1
  45. package/.codex/skills/leniu-java-task/SKILL.md +1 -1
  46. package/.codex/skills/leniu-java-total-line/SKILL.md +21 -20
  47. package/.codex/skills/leniu-marketing-price-rule-customizer/SKILL.md +1 -1
  48. package/.codex/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +1 -1
  49. package/.codex/skills/leniu-mealtime/SKILL.md +1 -1
  50. package/.codex/skills/leniu-redis-cache/SKILL.md +15 -0
  51. package/.codex/skills/leniu-report-customization/SKILL.md +549 -0
  52. package/.codex/skills/leniu-security-guard/SKILL.md +1 -1
  53. package/.codex/skills/leniu-utils-toolkit/SKILL.md +4 -2
  54. package/AGENTS.md +26 -26
  55. package/package.json +1 -1
@@ -96,25 +96,32 @@ const instructions = `## 强制技能激活流程(必须执行)
96
96
  - sms-mail: 短信/邮件/SMS/验证码/通知/SMS4j/MailUtils/邮件发送/短信发送
97
97
  - social-login: 第三方登录/微信登录/QQ登录/OAuth/OAuth2/JustAuth/社交登录/扫码登录/授权登录
98
98
  - tenant-management: 多租户/租户隔离/TenantEntity/TenantHelper/租户ID/tenantId/跨租户/动态租户/SaaS
99
- - leniu-java-amount-handling: leniu-金额/leniu-分转元/leniu-元转分/leniu-Long金额/leniu-money/fen/leniu-yunshitang/net.xnzn
100
- - leniu-java-code-style: leniu-代码风格/leniu-命名规范/leniu-类命名/leniu-方法命名/leniu-包结构/leniu-yunshitang/net.xnzn
101
- - leniu-java-concurrent: leniu-并发/leniu-CompletableFuture/leniu-线程池/leniu-并发安全/leniu-分布式锁/leniu-yunshitang/net.xnzn
102
- - leniu-java-entity: leniu-Entity/leniu-VO/leniu-DTO/leniu-Param/leniu-实体类/leniu-@TableName/leniu-@TableField/leniu-yunshitang/net.xnzn
103
- - leniu-java-export: leniu-导出/leniu-Export/leniu-Excel导出/leniu-异步导出/leniu-@ExcelProperty/leniu-yunshitang/net.xnzn
104
- - leniu-java-logging: leniu-日志/leniu-@Slf4j/leniu-log.info/leniu-log.error/leniu-日志级别/leniu-yunshitang/net.xnzn
105
- - leniu-java-mq: leniu-消息队列/leniu-MQ/leniu-MqUtil/leniu-@MqConsumer/leniu-延迟消息/leniu-yunshitang/net.xnzn
106
- - leniu-java-mybatis: leniu-MyBatis/leniu-MyBatisPlus/leniu-Mapper/leniu-LambdaQueryWrapper/leniu-XML映射/leniu-yunshitang/net.xnzn
107
- - leniu-java-report-query-param: leniu-报表查询/leniu-Param类/leniu-分页参数/leniu-时间范围/leniu-ReportBaseParam/leniu-yunshitang/net.xnzn
108
- - leniu-java-task: leniu-定时任务/leniu-XXL-Job/leniu-@XxlJob/leniu-TenantLoader/leniu-任务调度/leniu-yunshitang/net.xnzn
109
- - leniu-java-total-line: leniu-合计行/leniu-totalLine/leniu-报表合计/leniu-SUM合计/leniu-ReportBaseTotalVO/leniu-yunshitang/net.xnzn
110
- - leniu-crud-development: leniu-yunshitang/leniu-CRUD/leniu-增删改查/leniu-新建模块/leniu-Entity/leniu-DTO/leniu-VO/leniu-Service/leniu-Mapper/leniu-Controller/leniu-分页查询/LeRequest/PageDTO/net.xnzn/leniu-yunshitang
111
- - leniu-database-ops: leniu-yunshitang/leniu-数据库/leniu-SQL/leniu-建表/leniu-Entity/leniu-双库/leniu-商户库/leniu-系统库/net.xnzn/leniu-yunshitang
112
- - leniu-utils-toolkit: leniu-yunshitang/leniu-工具类/leniu-BeanUtil/leniu-StrUtil/leniu-CollUtil/leniu-ObjectUtil/leniu-RedisUtil/leniu-JacksonUtil/leniu-LeBeanUtil/net.xnzn/leniu-yunshitang
113
- - leniu-error-handler: leniu-yunshitang/leniu-异常/leniu-LeException/leniu-全局异常/leniu-参数校验/leniu-日志/leniu-错误码/leniu-I18n/leniu-国际化/net.xnzn/leniu-yunshitang
114
- - leniu-backend-annotations: leniu-yunshitang/leniu-注解/leniu-@RequiresAuthentication/leniu-@RequiresGuest/leniu-@Validated/leniu-@NotNull/leniu-@Api/leniu-@ApiOperation/leniu-@ApiModelProperty/leniu-分组校验/leniu-InsertGroup/leniu-UpdateGroup/net.xnzn/leniu-yunshitang
115
- - leniu-api-development: leniu-API/leniu-接口/leniu-Controller/leniu-RESTful/LeResult/云食堂接口/云食堂API/leiu-yunshitang
116
- - leniu-brainstorm: leniu头脑风暴/云食堂方案/leniu怎么设计/云食堂讨论/leniu创意/leniu方案探索/leniu功能规划
117
- - leniu-architecture-design: leniu-架构/云食堂架构/双库架构/商户库/系统库/net.xnzn/pigx框架
99
+ - leniu-java-amount-handling: 金额处理/分转元/元转分/Long金额/money/fen/BigDecimal金额/金额字段
100
+ - leniu-java-concurrent: 并发/CompletableFuture/线程池/ThreadPool/并发安全/异步处理/synchronized
101
+ - leniu-java-entity: Entity实体类/VO视图对象/DTO数据传输/Param参数类/@TableName/@TableField/审计字段/字段映射
102
+ - leniu-java-export: 导出/Excel导出/异步导出/分页导出/@ExcelProperty/exportApi/数据导出
103
+ - leniu-java-logging: 日志/@Slf4j/log.info/log.error/log.debug/日志级别/logback/日志格式
104
+ - leniu-java-mq: 消息队列/MQ/MqUtil/@MqConsumer/延迟消息/消息重试/事务消息
105
+ - leniu-java-mybatis: MyBatis/MyBatisPlus/Mapper/LambdaQueryWrapper/XML映射/动态SQL/BaseMapper/@Select/resultMap
106
+ - leniu-java-report-query-param: 报表查询入参/Param类/分页参数/时间范围查询/ReportBaseParam/exportCols
107
+ - leniu-java-task: 定时任务/XXL-Job/@XxlJob/TenantLoader/任务调度/分布式定时
108
+ - leniu-java-total-line: 合计行/totalLine/报表合计/SUM合计/ReportBaseTotalVO/合计查询
109
+ - leniu-report-customization: 定制报表/汇总报表/report_order_info/report_order_detail/report_account_flow/退款汇总/消费金额统计/订单报表/流水报表
110
+ - leniu-crud-development: CRUD/增删改查/新建模块/Business层/Service/Mapper/Controller/分页查询/LeRequest/PageDTO/PageVO/事务管理
111
+ - leniu-database-ops: 数据库/SQL/建表/双库/商户库/系统库/审计字段/crby/crtime/del_flag
112
+ - leniu-utils-toolkit: 工具类/BeanUtil/StrUtil/CollUtil/ObjectUtil/RedisUtil/JacksonUtil/LeBeanUtil
113
+ - leniu-error-handler: 异常处理/LeException/全局异常/参数校验/错误码/I18n/国际化/throw
114
+ - leniu-backend-annotations: @RequiresAuthentication/@RequiresGuest/@Validated/@NotNull/@Api/@ApiOperation/@ApiModelProperty/分组校验/InsertGroup/UpdateGroup
115
+ - leniu-api-development: API接口/Controller/RESTful/LeResult/LeResponse/LeRequest/接口开发/路由前缀
116
+ - leniu-brainstorm: 头脑风暴/方案设计/怎么设计/创意探索/功能规划/可行性分析
117
+ - leniu-architecture-design: 架构设计/双库架构/商户库/系统库/pigx框架/四层架构/模块划分/Business层
118
+ - leniu-code-patterns: 代码禁令/代码规范/命名规范/代码风格/Git提交规范/包结构/禁止写法/审计字段规范/delFlag/crby
119
+ - leniu-data-permission: 多租户/数据权限/@UseSystem/Executors.doInTenant/readInSystem/TenantContextHolder/MERCHANT-ID/双库隔离/数据源切换
120
+ - leniu-redis-cache: Redis/缓存/RedisUtil/分布式锁/RLock/getLock/setNx/ZSet/限流/缓存击穿
121
+ - leniu-security-guard: 安全认证/SQL注入防护/XSS防护/数据脱敏/SM4加密/接口安全/限流
122
+ - leniu-mealtime: 餐次/mealtime/mealtimeType/早餐/午餐/晚餐/下午茶/夜宵/AllocMealtimeTypeEnum
123
+ - leniu-marketing-price-rule-customizer: 营销计费/计价规则/RulePriceHandler/RulePriceEnum/折扣规则/满减规则/限额规则/补贴规则
124
+ - leniu-marketing-recharge-rule-customizer: 营销充值/充值规则/RuleRechargeHandler/RuleRechargeEnum/满赠规则/充值赠送/管理费规则
118
125
  - openspec-new-change: 新建变更/开始新功能/opsx:new/openspec new/创建变更
119
126
  - openspec-ff-change: 快速推进/快速生成所有制品/opsx:ff/openspec ff/fast-forward
120
127
  - openspec-apply-change: 实现任务/开始实现/opsx:apply/openspec apply/执行变更
@@ -12,7 +12,7 @@ description: |
12
12
 
13
13
  适用项目:leniu-tengyun-core(云食堂项目)
14
14
 
15
- 触发词:leniu-API、leniu-接口、leniu-Controller、leniu-RESTful、LeResult、云食堂接口、云食堂API
15
+ 触发词:API接口、Controller、RESTful、LeResult、LeResponse、LeRequest、接口开发、路由前缀
16
16
  ---
17
17
 
18
18
  # leiu-yunshitang-core API 接口开发规范
@@ -14,7 +14,7 @@ description: |
14
14
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
15
15
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
16
16
 
17
- 触发词:leniu架构、云食堂架构、双库架构、商户库、系统库、net.xnzn、pigx框架、leniu-yunshitang、leniu-tengyun-core
17
+ 触发词:架构设计、双库架构、商户库、系统库、pigx框架、四层架构、模块划分、Business层
18
18
  ---
19
19
 
20
20
  # leniu-yunshitang-core 架构设计指南
@@ -13,7 +13,7 @@ description: |
13
13
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
14
14
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
15
15
 
16
- 触发词:leniu-注解、leniu-@RequiresAuthentication、leniu-@RequiresGuest、leniu-@Validated、leniu-@NotNull、leniu-@Api、leniu-@ApiOperation、leniu-@ApiModelProperty、leniu-分组校验、leniu-InsertGroup、leniu-UpdateGroup、net.xnzn、leniu-yunshitang、leniu-yunshitang-core、云食堂注解
16
+ 触发词:@RequiresAuthentication、@RequiresGuest、@Validated、@NotNull、@Api、@ApiOperation、@ApiModelProperty、分组校验、InsertGroup、UpdateGroup
17
17
  ---
18
18
 
19
19
  # leniu-yunshitang-core 后端注解指南
@@ -14,7 +14,7 @@ description: |
14
14
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
15
15
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
16
16
 
17
- 触发词:leniu头脑风暴、云食堂方案、leniu怎么设计、云食堂讨论、leniu创意、leniu方案探索、leniu功能规划、leniu-yunshitang
17
+ 触发词:头脑风暴、方案设计、怎么设计、创意探索、功能规划、可行性分析
18
18
  ---
19
19
 
20
20
  # leniu-yunshitang-core 头脑风暴框架
@@ -10,8 +10,7 @@ description: |
10
10
  - 避免过度工程
11
11
  - 代码风格检查
12
12
 
13
- 触发词:规范、禁止、命名、Git提交、代码风格、不能用、不允许、包名、架构、leniupigx
14
- 注意:leniu CRUD 开发规范请激活 leniu-crud-development,API 开发规范请激活 leniu-api-development。
13
+ 触发词:代码禁令、代码规范、命名规范、代码风格、Git提交规范、包结构、禁止写法、审计字段规范、delFlagcrby/crtime
15
14
  ---
16
15
 
17
16
  # leniu-tengyun-core 代码规范速查
@@ -348,6 +347,53 @@ Target target = BeanUtil.copyProperties(source, Target.class);
348
347
  List<Target> targets = BeanUtil.copyToList(sources, Target.class);
349
348
  ```
350
349
 
350
+ ## 包结构规范
351
+
352
+ ```
353
+ net.xnzn.core
354
+ ├── [module]/
355
+ │ ├── controller/ # 控制器层(按端分:web/mobile/android)
356
+ │ ├── business/impl/ # 业务编排层
357
+ │ ├── service/impl/ # 服务层
358
+ │ ├── mapper/ # 数据访问层(含 XML 同目录)
359
+ │ ├── model/ # 数据模型(Entity)
360
+ │ ├── vo/ # 视图对象(返回前端)
361
+ │ ├── dto/ # 数据传输对象(服务间/MQ)
362
+ │ ├── param/ # 请求参数对象
363
+ │ ├── constants/ # 常量和枚举
364
+ │ ├── config/ # 配置类
365
+ │ ├── mq/ # 消息队列监听器
366
+ │ ├── task/ # 定时任务
367
+ │ ├── handle/ # 业务处理器(策略模式)
368
+ │ └── util/ # 工具类
369
+ ```
370
+
371
+ ## 依赖注入规范
372
+
373
+ ```java
374
+ // 推荐:字段注入
375
+ @Autowired
376
+ private OrderService orderService;
377
+
378
+ // 解决循环依赖
379
+ @Resource
380
+ @Lazy
381
+ private ProductService productService;
382
+ ```
383
+
384
+ ## 类注释规范
385
+
386
+ ```java
387
+ /**
388
+ * 类功能描述
389
+ *
390
+ * @author xujiajun
391
+ * @date 2026-02-20
392
+ */
393
+ public class OrderService {
394
+ }
395
+ ```
396
+
351
397
  ## 通用代码规范
352
398
 
353
399
  无论使用哪种项目架构,以下规范都是通用的:
@@ -17,7 +17,7 @@ description: |
17
17
  - leniu-tengyun-core(云食堂核心服务)
18
18
  - leniu-yunshitang(云食堂业务服务)
19
19
 
20
- 触发词:leniu-CRUD、leniu-增删改查、leniu-新建模块、leniu-Entity、leniu-DTO、leniu-VO、leniu-Service、leniu-Mapper、leniu-Controller、leniu-分页查询、LeRequest、PageDTO、net.xnzn、leniu-yunshitang、云食堂CRUD、leniu-事务、leniu-并发、leniu-代码质量、leniu-空指针、leniu-ServiceImpl
20
+ 触发词:CRUD、增删改查、新建模块、Business层、Service、Mapper、Controller、分页查询、LeRequest、PageDTO、PageVO、事务管理
21
21
  ---
22
22
 
23
23
  # leniu CRUD 开发规范
@@ -1,3 +1,18 @@
1
+ ---
2
+ name: leniu-data-permission
3
+ description: |
4
+ leniu-tengyun-core 项目多租户数据权限控制规范。基于物理数据库隔离的双库架构,包含数据源切换、租户上下文、跨租户操作。
5
+
6
+ 触发场景:
7
+ - 使用 @UseSystem 切换系统库操作
8
+ - 使用 Executors.doInTenant/readInTenant 跨租户查询
9
+ - 使用 TenantContextHolder 获取租户上下文
10
+ - 配置双库数据源路由
11
+ - 跨租户数据初始化
12
+
13
+ 触发词:多租户、数据权限、@UseSystem、Executors.doInTenant、readInSystem、TenantContextHolder、MERCHANT-ID、双库隔离、数据源切换
14
+ ---
15
+
1
16
  # leniu-data-permission
2
17
 
3
18
  适用于 leniu-tengyun-core 项目的多租户数据权限控制。
@@ -12,7 +12,7 @@ description: |
12
12
 
13
13
  适用项目:leniu-tengyun-core(云食堂项目)
14
14
 
15
- 触发词:leniu-数据库、leniu-SQL、leniu-建表、leniu-Entityleniu-双库、leniu-商户库、leniu-系统库、net.xnzn、leniu-yunshitang、云食堂数据库
15
+ 触发词:数据库、SQL、建表、双库、商户库、系统库、审计字段、crbycrtimedel_flag
16
16
  ---
17
17
 
18
18
  # leniu-yunshitang-core 数据库操作规范
@@ -13,7 +13,7 @@ description: |
13
13
 
14
14
  适用项目:leniu-tengyun-core(云食堂项目)
15
15
 
16
- 触发词:leniu-异常、leniu-LeException、leniu-throw、leniu-错误处理、leniu-全局异常、leniu-@Validated、leniu-参数校验、leniu-日志、leniu-log、leniu-错误码、leniu-事务、leniu-I18n、net.xnzn、leniu-yunshitang、云食堂异常
16
+ 触发词:异常处理、LeException、全局异常、参数校验、错误码、I18n、国际化、throw
17
17
  ---
18
18
 
19
19
  # leniu-yunshitang-core 异常处理指南
@@ -9,7 +9,7 @@ description: |
9
9
  - Excel 导出含金额列,需分转元
10
10
  - 报表合计查询含金额汇总
11
11
 
12
- 触发词:金额、分转元、元转分、Long 金额、money、fen、cents、金额字段、金额处理、AmountConverter、AmountUtil
12
+ 触发词:金额处理、分转元、元转分、Long金额、money、fen、BigDecimal金额、金额字段
13
13
  ---
14
14
 
15
15
  # leniu-tengyun-core 金额处理规范
@@ -13,7 +13,7 @@ description: |
13
13
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
14
14
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
15
15
 
16
- 触发词:并发、CompletableFuture、线程池、ThreadPool、并发安全、锁、synchronized、volatile、原子类、异步处理、leniu并发、leniu-yunshitang并发、net.xnzn并发
16
+ 触发词:并发、CompletableFuture、线程池、ThreadPool、并发安全、异步处理、synchronized
17
17
  ---
18
18
 
19
19
  # leniu-tengyun-core 并发处理规范
@@ -10,7 +10,7 @@ description: |
10
10
  - 配置时间格式化和参数校验
11
11
  - 使用 Jakarta Validation 注解
12
12
 
13
- 触发词:EntityVODTOParam、实体类、@TableName、@TableField、@JsonFormat、字段映射、数据对象、@NotNull、@NotBlank、jakarta.validation
13
+ 触发词:Entity实体类、VO视图对象、DTO数据传输、Param参数类、@TableName、@TableField、审计字段、字段映射
14
14
  ---
15
15
 
16
16
  # leniu-tengyun-core Entity/VO/DTO 规范
@@ -13,7 +13,7 @@ description: |
13
13
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
14
14
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
15
15
 
16
- 触发词:导出、Export、Excel导出、异步导出、分页导出、@ExcelProperty、exportApi、数据导出、导出接口、leniu导出、leniu-yunshitang导出、net.xnzn导出
16
+ 触发词:导出、Excel导出、异步导出、分页导出、@ExcelProperty、exportApi、数据导出
17
17
  ---
18
18
 
19
19
  # leniu-tengyun-core 数据导出规范
@@ -10,7 +10,7 @@ description: |
10
10
  - 业务关键路径日志埋点
11
11
  - 日志文件管理和保留策略
12
12
 
13
- 触发词:日志、@Slf4j、log.info、log.error、log.debug、log.warn、日志级别、日志格式、日志记录、logging、logback、leniu-yunshitang、leniu-tengyun-core、net.xnzn
13
+ 触发词:日志、@Slf4j、log.info、log.error、log.debug、日志级别、logback、日志格式
14
14
  ---
15
15
 
16
16
  # leniu-tengyun-core / leniu-yunshitang 日志规范
@@ -13,7 +13,7 @@ description: |
13
13
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
14
14
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
15
15
 
16
- 触发词:leniu-消息队列、leniu-MQ、leniu-MqUtil、leniu-@MqConsumer、leniu-延迟消息、leniu-消息重试、leniu-事务消息、net.xnzn、leniu-yunshitang
16
+ 触发词:消息队列、MQ、MqUtil、@MqConsumer、延迟消息、消息重试、事务消息
17
17
  ---
18
18
 
19
19
  # leniu-tengyun-core 消息队列规范
@@ -10,7 +10,7 @@ description: |
10
10
  - 使用 MyBatis Plus 分页查询
11
11
  - 处理租户隔离(@InterceptorIgnore)
12
12
 
13
- 触发词:MyBatis、MyBatisPlus、Mapper、LambdaQueryWrapper、LambdaQuery、XML映射、动态SQL、selectPage、BaseMapper、@Select、resultMap、租户隔离、delFlag
13
+ 触发词:MyBatis、MyBatisPlus、Mapper、LambdaQueryWrapper、XML映射、动态SQL、BaseMapper、@Select、resultMap
14
14
  ---
15
15
 
16
16
  # leniu-tengyun-core MyBatis 规范
@@ -13,7 +13,7 @@ description: |
13
13
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
14
14
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
15
15
 
16
- 触发词:leniu-报表查询、leniu-Param类、leniu-查询入参、leniu-分页参数、leniu-时间范围、leniu-ReportBaseParam、leniu-exportCols、net.xnzn、leniu-yunshitang
16
+ 触发词:报表查询入参、Param类、分页参数、时间范围查询、ReportBaseParam、exportCols
17
17
  ---
18
18
 
19
19
  # leniu-tengyun-core 报表查询入参规范
@@ -13,7 +13,7 @@ description: |
13
13
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
14
14
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
15
15
 
16
- 触发词:leniu-定时任务、leniu-XXL-Job、leniu-@XxlJob、leniu-TenantLoader、leniu-TenantContextHolder、leniu-分布式锁、net.xnzn、leniu-yunshitang
16
+ 触发词:定时任务、XXL-Job、@XxlJob、TenantLoader、任务调度、分布式定时
17
17
  ---
18
18
 
19
19
  # leniu-tengyun-core 定时任务规范
@@ -13,7 +13,7 @@ description: |
13
13
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
14
14
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
15
15
 
16
- 触发词:leniu-合计行、leniu-totalLine、leniu-报表合计、leniu-合计查询、leniu-SUM合计、leniu-ReportBaseTotalVO、net.xnzn、leniu-yunshitang
16
+ 触发词:合计行、totalLine、报表合计、SUM合计、ReportBaseTotalVO、合计查询
17
17
  ---
18
18
 
19
19
  # leniu-tengyun-core 合计行(Total Line)规范
@@ -14,7 +14,7 @@ description: |
14
14
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
15
15
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
16
16
 
17
- 触发词:营销计费、price规则、计价规则、RulePriceHandler、RulePriceEnum、折扣规则、满减规则、限额规则、补贴规则、营销规则定制、leniu营销、leniu-yunshitang、net.xnzn
17
+ 触发词:营销计费、计价规则、RulePriceHandler、RulePriceEnum、折扣规则、满减规则、限额规则、补贴规则
18
18
  ---
19
19
 
20
20
  # leniu-tengyun-core 营销计费规则定制
@@ -14,7 +14,7 @@ description: |
14
14
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
15
15
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
16
16
 
17
- 触发词:营销充值、recharge规则、充值规则、RuleRechargeHandler、RuleRechargeEnum、满赠规则、充值赠送、充值限额、管理费规则、充值规则定制、leniu营销、leniu-yunshitang、net.xnzn
17
+ 触发词:营销充值、充值规则、RuleRechargeHandler、RuleRechargeEnum、满赠规则、充值赠送、管理费规则
18
18
  ---
19
19
 
20
20
  # leniu-tengyun-core 营销充值规则定制
@@ -14,7 +14,7 @@ description: |
14
14
  - leniu-tengyun-core:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun-core
15
15
  - leniu-yunshitang:/Users/xujiajun/Developer/gongsi_proj/leniu-api/leniu-tengyun/leniu-yunshitang
16
16
 
17
- 触发词:餐次、mealtime、mealtimeType、早餐、午餐、晚餐、下午茶、夜宵、AllocMealtimeTypeEnum、MealtimeTypeConverter、正餐、leniu餐次、leniu-yunshitang、net.xnzn
17
+ 触发词:餐次、mealtime、mealtimeType、早餐、午餐、晚餐、下午茶、夜宵、AllocMealtimeTypeEnum
18
18
  ---
19
19
 
20
20
  # leniu-tengyun-core 餐次处理规范
@@ -1,3 +1,18 @@
1
+ ---
2
+ name: leniu-redis-cache
3
+ description: |
4
+ leniu-tengyun-core 项目 Redis 缓存和分布式锁操作规范。包含 RedisUtil 工具类、分布式锁、ZSet 排行榜、缓存 Key 命名规范。
5
+
6
+ 触发场景:
7
+ - 使用 RedisUtil 进行缓存操作(setString/setObj/getObj)
8
+ - 实现分布式锁(getLock/lock/unlock)
9
+ - 使用 Redis 自增自减计数器(incr/decr)
10
+ - 实现缓存击穿保护
11
+ - ZSet 排行榜操作
12
+
13
+ 触发词:Redis、缓存、RedisUtil、分布式锁、RLock、getLock、setNx、ZSet、限流、缓存击穿
14
+ ---
15
+
1
16
  # leniu-redis-cache
2
17
 
3
18
  适用于 leniu-tengyun-core 项目的 Redis 缓存和分布式锁操作。