Closed fanesz closed 5 months ago
Todo:
[x] Create a good UI to display current Balance
[x] Display maybe 10 previous newest balance history with a button to Balance History Page
GET
/api/balance
Response:
{ "status": true, "status_code": 200, "message": "Success getting a balance", "data": { "balance": 20000, // int "updated_at": "2024-05-12T16:19:45.042201+08:00" // timestamp } }
Possibility Fail: Balance not initialized yet (500)
Balance not initialized yet (500)
/api/balance/history
{ "status": true, "status_code": 200, "message": "Success getting balance history", "data": [ { "amount": 10000, "activity": "Add", "note": "[kas pay]", "user": { "npm": "2125240021" }, "created_at": "2024-05-12T10:09:37.88331+08:00" } ] }
untuk tampilan ui, package baru, dan implementasi singkat boleh diupdate di comment ini @Rendy752
update:
new package:
ui: background.png
background2.png
procom-purple.png
Todo:
[x] Create a good UI to display current Balance
[x] Display maybe 10 previous newest balance history with a button to Balance History Page
Get Balance
GET
/api/balance
Response:
Possibility Fail:
Balance not initialized yet (500)
Get History
GET
/api/balance/history
Response:
Possibility Fail:
Balance not initialized yet (500)