Pago-TW / pago-backend

The backend application for Pago, developed using Spring Boot.
0 stars 0 forks source link

[Feature] POST /calculate-order-amount - 計算價格 改成串接匯率 API 取得今日匯率來計算 #49

Closed sh1un closed 1 year ago

sh1un commented 1 year ago

Deadline: 2023/10/16 13:00 (GMT+8)

Description

Demand

修改 API:POST /calculate-order-amount 的計算價錢的邏輯(duringChooseBid)

目前程式碼中計算價格的部分,匯率是完全寫死的,必須改成 call API:List Exchange Rate 取得今日的匯率,來計算價格,系統實際畫面如下圖,這是委託者選擇出價時出現的畫面 image

API endpoint

List Exchange Rate: Postman 連結

Suggested Solutions

Additional context