index.ts 871 B

1234567891011121314151617181920212223242526
  1. import { http } from "/@/utils/http";
  2. import { loadEnv } from "@build/index";
  3. const { VITE_PROXY_DOMAIN_REAL, VITE_PROXY_USER_REAL } = loadEnv();
  4. const userAPi = VITE_PROXY_DOMAIN_REAL;
  5. const yewuApi = VITE_PROXY_USER_REAL + "/admin/";
  6. export const httpList = (data: object): any => {
  7. return http.request("post", `${yewuApi}involist`, { data });
  8. };
  9. export const httpDelete = (data: object): any => {
  10. return http.request("post", `${yewuApi}invoicedel`, { data });
  11. };
  12. export const httpAdd = (data: Record<string, any>): any => {
  13. return http.request("post", `${yewuApi}invoiceadd`, { data });
  14. };
  15. export const httpUpdate = (data: Record<string, any>): any => {
  16. return http.request("post", `${yewuApi}invoicesave`, { data });
  17. };
  18. export const httpStatus = (data: Record<string, any>): any => {
  19. return http.request("post", `${yewuApi}invoicesave`, { data });
  20. };