loan order working

This commit is contained in:
2025-07-04 22:59:42 +05:00
parent 11d50c51ef
commit 6d79420f68
10 changed files with 583 additions and 5 deletions

View File

@@ -272,6 +272,35 @@ class AuthService {
async deleteLoanPaidOffLetterOrder(orderId) {
return this.makeRequest(`/loan-paid-off-letter-orders/${orderId}`, null, true, 'DELETE');
}
// ================================
// Loan Orders (Karz sargytlary)
// ================================
// LIST
async getLoanOrders() {
return this.makeRequest('/loan-order', null, true, 'GET');
}
// CREATE
async createLoanOrder(data) {
return this.makeRequest('/loan-order', data, true, 'POST');
}
// SHOW
async getLoanOrder(orderId) {
return this.makeRequest(`/loan-order/${orderId}`, null, true, 'GET');
}
// UPDATE
async updateLoanOrder(orderId, data) {
return this.makeRequest(`/loan-order/${orderId}`, data, true, 'POST');
}
// DELETE
async deleteLoanOrder(orderId) {
return this.makeRequest(`/loan-order/${orderId}`, null, true, 'DELETE');
}
}
export default new AuthService();