ADORSYS-GIS / ADORSYS-GIS/webank-UserApp
Ensure Frontend Handles Standardized Backend Responses
- 主要語言
- TypeScript
- 星號
- 5
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### Description:
The frontend currently lacks consistency in handling API responses, leading to incorrect or missing user feedback. We need to update all frontend logic to align with the backend's standardized response structure (such as `EmailValidationResponse` and `EmailResponse`).
#### Goals:
* Update frontend API handling to properly read and use:
* `status`
* `message`
* `data` (if present)
* Display backend-provided messages to users using `response.message`
* Make decisions based on the actual `status` value (`SUCCESS`, `FAILED`, etc.)
* Remove hardcoded or outdated logic related to API responses
#### Example:
```js
// Instead of:
if (res.ok) { show("Success") }
// Use:
if (res.status === "SUCCESS") {
show(res.message)
}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。