1
This commit is contained in:
26
admin/src/api/home/homeServer.js
Normal file
26
admin/src/api/home/homeServer.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import http from "@/libs/http";
|
||||
class HomeServer {
|
||||
// 获取订单统计
|
||||
async getOderCount() {
|
||||
let res = await http.get("/order/count");
|
||||
return res;
|
||||
}
|
||||
|
||||
async getUserCount() {
|
||||
let res = await http.get("/user/count");
|
||||
return res;
|
||||
}
|
||||
|
||||
async getSalesRank() {
|
||||
let res = await http.get("/index/salesRank");
|
||||
return res;
|
||||
}
|
||||
|
||||
async userRecommendRank() {
|
||||
let res = await http.get("/index/userRecommendRank");
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
const homeServer = new HomeServer();
|
||||
export default homeServer;
|
||||
Reference in New Issue
Block a user