| File was renamed from .gemini/skills/wms-dev-standards/SKILL.md |
| | |
| | | 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 |
| | | |