Files
pj_plan_cloud/src/api/nutrition.js
T
2025-10-28 10:17:35 +08:00

91 lines
1.6 KiB
JavaScript

import { service } from "./share/request"
/**
* 食堂用餐分类统计
*/
export const classCount = (data) => {
return service({
url: 'hard/panel-nutrition/class-count',
method: 'post',
data,
})
}
/**
* 食堂用餐分类统计
*/
export const cuisineTop = (data) => {
return service({
url: 'hard/panel-nutrition/cuisine-top',
method: 'post',
data,
})
}
/**
* 营养分析(按照购买时间统计)
*/
export const nutritionByTime = (data) => {
return service({
url: 'hard/panel-nutrition/nutrition/by-time',
method: 'post',
data,
})
}
/**
* 营养分析(总数统计)
*/
export const nutritionTotal = (data) => {
return service({
url: 'hard/panel-nutrition/nutrition/total',
method: 'post',
data,
})
}
/**
* 营养分析(趋势)
*/
export const nutritionTrend = (data) => {
return service({
url: 'hard/panel-nutrition/nutrition/trend',
method: 'post',
data,
})
}
/**
* 复购排行榜(top5)
*/
export const repurchase = (data) => {
return service({
url: 'hard/panel-nutrition/repurchase',
method: 'post',
data,
})
}
/**
* 外部就餐情况(合作商家)
*/
export const external = (data) => {
return service({
url: 'hard/panel-nutrition/external',
method: 'post',
data,
})
}
/**
* 营养分析报表
*/
export const nutritionReport = (data) => {
return service({
url: 'hard/panel-nutrition/report',
method: 'post',
data,
})
}