点餐收银端

石化点餐项目


最近一个月消费记录

[TOC]

简要描述
  • 最近一个月消费记录接口
请求URL
  • https://food.taihuyun.vip/api/foodcash.user/costHistory?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5&user_id=14&page=1
请求方式
  • GET
参数
参数名 必选 类型 说明
applet_id string 应用程序ID
shop_id string 门店ID
token string 用户身份验证的令牌
user_id int 用户ID
page int 页码
返回示例
{
    "code": 1,
    "msg": "success",
    "data": {
        "total": 2,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "data": [
            {
                "order_id": 1344,
                "order_no": "2023011251534954",
                "order_mode": {
                    "text": "自取",
                    "value": 30
                },
                "book_date": "2023-01-12",
                "book_time": {
                    "text": "午餐",
                    "begin_end": "13:00:00-16:00:00",
                    "value": 2
                },
                "ticket_user_id": 0,
                "pay_price": "12.00",
                "order_type": 1,
                "butie": 12,
                "create_time": "2023-01-12 11:46:59",
                "create_type": "网上点餐",
                "ticket_type": "无",
                "ticket_money": "¥0",
                "user": ""
            },
            {
                "order_id": 1140,
                "order_no": "2023010798531029",
                "order_mode": {
                    "text": "自取",
                    "value": 30
                },
                "book_date": "2023-01-07",
                "book_time": {
                    "text": "晚餐",
                    "begin_end": "16:00:00-21:00:00",
                    "value": 3
                },
                "ticket_user_id": 0,
                "pay_price": "0.01",
                "order_type": 0,
                "butie": 12,
                "create_time": "2023-01-07 16:07:23",
                "create_type": "堂食自助",
                "ticket_type": "无",
                "ticket_money": "¥0",
                "user": ""
            }
        ]
    }
}
返回参数说明
  • 返回状态代码: 200
参数名 类型 说明
data.order_no string 订单号
data.order_mode.value int 订单类型;10.堂食;20.包厢;30.自取
data.book_date string 预定时间
data.book_time.value int 预定餐段,1早餐;2午餐;3晚餐;4夜宵
data.pay_price string 支付金额
data.butie string 补贴
data.ticket_money string 抵扣金额
data.ticket_type string 是否使用卡券
data.recent_pay string 消费金额
data.create_type string 下单类型
data.create_time string 下单时间
total int 总页数
per_page int 一页有几条
current_page int 当前页码
备注
  • 更多返回错误代码请看基本参数中的参数说明

页面列表

ITEM_HTML