Create Charge
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user