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

2 lines
2.8 KiB
JavaScript

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