1234567891011121314151617181920212223242526 |
- import { http } from "/@/utils/http";
- import { loadEnv } from "@build/index";
- const { VITE_PROXY_DOMAIN_REAL, VITE_PROXY_USER_REAL } = loadEnv();
- const userAPi = VITE_PROXY_DOMAIN_REAL;
- const yewuApi = VITE_PROXY_USER_REAL + "/admin/";
- interface ResponseType extends Promise<any> {
- data?: object;
- code?: number;
- msg?: string;
- }
- export const httpDepartDayList = (param: object = {}): ResponseType => {
- return http.request("post", `${yewuApi}departEveryDay`, param);
- };
- export const httpDepartMonthList = (param: object = {}): ResponseType => {
- return http.request("post", `${yewuApi}departEveryMonth`, param);
- };
- export const httpCompanyDayList = (param: object = {}): ResponseType => {
- return http.request("post", `${yewuApi}companyEveryMonth`, param);
- };
- export const httpCompanyMonthList = (param: object = {}): ResponseType => {
- return http.request("post", `${yewuApi}companyEvery`, param);
- };
|