Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { /** * 订单ID */ OrderSerializedId string `json:"orderSerializedId"` /** * 操作类型 1-接单 2-拒单 3-用户到店 4-用户未到店 */ OperationType int32 `json:"operationType"` /** * 桌位id operationType=1时必填 */ TableId string `json:"tableId"` /** * 桌位名称 operationType=1时必填 */ TableName string `json:"tableName"` /** * 时段开始时间 operationType=1时必填 */ StartTime int32 `json:"startTime"` /** * 时段结束时间 operationType=1时必填 */ EndTime int32 `json:"endTime"` /** * 实收金额 operationType=3时必填 */ Consume float64 `json:"consume"` /** * 应收金额 operationType=3时必填 */ OriginPrice float64 `json:"originPrice"` /** * 拒单原因 1 - 没有匹配的桌型 2 - 该桌型已订满 3 - 不在可预订时间内 4 - 备注无法满足 5 - 其他原因 */ RejectReason int32 `json:"rejectReason"` /** * 拒单其他原因说明 */ OtherReason string `json:"otherReason"` }
type OperateOrderRequest ¶
type OperateOrderRequest struct {
Data Data `json:"data"`
}
func (*OperateOrderRequest) DoInvoke ¶
func (req *OperateOrderRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*OperateOrderResponse, error)
type OperateOrderResponse ¶
type OperateOrderResponse struct { Code string `json:"code"` Msg string `json:"msg"` /** * 返回的数据 */ Data string `json:"data"` TraceId string `json:"traceId"` }
func (*OperateOrderResponse) IsSuccess ¶
func (response *OperateOrderResponse) IsSuccess() bool
Click to show internal directories.
Click to hide internal directories.