2026-03-22 23:19:22 +08:00

53 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# likei-services 项目上下文
## 项目概述
社交娱乐平台,核心服务为 `rc-service`(多子服务),约 1000 DAU运行于 AWS EKS。
前端通过 REST API 调用;微服务之间通过 FeignInner API调用。
---
## 技术栈
| 类型 | 技术 |
|------|------|
| 框架 | Spring BootDDD + CQRS |
| ORM | MyBatis-Plus`BaseDAO<T>` |
| 数据库 | MySQL、MongoDB、Redis |
| 消息队列 | RocketMQ部分模块用 RabbitMQ |
| 服务间调用 | Spring Cloud Feign |
| 配置/注册 | Nacos |
| 基础设施 | AWS EKSKubernetes |
| 校验 | `jakarta.validation.constraints.*`(非 javax |
| 文档 | `@eo.` 注解系列(非 Swagger |
---
## 子服务清单
| 子服务 | 说明 |
|--------|------|
| rc-service-other | 综合业务:用户、房间、家族、礼物、活动、任务等 |
| rc-service-live | 直播相关 |
| rc-service-wallet | 钱包、金币、支付 |
| rc-service-order | 订单 |
| rc-service-console | 管理后台接口 |
| rc-service-external | 对外开放接口 |
| rc-auth | 认证授权 |
| rc-gateway | Spring Cloud Gateway 网关 |
| rc-scheduling | 定时任务 |
| rc-service-game | 游戏子服务(百顺、灵仙等) |
---
## 核心编码规范(速查)
- 条件判断:`StringUtils.isNotBlank()` / `Objects.nonNull()`
- 查询构造:`LambdaQueryWrapper`,禁止字符串字段名
- 金额:`BigDecimal`,禁止 `float` / `double`
- 时间:`LocalDateTime` / `LocalDate`
- 返回值:统一 `Result<T>``PageResult<T>`
- 异常:`throw new BusinessException("...")`
- 注入:`@RequiredArgsConstructor`(构造器注入),禁止 `@Autowired` 字段注入
- 日志:`@Slf4j`,关键操作必须 log
- 事务:写操作必须 `@Transactional`
> 详细规范见 CODING_STYLE.md
> 架构分层与调用链见 ARCHITECTURE.md