update AGENTS.md

This commit is contained in:
jsowell
2026-06-02 09:14:30 +08:00
parent 6087bde3da
commit f419730747
2 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ This repository contains a Java 8, multi-module Spring Boot backend plus a separ
- Entry point/service: `jsowell-admin/` (Spring Boot app). - Entry point/service: `jsowell-admin/` (Spring Boot app).
- Shared/core: `jsowell-common/`, `jsowell-framework/`, `jsowell-system/`. - Shared/core: `jsowell-common/`, `jsowell-framework/`, `jsowell-system/`.
- Business/integrations: `jsowell-pile/`, `jsowell-netty/`, `jsowell-thirdparty/`, plus schedulers/generator/settlement modules. - Business/integrations: `jsowell-pile/`, `jsowell-netty/`, `jsowell-thirdparty/`, plus schedulers/generator/settlement modules.
- UI: `jsowell-ui/` (not part of the Maven build). Code is in `jsowell-ui/src/`, static assets in `jsowell-ui/public/`. - UI: `jsowell-charge-ui/` (not part of the Maven build). Code is in `jsowell-charge-ui/src/`, static assets in `jsowell-charge-ui/public/`.
- Reference material: `doc/`, `docs/`; database scripts: `sql/`; helper batch scripts: `bin/`. - Reference material: `doc/`, `docs/`; database scripts: `sql/`; helper batch scripts: `bin/`.
## Build, Test, and Development Commands ## Build, Test, and Development Commands
@@ -20,15 +20,15 @@ Backend (from repo root):
- `mvn test` (or `mvn -pl jsowell-admin test`): run backend tests. - `mvn test` (or `mvn -pl jsowell-admin test`): run backend tests.
- `mvn -pl jsowell-admin spring-boot:run -Dspring-boot.run.profiles=dev`: run the API locally. - `mvn -pl jsowell-admin spring-boot:run -Dspring-boot.run.profiles=dev`: run the API locally.
UI (from `jsowell-ui/`): UI (from `jsowell-charge-ui/`):
- `npm run dev`: start dev server (uses `jsowell-ui/.env.*` modes). - `npm run dev`: start dev server (uses `jsowell-charge-ui/.env.*` modes).
- `npm run build:prd`: production build. - `npm run build:prd`: production build.
- `npm run lint`: ESLint on `src/`. - `npm run lint`: ESLint on `src/`.
## Coding Style & Naming Conventions ## Coding Style & Naming Conventions
- Java: follow existing conventions (4 spaces; `PascalCase` types; `camelCase` methods; `UPPER_SNAKE_CASE` constants). Keep changes scoped to one module when possible. - Java: follow existing conventions (4 spaces; `PascalCase` types; `camelCase` methods; `UPPER_SNAKE_CASE` constants). Keep changes scoped to one module when possible.
- UI: follow `jsowell-ui/.editorconfig` + `jsowell-ui/.eslintrc.js` (2 spaces, single quotes, no semicolons). Run `npm run lint` before PRs. - UI: follow `jsowell-charge-ui/.editorconfig` + `jsowell-charge-ui/.eslintrc.js` (2 spaces, single quotes, no semicolons). Run `npm run lint` before PRs.
## Testing Guidelines ## Testing Guidelines
@@ -37,12 +37,12 @@ UI (from `jsowell-ui/`):
## Commit & Pull Request Guidelines ## Commit & Pull Request Guidelines
- Commit subjects commonly use short prefixes: `add ...`, `update ...`, `bugfix ...`. Keep them under ~72 chars; add module context when helpful (example: `jsowell-ui: update login flow`). - Commit subjects commonly use short prefixes: `add ...`, `update ...`, `bugfix ...`. Keep them under ~72 chars; add module context when helpful (example: `jsowell-charge-ui: update login flow`).
- PRs should target `dev` unless agreed otherwise, include a clear description, and link the relevant issue/ticket. - PRs should target `dev` unless agreed otherwise, include a clear description, and link the relevant issue/ticket.
- Include screenshots for UI changes and migration notes for DB/API changes (`sql/`, request/response examples). - Include screenshots for UI changes and migration notes for DB/API changes (`sql/`, request/response examples).
## Security & Configuration Notes ## Security & Configuration Notes
- Environment config lives in `jsowell-admin/src/main/resources/application-*.yml` and `jsowell-ui/.env.*`. - Environment config lives in `jsowell-admin/src/main/resources/application-*.yml` and `jsowell-charge-ui/.env.*`.
- Do not commit real secrets/keys; use placeholders and local overrides. - Do not commit real secrets/keys; use placeholders and local overrides.
- See `CLAUDE.md` for deeper architecture and operational notes. - See `CLAUDE.md` for deeper architecture and operational notes.

View File

@@ -466,10 +466,10 @@ public class PaymentTestController {
*/ */
@Test @Test
public void createPaymentReverseRequestTest() { public void createPaymentReverseRequestTest() {
String paymentId = "002212025112213314210838178078469394432"; String paymentId = "002212026053121575610907159171465322496";
BigDecimal refundAmount = new BigDecimal("49.5"); BigDecimal refundAmount = new BigDecimal("50.00");
String memberId = "67717378"; String memberId = "25760116";
String orderCode = "C088649732085"; String orderCode = "C027644273376";
// 延迟分账未确认调撤销调撤销接口退款 // 延迟分账未确认调撤销调撤销接口退款
PaymentReverseOperation operation = new PaymentReverseOperation(); PaymentReverseOperation operation = new PaymentReverseOperation();