文档
测试

销量排行

GET
/api/restaurant_machine/index/salesRanking

请求头

参数名
类型
描述
必填
token
string
token
必填

说明 / 示例

{ "total": 0, "code": 0, "data": [ { "ranking": 1,//paim "name": "姜鸭面",//名称 "orderCount": "50",//订单数 "totalPrice": "1466.0"//金额 }, { "ranking": 2, "name": "红烧牛肉面", "orderCount": "41", "totalPrice": "1878.0" }, { "ranking": 3, "name": "生椒牛肉面", "orderCount": "24", "totalPrice": "727.2" }, { "ranking": 4, "name": "青椒肉丝盖饭", "orderCount": "9", "totalPrice": "258.0" }, { "ranking": 5, "name": "招牌豌杂面", "orderCount": "6", "totalPrice": "219.0" }, { "ranking": 6, "name": "牛杂火锅面", "orderCount": "3", "totalPrice": "152.0" }, { "ranking": 7, "name": "毛血旺", "orderCount": "2", "totalPrice": "116.0" }, { "ranking": 8, "name": "宫爆鸡丁", "orderCount": "2", "totalPrice": "56.0" }, { "ranking": 9, "name": "酸菜鱼", "orderCount": "2", "totalPrice": "104.0" }, { "ranking": 10, "name": "香辣手撕鸡", "orderCount": "2", "totalPrice": "76.0" } ], "message": "success" }