Add ChargeManagement and ChargeEdit components; implement charge management functionality with form validation and routing updates
This commit is contained in:
@@ -18,5 +18,13 @@ export const lockerService = {
|
||||
|
||||
keySwap: async (cabinetId, lockerId, reason, oldKey, newKey) => {
|
||||
return api.patch(`/locker/key`, { cabinetId, lockerId, reason, oldKey, newKey });
|
||||
},
|
||||
|
||||
updateCharges: async (productCode, interestCategory, rent, penalty) => {
|
||||
return api.patch(`/charge/${productCode}${interestCategory}`, { rent, penalty });
|
||||
},
|
||||
|
||||
getCharges: async (productCode, interestCategory) => {
|
||||
return api.get(`/charge/${productCode}${interestCategory}`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user