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.
- package/.claude/hooks/skill-forced-eval.js +26 -19
- package/.claude/skills/leniu-api-development/SKILL.md +1 -1
- package/.claude/skills/leniu-architecture-design/SKILL.md +1 -1
- package/.claude/skills/leniu-backend-annotations/SKILL.md +1 -1
- package/.claude/skills/leniu-brainstorm/SKILL.md +1 -1
- package/.claude/skills/leniu-code-patterns/SKILL.md +48 -2
- package/.claude/skills/leniu-crud-development/SKILL.md +1 -1
- package/.claude/skills/leniu-data-permission/SKILL.md +15 -0
- package/.claude/skills/leniu-database-ops/SKILL.md +1 -1
- package/.claude/skills/leniu-error-handler/SKILL.md +1 -1
- package/.claude/skills/leniu-java-amount-handling/SKILL.md +1 -1
- package/.claude/skills/leniu-java-concurrent/SKILL.md +1 -1
- package/.claude/skills/leniu-java-entity/SKILL.md +1 -1
- package/.claude/skills/leniu-java-export/SKILL.md +1 -1
- package/.claude/skills/leniu-java-logging/SKILL.md +1 -1
- package/.claude/skills/leniu-java-mq/SKILL.md +1 -1
- package/.claude/skills/leniu-java-mybatis/SKILL.md +1 -1
- package/.claude/skills/leniu-java-report-query-param/SKILL.md +1 -1
- package/.claude/skills/leniu-java-task/SKILL.md +1 -1
- package/.claude/skills/leniu-java-total-line/SKILL.md +1 -1
- package/.claude/skills/leniu-marketing-price-rule-customizer/SKILL.md +1 -1
- package/.claude/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +1 -1
- package/.claude/skills/leniu-mealtime/SKILL.md +1 -1
- package/.claude/skills/leniu-redis-cache/SKILL.md +15 -0
- package/.claude/skills/leniu-report-customization/SKILL.md +549 -0
- package/.claude/skills/leniu-security-guard/SKILL.md +1 -1
- package/.claude/skills/leniu-utils-toolkit/SKILL.md +1 -1
- package/.codex/skills/leniu-api-development/SKILL.md +1 -1
- package/.codex/skills/leniu-architecture-design/SKILL.md +5 -1
- package/.codex/skills/leniu-backend-annotations/SKILL.md +4 -2
- package/.codex/skills/leniu-brainstorm/SKILL.md +1 -1
- package/.codex/skills/leniu-code-patterns/SKILL.md +48 -2
- package/.codex/skills/leniu-crud-development/SKILL.md +1 -1
- package/.codex/skills/leniu-data-permission/SKILL.md +15 -0
- package/.codex/skills/leniu-database-ops/SKILL.md +1 -1
- package/.codex/skills/leniu-error-handler/SKILL.md +1 -1
- package/.codex/skills/leniu-java-amount-handling/SKILL.md +1 -1
- package/.codex/skills/leniu-java-concurrent/SKILL.md +1 -1
- package/.codex/skills/leniu-java-entity/SKILL.md +1 -1
- package/.codex/skills/leniu-java-export/SKILL.md +24 -23
- package/.codex/skills/leniu-java-logging/SKILL.md +1 -1
- package/.codex/skills/leniu-java-mq/SKILL.md +1 -1
- package/.codex/skills/leniu-java-mybatis/SKILL.md +1 -1
- package/.codex/skills/leniu-java-report-query-param/SKILL.md +1 -1
- package/.codex/skills/leniu-java-task/SKILL.md +1 -1
- package/.codex/skills/leniu-java-total-line/SKILL.md +21 -20
- package/.codex/skills/leniu-marketing-price-rule-customizer/SKILL.md +1 -1
- package/.codex/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +1 -1
- package/.codex/skills/leniu-mealtime/SKILL.md +1 -1
- package/.codex/skills/leniu-redis-cache/SKILL.md +15 -0
- package/.codex/skills/leniu-report-customization/SKILL.md +549 -0
- package/.codex/skills/leniu-security-guard/SKILL.md +1 -1
- package/.codex/skills/leniu-utils-toolkit/SKILL.md +4 -2
- package/AGENTS.md +26 -26
- 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:
|
|
100
|
-
- leniu-java-
|
|
101
|
-
- leniu-java-
|
|
102
|
-
- leniu-java-
|
|
103
|
-
- leniu-java-
|
|
104
|
-
- leniu-java-
|
|
105
|
-
- leniu-java-
|
|
106
|
-
- leniu-java-
|
|
107
|
-
- leniu-java-
|
|
108
|
-
- leniu-java-
|
|
109
|
-
- leniu-
|
|
110
|
-
- leniu-crud-development:
|
|
111
|
-
- leniu-database-ops:
|
|
112
|
-
- leniu-utils-toolkit:
|
|
113
|
-
- leniu-error-handler:
|
|
114
|
-
- leniu-backend-annotations:
|
|
115
|
-
- leniu-api-development:
|
|
116
|
-
- leniu-brainstorm:
|
|
117
|
-
- leniu-architecture-design:
|
|
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/执行变更
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
17
|
+
触发词:头脑风暴、方案设计、怎么设计、创意探索、功能规划、可行性分析
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
# leniu-yunshitang-core 头脑风暴框架
|
|
@@ -10,8 +10,7 @@ description: |
|
|
|
10
10
|
- 避免过度工程
|
|
11
11
|
- 代码风格检查
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
注意:leniu CRUD 开发规范请激活 leniu-crud-development,API 开发规范请激活 leniu-api-development。
|
|
13
|
+
触发词:代码禁令、代码规范、命名规范、代码风格、Git提交规范、包结构、禁止写法、审计字段规范、delFlag、crby/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
|
-
触发词:
|
|
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
|
-
|
|
15
|
+
触发词:数据库、SQL、建表、双库、商户库、系统库、审计字段、crby、crtime、del_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
|
-
|
|
16
|
+
触发词:异常处理、LeException、全局异常、参数校验、错误码、I18n、国际化、throw
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# 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
|
-
触发词:并发、CompletableFuture、线程池、ThreadPool
|
|
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
|
-
触发词:Entity
|
|
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
|
-
触发词:导出、
|
|
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
|
|
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
|
-
|
|
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、
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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 缓存和分布式锁操作。
|