#
zhou zhou
7 天以前 bccdb8f81c07c8a9cdcd6838173dfd1c73c98d90
.agents/skills/wms-dev-standards/SKILL.md
File was renamed from .gemini/skills/wms-dev-standards/SKILL.md
@@ -12,10 +12,10 @@
When adding or modifying API requests, always follow the established pattern in `config/api.js`.
### Core Rules
1. **HTTP Client:** Always use `uni.$u.http` for requests.
2. **Export Format:** Export each API call as a named arrow function.
3. **GET Parameters:** When sending parameters in a `GET` request, they **must** be wrapped in a configuration object with a `params` key.
4. **Response Destructuring:** Always destructure the response object to `{ code, data, msg }` (or similar fields) instead of using a generic `res` variable.
### Examples