tablestatuspush

package
v0.0.0-...-905ac7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	/**
	 *  桌位id
	 */
	TableId string `json:"tableId"`
	/**
	 *  第三方订单id唯一标示,用于区分桌态订单
	 */
	BizOrderId string `json:"bizOrderId"`
	/**
	 *  锁台开始时间 unix时间戳
	 */
	StartTime int32 `json:"startTime"`
	/**
	 *  锁台结束时间 unix时间戳
	 */
	EndTime int32 `json:"endTime"`
	/**
	 *  桌位状态 1:空台 2:已开台 3:已点菜 4:已结账 5:待清台 6: 已预结
	 */
	Status int32 `json:"status"`
	/**
	 *  桌台对应的点菜数据
	 */
	Dishes []Dish `json:"dishes"`
	/**
	 *  订单支付金额
	 */
	Payment float64 `json:"payment"`
}

type Dish

type Dish struct {
	/**
	 *  商家菜品id
	 */
	DishId string `json:"dishId"`
	/**
	 *  菜品速记code
	 */
	DishCode string `json:"dishCode"`
	/**
	 *  菜品名称
	 */
	DishName string `json:"dishName"`
	/**
	 *  "份","斤","盒"等等
	 */
	DishSpec string `json:"dishSpec"`
	/**
	 *  菜品价格
	 */
	DishPrice float64 `json:"dishPrice"`
	/**
	 *  菜品数量
	 */
	DishCount int32 `json:"dishCount"`
}

type TableStatusPushRequest

type TableStatusPushRequest struct {
	Data []Data `json:"data"`
}

func (*TableStatusPushRequest) DoInvoke

func (req *TableStatusPushRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*TableStatusPushResponse, error)

type TableStatusPushResponse

type TableStatusPushResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	/**
	 * 返回数据
	 */
	Data    string `json:"data"`
	TraceId string `json:"traceId"`
}

func (*TableStatusPushResponse) IsSuccess

func (response *TableStatusPushResponse) IsSuccess() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL