tttm

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tttm 包含天天特价相关结构体

https://open.taobao.com/API.htm?docType=2&docId=48644

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunIndustryTttmItemsSyncAPIRequest added in v1.2.0

type AliyunIndustryTttmItemsSyncAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AliyunIndustryTttmItemsSyncAPIRequest 天天特卖商品信息同步 API请求 aliyun.industry.tttm.items.sync

天天特卖商品信息同步

func NewAliyunIndustryTttmItemsSyncRequest

func NewAliyunIndustryTttmItemsSyncRequest() *AliyunIndustryTttmItemsSyncAPIRequest

NewAliyunIndustryTttmItemsSyncRequest 初始化AliyunIndustryTttmItemsSyncAPIRequest对象

func (AliyunIndustryTttmItemsSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunIndustryTttmItemsSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunIndustryTttmItemsSyncAPIRequest) GetApiParams added in v1.2.0

func (r AliyunIndustryTttmItemsSyncAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunIndustryTttmItemsSyncAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AliyunIndustryTttmItemsSyncAPIRequest) GetSyncItems added in v1.2.0

GetSyncItems SyncItems Getter

func (*AliyunIndustryTttmItemsSyncAPIRequest) SetSyncItems added in v1.2.0

func (r *AliyunIndustryTttmItemsSyncAPIRequest) SetSyncItems(_syncItems []ItemInfoDto) error

SetSyncItems is SyncItems Setter 商品信息

type AliyunIndustryTttmItemsSyncAPIResponse

type AliyunIndustryTttmItemsSyncAPIResponse struct {
	model.CommonResponse
	AliyunIndustryTttmItemsSyncAPIResponseModel
}

AliyunIndustryTttmItemsSyncAPIResponse 天天特卖商品信息同步 API返回值 aliyun.industry.tttm.items.sync

天天特卖商品信息同步

type AliyunIndustryTttmItemsSyncAPIResponseModel added in v1.2.0

type AliyunIndustryTttmItemsSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_industry_tttm_items_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 成功失败标识
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AliyunIndustryTttmItemsSyncAPIResponseModel is 天天特卖商品信息同步 成功返回结果

type AliyunIndustryTttmOrderQueryAPIRequest added in v1.2.0

type AliyunIndustryTttmOrderQueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AliyunIndustryTttmOrderQueryAPIRequest 天天特卖数字工厂订单获取 API请求 aliyun.industry.tttm.order.query

获取阿里云数字工厂内天天特卖业务的订单

func NewAliyunIndustryTttmOrderQueryRequest

func NewAliyunIndustryTttmOrderQueryRequest() *AliyunIndustryTttmOrderQueryAPIRequest

NewAliyunIndustryTttmOrderQueryRequest 初始化AliyunIndustryTttmOrderQueryAPIRequest对象

func (AliyunIndustryTttmOrderQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunIndustryTttmOrderQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunIndustryTttmOrderQueryAPIRequest) GetApiParams added in v1.2.0

func (r AliyunIndustryTttmOrderQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunIndustryTttmOrderQueryAPIRequest) GetExternalId added in v1.2.0

GetExternalId ExternalId Getter

func (AliyunIndustryTttmOrderQueryAPIRequest) GetOrderId added in v1.2.0

GetOrderId OrderId Getter

func (AliyunIndustryTttmOrderQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AliyunIndustryTttmOrderQueryAPIRequest) SetExternalId added in v1.2.0

func (r *AliyunIndustryTttmOrderQueryAPIRequest) SetExternalId(_externalId string) error

SetExternalId is ExternalId Setter 外部采购单号

func (*AliyunIndustryTttmOrderQueryAPIRequest) SetOrderId added in v1.2.0

func (r *AliyunIndustryTttmOrderQueryAPIRequest) SetOrderId(_orderId string) error

SetOrderId is OrderId Setter 订单号

type AliyunIndustryTttmOrderQueryAPIResponse

type AliyunIndustryTttmOrderQueryAPIResponse struct {
	model.CommonResponse
	AliyunIndustryTttmOrderQueryAPIResponseModel
}

AliyunIndustryTttmOrderQueryAPIResponse 天天特卖数字工厂订单获取 API返回值 aliyun.industry.tttm.order.query

获取阿里云数字工厂内天天特卖业务的订单

type AliyunIndustryTttmOrderQueryAPIResponseModel added in v1.2.0

type AliyunIndustryTttmOrderQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_industry_tttm_order_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单
	Result *OrderDto `json:"result,omitempty" xml:"result,omitempty"`
}

AliyunIndustryTttmOrderQueryAPIResponseModel is 天天特卖数字工厂订单获取 成功返回结果

type AliyunIndustryTttmPlanSyncAPIRequest added in v1.2.0

type AliyunIndustryTttmPlanSyncAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AliyunIndustryTttmPlanSyncAPIRequest 天天特卖生产计划单同步 API请求 aliyun.industry.tttm.plan.sync

ERP系统向天天特卖同步生产计划单的数据

func NewAliyunIndustryTttmPlanSyncRequest

func NewAliyunIndustryTttmPlanSyncRequest() *AliyunIndustryTttmPlanSyncAPIRequest

NewAliyunIndustryTttmPlanSyncRequest 初始化AliyunIndustryTttmPlanSyncAPIRequest对象

func (AliyunIndustryTttmPlanSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunIndustryTttmPlanSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunIndustryTttmPlanSyncAPIRequest) GetApiParams added in v1.2.0

func (r AliyunIndustryTttmPlanSyncAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunIndustryTttmPlanSyncAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AliyunIndustryTttmPlanSyncAPIRequest) GetSyncPlan added in v1.2.0

GetSyncPlan SyncPlan Getter

func (*AliyunIndustryTttmPlanSyncAPIRequest) SetSyncPlan added in v1.2.0

func (r *AliyunIndustryTttmPlanSyncAPIRequest) SetSyncPlan(_syncPlan *SyncPlanDto) error

SetSyncPlan is SyncPlan Setter 计划单

type AliyunIndustryTttmPlanSyncAPIResponse

type AliyunIndustryTttmPlanSyncAPIResponse struct {
	model.CommonResponse
	AliyunIndustryTttmPlanSyncAPIResponseModel
}

AliyunIndustryTttmPlanSyncAPIResponse 天天特卖生产计划单同步 API返回值 aliyun.industry.tttm.plan.sync

ERP系统向天天特卖同步生产计划单的数据

type AliyunIndustryTttmPlanSyncAPIResponseModel added in v1.2.0

type AliyunIndustryTttmPlanSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_industry_tttm_plan_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AliyunIndustryTttmPlanSyncAPIResponseModel is 天天特卖生产计划单同步 成功返回结果

type AliyunIndustryTttmProduceSyncAPIRequest added in v1.2.0

type AliyunIndustryTttmProduceSyncAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AliyunIndustryTttmProduceSyncAPIRequest 天天特卖生产进度同步 API请求 aliyun.industry.tttm.produce.sync

天天特卖生产进度同步

func NewAliyunIndustryTttmProduceSyncRequest

func NewAliyunIndustryTttmProduceSyncRequest() *AliyunIndustryTttmProduceSyncAPIRequest

NewAliyunIndustryTttmProduceSyncRequest 初始化AliyunIndustryTttmProduceSyncAPIRequest对象

func (AliyunIndustryTttmProduceSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunIndustryTttmProduceSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunIndustryTttmProduceSyncAPIRequest) GetApiParams added in v1.2.0

func (r AliyunIndustryTttmProduceSyncAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunIndustryTttmProduceSyncAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AliyunIndustryTttmProduceSyncAPIRequest) GetSyncPlan added in v1.2.0

GetSyncPlan SyncPlan Getter

func (*AliyunIndustryTttmProduceSyncAPIRequest) SetSyncPlan added in v1.2.0

func (r *AliyunIndustryTttmProduceSyncAPIRequest) SetSyncPlan(_syncPlan *SyncPlanDto) error

SetSyncPlan is SyncPlan Setter 计划单

type AliyunIndustryTttmProduceSyncAPIResponse

type AliyunIndustryTttmProduceSyncAPIResponse struct {
	model.CommonResponse
	AliyunIndustryTttmProduceSyncAPIResponseModel
}

AliyunIndustryTttmProduceSyncAPIResponse 天天特卖生产进度同步 API返回值 aliyun.industry.tttm.produce.sync

天天特卖生产进度同步

type AliyunIndustryTttmProduceSyncAPIResponseModel added in v1.2.0

type AliyunIndustryTttmProduceSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_industry_tttm_produce_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 状态
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AliyunIndustryTttmProduceSyncAPIResponseModel is 天天特卖生产进度同步 成功返回结果

type AliyunIndustryTttmProductsSyncAPIRequest added in v1.2.0

type AliyunIndustryTttmProductsSyncAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AliyunIndustryTttmProductsSyncAPIRequest 天天特卖货品信息同步 API请求 aliyun.industry.tttm.products.sync

天天特卖货品信息同步

func NewAliyunIndustryTttmProductsSyncRequest

func NewAliyunIndustryTttmProductsSyncRequest() *AliyunIndustryTttmProductsSyncAPIRequest

NewAliyunIndustryTttmProductsSyncRequest 初始化AliyunIndustryTttmProductsSyncAPIRequest对象

func (AliyunIndustryTttmProductsSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunIndustryTttmProductsSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunIndustryTttmProductsSyncAPIRequest) GetApiParams added in v1.2.0

func (r AliyunIndustryTttmProductsSyncAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunIndustryTttmProductsSyncAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AliyunIndustryTttmProductsSyncAPIRequest) GetSyncProducts added in v1.2.0

GetSyncProducts SyncProducts Getter

func (*AliyunIndustryTttmProductsSyncAPIRequest) SetSyncProducts added in v1.2.0

func (r *AliyunIndustryTttmProductsSyncAPIRequest) SetSyncProducts(_syncProducts []ProductInfoDto) error

SetSyncProducts is SyncProducts Setter 产品信息

type AliyunIndustryTttmProductsSyncAPIResponse

type AliyunIndustryTttmProductsSyncAPIResponse struct {
	model.CommonResponse
	AliyunIndustryTttmProductsSyncAPIResponseModel
}

AliyunIndustryTttmProductsSyncAPIResponse 天天特卖货品信息同步 API返回值 aliyun.industry.tttm.products.sync

天天特卖货品信息同步

type AliyunIndustryTttmProductsSyncAPIResponseModel added in v1.2.0

type AliyunIndustryTttmProductsSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_industry_tttm_products_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 成功失败标识
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AliyunIndustryTttmProductsSyncAPIResponseModel is 天天特卖货品信息同步 成功返回结果

type AliyunIndustryTttmStockSyncAPIRequest added in v1.2.0

type AliyunIndustryTttmStockSyncAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AliyunIndustryTttmStockSyncAPIRequest 天天特卖库存同步接口 API请求 aliyun.industry.tttm.stock.sync

天天特卖库存同步接口

func NewAliyunIndustryTttmStockSyncRequest

func NewAliyunIndustryTttmStockSyncRequest() *AliyunIndustryTttmStockSyncAPIRequest

NewAliyunIndustryTttmStockSyncRequest 初始化AliyunIndustryTttmStockSyncAPIRequest对象

func (AliyunIndustryTttmStockSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AliyunIndustryTttmStockSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliyunIndustryTttmStockSyncAPIRequest) GetApiParams added in v1.2.0

func (r AliyunIndustryTttmStockSyncAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliyunIndustryTttmStockSyncAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AliyunIndustryTttmStockSyncAPIRequest) GetSyncStock added in v1.2.0

GetSyncStock SyncStock Getter

func (*AliyunIndustryTttmStockSyncAPIRequest) SetSyncStock added in v1.2.0

func (r *AliyunIndustryTttmStockSyncAPIRequest) SetSyncStock(_syncStock *StockInfoDto) error

SetSyncStock is SyncStock Setter 库存

type AliyunIndustryTttmStockSyncAPIResponse

type AliyunIndustryTttmStockSyncAPIResponse struct {
	model.CommonResponse
	AliyunIndustryTttmStockSyncAPIResponseModel
}

AliyunIndustryTttmStockSyncAPIResponse 天天特卖库存同步接口 API返回值 aliyun.industry.tttm.stock.sync

天天特卖库存同步接口

type AliyunIndustryTttmStockSyncAPIResponseModel added in v1.2.0

type AliyunIndustryTttmStockSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"aliyun_industry_tttm_stock_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 成功失败标识
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AliyunIndustryTttmStockSyncAPIResponseModel is 天天特卖库存同步接口 成功返回结果

type ItemInfoDto

type ItemInfoDto struct {
	// 货品信息
	ProductInfoDTOs []ProductInfoDto `json:"product_info_d_t_os,omitempty" xml:"product_info_d_t_os>product_info_dto,omitempty"`
	// 商品ID
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// skuId
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

ItemInfoDto 结构体

type OrderDto

type OrderDto struct {
	// 下单货品
	OrderProductList []OrderProductDto `json:"order_product_list,omitempty" xml:"order_product_list>order_product_dto,omitempty"`
	// 订单id
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 订单总金额
	TotalPrice string `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 下单时间
	OrderTime string `json:"order_time,omitempty" xml:"order_time,omitempty"`
	// 订单商品列表
	OrderProducts string `json:"order_products,omitempty" xml:"order_products,omitempty"`
	// 采购单号
	ExternalId string `json:"external_id,omitempty" xml:"external_id,omitempty"`
	// 交付时间
	DueTime string `json:"due_time,omitempty" xml:"due_time,omitempty"`
	// 附件列表
	Annexes string `json:"annexes,omitempty" xml:"annexes,omitempty"`
	// 订单总数
	TotalAmount string `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 附件列表
	AnnexesJson string `json:"annexes_json,omitempty" xml:"annexes_json,omitempty"`
	// 合同类型
	ContractType int64 `json:"contract_type,omitempty" xml:"contract_type,omitempty"`
	// 生产状态
	ProduceStatus int64 `json:"produce_status,omitempty" xml:"produce_status,omitempty"`
	// 业务来源
	BizSource int64 `json:"biz_source,omitempty" xml:"biz_source,omitempty"`
	// 加工类型
	WorkingType int64 `json:"working_type,omitempty" xml:"working_type,omitempty"`
}

OrderDto 结构体

type OrderProductDto

type OrderProductDto struct {
	// 货品名称
	ProductName string `json:"product_name,omitempty" xml:"product_name,omitempty"`
	// 货品价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 货品数量
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 货品编码
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
}

OrderProductDto 结构体

type ProduceSyncDto

type ProduceSyncDto struct {
	// 生产节点
	ProduceLink string `json:"produce_link,omitempty" xml:"produce_link,omitempty"`
	// 提交时间
	SubmitTime string `json:"submit_time,omitempty" xml:"submit_time,omitempty"`
	// 实际时间
	FinishTime string `json:"finish_time,omitempty" xml:"finish_time,omitempty"`
	// 顺序
	LinkSort int64 `json:"link_sort,omitempty" xml:"link_sort,omitempty"`
	// 产量
	ProduceNum int64 `json:"produce_num,omitempty" xml:"produce_num,omitempty"`
	// 次品量
	DefectiveNum int64 `json:"defective_num,omitempty" xml:"defective_num,omitempty"`
	// 生产状态
	ProduceStatus int64 `json:"produce_status,omitempty" xml:"produce_status,omitempty"`
}

ProduceSyncDto 结构体

type ProductInfoDto

type ProductInfoDto struct {
	// 货品编码
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 货品名称
	ProductName string `json:"product_name,omitempty" xml:"product_name,omitempty"`
	// 货品状态
	ProductStatus int64 `json:"product_status,omitempty" xml:"product_status,omitempty"`
	// 套餐数量
	SetAmount int64 `json:"set_amount,omitempty" xml:"set_amount,omitempty"`
	// 总库存
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 增量库存
	IncrementAmount int64 `json:"increment_amount,omitempty" xml:"increment_amount,omitempty"`
	// 出入库
	IncrementType int64 `json:"increment_type,omitempty" xml:"increment_type,omitempty"`
}

ProductInfoDto 结构体

type StockInfoDto

type StockInfoDto struct {
	// 工厂仓
	FactoryDepot []ProductInfoDto `json:"factory_depot,omitempty" xml:"factory_depot>product_info_dto,omitempty"`
	// 电商仓
	ShopDepot []ProductInfoDto `json:"shop_depot,omitempty" xml:"shop_depot>product_info_dto,omitempty"`
}

StockInfoDto 结构体

type SyncPlanDto

type SyncPlanDto struct {
	// 工单
	SyncWorkDTOs []WorkSyncDto `json:"sync_work_d_t_os,omitempty" xml:"sync_work_d_t_os>work_sync_dto,omitempty"`
	// 计划完成
	FinishTime string `json:"finish_time,omitempty" xml:"finish_time,omitempty"`
	// 订单
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 联系人
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 计划单id
	PlanId string `json:"plan_id,omitempty" xml:"plan_id,omitempty"`
	// 计划开始
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 联系人电话
	ContactTel string `json:"contact_tel,omitempty" xml:"contact_tel,omitempty"`
}

SyncPlanDto 结构体

type WorkSyncDto

type WorkSyncDto struct {
	// 生产节点
	ProduceLinks []string `json:"produce_links,omitempty" xml:"produce_links>string,omitempty"`
	// 生产进度
	SyncProduceDTOs []ProduceSyncDto `json:"sync_produce_d_t_os,omitempty" xml:"sync_produce_d_t_os>produce_sync_dto,omitempty"`
	// 工单ID
	WorkId string `json:"work_id,omitempty" xml:"work_id,omitempty"`
	// 货品
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 计划产量
	PlanNum string `json:"plan_num,omitempty" xml:"plan_num,omitempty"`
	// 工单开始
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 工单结束
	FinishTime string `json:"finish_time,omitempty" xml:"finish_time,omitempty"`
	// 生产状态
	ProduceStatus int64 `json:"produce_status,omitempty" xml:"produce_status,omitempty"`
}

WorkSyncDto 结构体

Jump to

Keyboard shortcuts

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