mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
support user custom exchange rates data
This commit is contained in:
@@ -37,6 +37,9 @@ import type {
|
||||
DataStatisticsResponse
|
||||
} from '@/models/data_management.ts';
|
||||
import type {
|
||||
UserCustomExchangeRateUpdateRequest,
|
||||
UserCustomExchangeRateDeleteRequest,
|
||||
UserCustomExchangeRateUpdateResponse,
|
||||
LatestExchangeRateResponse
|
||||
} from '@/models/exchange_rate.ts';
|
||||
import type {
|
||||
@@ -574,6 +577,12 @@ export default {
|
||||
timeout: getExchangeRatesRequestTimeout() || DEFAULT_API_TIMEOUT
|
||||
} as ApiRequestConfig);
|
||||
},
|
||||
updateUserCustomExchangeRate: (req: UserCustomExchangeRateUpdateRequest): ApiResponsePromise<UserCustomExchangeRateUpdateResponse> => {
|
||||
return axios.post<ApiResponse<UserCustomExchangeRateUpdateResponse>>('v1/exchange_rates/user_custom/update.json', req);
|
||||
},
|
||||
deleteUserCustomExchangeRate: (req: UserCustomExchangeRateDeleteRequest): ApiResponsePromise<boolean> => {
|
||||
return axios.post<ApiResponse<boolean>>('v1/exchange_rates/user_custom/delete.json', req);
|
||||
},
|
||||
generateQrCodeUrl: (qrCodeName: string): string => {
|
||||
return `${getBasePath()}${BASE_QRCODE_PATH}/${qrCodeName}.png`;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user