import api from "@/configs/axios";
class DepositService {
  static getDetailedDepositHistory = async ({ id }) => {
    const res = await api.get(`/v1/admin/nap-tien/${id}`);
    return res;
  };
  static countAllDepositHistory = async ({ userId }) => {
    const res = await api.get(`/v1/admin/nap-tien/get-all?userId=${userId}`);
    return res;
  };
  static getListDepositHistory = async ({ pageSize, page, userId }) => {
    const res = await api.get(`/v1/admin/nap-tien?results=${pageSize}&page=${page}&userId=${userId}`);
    return res;
  };
}

export default DepositService;
