Create Charge

This commit is contained in:
hamid zarghami
2026-02-17 09:47:20 +03:30
parent 8eabcf419e
commit af718809cb
6 changed files with 127 additions and 5 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
import axios from "../../../config/axios";
import { CreateBillType } from "../types/Types";
import { CreateBillType, CreateBillChargeType } from "../types/Types";
export const createBill = async (params: CreateBillType) => {
const { data } = await axios.post("/bills/water", params);
return data;
};
export const createChargeBill = async (params: CreateBillChargeType) => {
const { data } = await axios.post("/bills/charge", params);
return data;
};