Files
baseapi/platformapi/tao_vegetable/sdk/ability591/request/AlibabaWdkopenCateorderPullRequest.go
2025-11-21 09:09:09 +08:00

60 lines
1.8 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package request
import (
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
)
type AlibabaWdkopenCateorderPullRequest struct {
/*
经营店ID */
StoreId *string `json:"store_id" required:"true" `
/*
主站主订单ID */
OutOrderId *string `json:"out_order_id" required:"true" `
/*
主站子订单ID列表, 为空则表示回传整单状态 */
SubOutOrderIds *[]string `json:"sub_out_order_ids,omitempty" required:"false" `
/*
回传状态,PREPARING,准备中制作中PRODUCE_FINISH制作完成FETCHED 已取餐; CANCEL加工失败/取消 */
Status *string `json:"status" required:"true" `
}
func (s *AlibabaWdkopenCateorderPullRequest) SetStoreId(v string) *AlibabaWdkopenCateorderPullRequest {
s.StoreId = &v
return s
}
func (s *AlibabaWdkopenCateorderPullRequest) SetOutOrderId(v string) *AlibabaWdkopenCateorderPullRequest {
s.OutOrderId = &v
return s
}
func (s *AlibabaWdkopenCateorderPullRequest) SetSubOutOrderIds(v []string) *AlibabaWdkopenCateorderPullRequest {
s.SubOutOrderIds = &v
return s
}
func (s *AlibabaWdkopenCateorderPullRequest) SetStatus(v string) *AlibabaWdkopenCateorderPullRequest {
s.Status = &v
return s
}
func (req *AlibabaWdkopenCateorderPullRequest) ToMap() map[string]interface{} {
paramMap := make(map[string]interface{})
if req.StoreId != nil {
paramMap["store_id"] = *req.StoreId
}
if req.OutOrderId != nil {
paramMap["out_order_id"] = *req.OutOrderId
}
if req.SubOutOrderIds != nil {
paramMap["sub_out_order_ids"] = util.ConvertBasicList(*req.SubOutOrderIds)
}
if req.Status != nil {
paramMap["status"] = *req.Status
}
return paramMap
}
func (req *AlibabaWdkopenCateorderPullRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}