index.ts 807 B

123456789101112131415161718192021222324252627282930313233343536
  1. import Http from "../utils/http";
  2. import { host } from "../utils/constant";
  3. const indexHttp = new Http(host);
  4. export function fetchContact() {
  5. return indexHttp.get("/common/contact");
  6. }
  7. export function fetchCommonQuestions() {
  8. return indexHttp.get("/qa");
  9. }
  10. export function applyInvoice(startChargeSeqs: string[]) {
  11. return indexHttp.post("/invoice/applyInvoice", {
  12. data: {
  13. startChargeSeqs,
  14. },
  15. });
  16. }
  17. export function fetchHomeBanner() {
  18. return indexHttp.get("/banner");
  19. }
  20. export function fetchInvoiceList() {
  21. return indexHttp.get("/invoice/list?status=1");
  22. }
  23. export function cancelApplyInvoice() {
  24. return indexHttp.get("/invoice/cancelApplyInvoice");
  25. }
  26. export function fetchInvoicePDF(invoiceId: string) {
  27. return indexHttp.get(`/invoice/downloadInvoice/${invoiceId}`);
  28. }