mer-tradescreen/yusi/assets/api-JoJiEZDD.js

2 lines
2.6 KiB
JavaScript
Raw Permalink Normal View History

2024-07-13 14:42:37 +08:00
import{a as i}from"./axios-QLjAsgXu.js";import"./index-5L8dO1EA.js";localStorage.getItem("TRADE_USER")&&JSON.parse(localStorage.getItem("TRADE_USER")).expire;const e=i.create({baseURL:"https://multi-store.lihaink.cn",timeout:3e4});e.interceptors.request.use(t=>t,t=>Promise.reject(t));e.interceptors.response.use(t=>t.data.code!=1?Promise.reject(t.data.msg):t.data,t=>Promise.reject(t));function n(t){return e.get("/statistics/user",{params:t})}function u(t){return e.get("/statistics/sales_ranking",{params:t})}function c(t){return e.get("/statistics/product_count",{params:t})}function o(t){return e.get("/statistics/index",{params:t})}function s(t){return e.get("/statistics/user_trade_count",{params:t})}function _(t){return e.get("/api/dataview/product_category_list",{params:t})}function d(t){return e.get("/api/dataview/product_list",{params:t})}function p(t){return e.get("/api/dataview/merchant_list",{params:t})}function l(t){return e.get("/api/dataview/order_list",{params:t})}function g(t){return e.get("/api/dataview/order_list_count_title",{params:t})}function f(t){return e.get("/api/dataview/refund_order_list",{params:t})}function A(t){return e.get("/api/dataview/take_order_list",{params:t})}function m(t){return e.get("/api/dataview/take_order_count_title",{params:t})}function w(t){return e.get("/api/dataview/financial_record_title",{params:t})}function v(t){return e.get("/api/dataview/financial_record",{params:t})}function h(t){return e.get("/api/dataview/product_status_filter",{params:t})}function k(t){return e.get("/api/dataview/financial_record_detail/1",{params:t})}function P(t){return e.get("/api/dataview/financial_record_detail/2",{params:t})}function R(t){return e.get("/api/dataview/bill_list",{params:t})}function S(t){return e.get("/api/dataview/withdraw_list",{params:t})}function x(t){return e.get("/statistics/street_currday_order_count",{params:t})}function y(t){return e.post("/api/dataview/login",t)}function C(t){return e.post("/api/dataview/mechant_login",t)}function U(t){return e.get("/api/dataview/merchant_count_main",{params:t})}function b(t){return e.get("/statistics/order_user_num_count",{params:t})}function j(t){return e.get("/api/dataview/merchant_product_ranking",{params:t})}function E(t){return e.get("/api/dataview/merchant_product_visit",{params:t})}function L(t){return e.get("/api/dataview/merchant_product_cart",{params:t})}function T(t){return e.get("/api/dataview/merchant",{params:t})}export{P as A,C as B,y as C,s as a,c as b,o as c,n as d,_ as e,d as f,u as g,T as h,U as i,j,E as k,L as l,p as m,l as n,b as o,h as p,g as q,f as r,x as s,A as t,m as u,w as v,v as w,S as x,R as y,k as z};