---
description: 命名规范（与 .cursor/rules/java-naming.mdc 同步）
globs: ["**/*.java","**/*.sql"]
alwaysApply: false
---

# 命名规范

| 类型 | 规范 | 示例 |
|------|------|------|
| 实体 | `{Entity}` | `JzObject` |
| Service | `I{Entity}Service` / `{Entity}ServiceImpl` | `IJzObjectService` |
| Mapper | `{Entity}Mapper` | `JzObjectMapper` |
| Controller | `{Entity}Controller` | `JzObjectController` |

## HTTP 路径

- GET `/list`、GET `/{id}`、POST `/`、PUT `/`、DELETE `/{ids}`、POST `/export`

## 权限

- `busi:OBJECT:list` / `add` / `edit` / `remove` / `export` / `query`

## 前端 API

- `ruoyi-ui/src/api/{module}/{business}.js`
- 方法：`listXxx`、`getXxx`、`addXxx`、`updateXxx`、`delXxx`
