nrt

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

零售终端API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaAscpInventoryQueryAPIResponse

type AlibabaAscpInventoryQueryAPIResponse struct {
	model.CommonResponse
	AlibabaAscpInventoryQueryResponse
}

商品库存查询接口 API返回值 alibaba.ascp.inventory.query

新零售联盟商家库存查询接口,用于商家商品库存数量感知查询

type AlibabaAscpInventoryQueryRequest

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

商品库存查询接口 API请求 alibaba.ascp.inventory.query

新零售联盟商家库存查询接口,用于商家商品库存数量感知查询

func NewAlibabaAscpInventoryQueryRequest

func NewAlibabaAscpInventoryQueryRequest() *AlibabaAscpInventoryQueryRequest

初始化AlibabaAscpInventoryQueryRequest对象

func (AlibabaAscpInventoryQueryRequest) GetApiMethodName

func (r AlibabaAscpInventoryQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAscpInventoryQueryRequest) GetApiParams

func (r AlibabaAscpInventoryQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaAscpInventoryQueryRequest) GetInvSingleItemSyncDto

func (r AlibabaAscpInventoryQueryRequest) GetInvSingleItemSyncDto() *InvSingleItemSyncDto

InvSingleItemSyncDto Getter

func (*AlibabaAscpInventoryQueryRequest) SetInvSingleItemSyncDto

func (r *AlibabaAscpInventoryQueryRequest) SetInvSingleItemSyncDto(invSingleItemSyncDto *InvSingleItemSyncDto) error

InvSingleItemSyncDto Setter 系统自动生成

type AlibabaAscpInventoryQueryResponse

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

商品库存查询接口 成功返回结果

type AlibabaAscpInventorySyncAPIResponse

type AlibabaAscpInventorySyncAPIResponse struct {
	model.CommonResponse
	AlibabaAscpInventorySyncResponse
}

库存同步接口 API返回值 alibaba.ascp.inventory.sync

新零售联盟商家库存同步接口,用于商家商品库存数量同步到阿里系统

type AlibabaAscpInventorySyncRequest

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

库存同步接口 API请求 alibaba.ascp.inventory.sync

新零售联盟商家库存同步接口,用于商家商品库存数量同步到阿里系统

func NewAlibabaAscpInventorySyncRequest

func NewAlibabaAscpInventorySyncRequest() *AlibabaAscpInventorySyncRequest

初始化AlibabaAscpInventorySyncRequest对象

func (AlibabaAscpInventorySyncRequest) GetApiMethodName

func (r AlibabaAscpInventorySyncRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaAscpInventorySyncRequest) GetApiParams

func (r AlibabaAscpInventorySyncRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaAscpInventorySyncRequest) GetInvSingleItemSyncDto

func (r AlibabaAscpInventorySyncRequest) GetInvSingleItemSyncDto() *InvSingleItemSyncDto

InvSingleItemSyncDto Getter

func (*AlibabaAscpInventorySyncRequest) SetInvSingleItemSyncDto

func (r *AlibabaAscpInventorySyncRequest) SetInvSingleItemSyncDto(invSingleItemSyncDto *InvSingleItemSyncDto) error

InvSingleItemSyncDto Setter 库存同步DTO

type AlibabaAscpInventorySyncResponse

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

库存同步接口 成功返回结果

type AlibabaRetailDeviceVendingRegisterAPIResponse

type AlibabaRetailDeviceVendingRegisterAPIResponse struct {
	model.CommonResponse
	AlibabaRetailDeviceVendingRegisterResponse
}

贩卖机设备注册 API返回值 alibaba.retail.device.vending.register

贩卖机注册

type AlibabaRetailDeviceVendingRegisterRequest

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

贩卖机设备注册 API请求 alibaba.retail.device.vending.register

贩卖机注册

func NewAlibabaRetailDeviceVendingRegisterRequest

func NewAlibabaRetailDeviceVendingRegisterRequest() *AlibabaRetailDeviceVendingRegisterRequest

初始化AlibabaRetailDeviceVendingRegisterRequest对象

func (AlibabaRetailDeviceVendingRegisterRequest) GetAddress

Address Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaRetailDeviceVendingRegisterRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaRetailDeviceVendingRegisterRequest) GetBizCode

BizCode Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetDeviceModel

DeviceModel Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetDeviceName

DeviceName Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetDeviceSn

DeviceSn Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetDeviceUuid

DeviceUuid Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetFloor

Floor Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetLayer

Layer Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetLocation

Location Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetScene

Scene Getter

func (AlibabaRetailDeviceVendingRegisterRequest) GetSiteName

SiteName Getter

func (*AlibabaRetailDeviceVendingRegisterRequest) SetAddress

Address Setter 设备地址

func (*AlibabaRetailDeviceVendingRegisterRequest) SetBizCode

BizCode Setter 业务编码,联系对接人申请

func (*AlibabaRetailDeviceVendingRegisterRequest) SetDeviceModel

func (r *AlibabaRetailDeviceVendingRegisterRequest) SetDeviceModel(deviceModel string) error

DeviceModel Setter 设备类型

func (*AlibabaRetailDeviceVendingRegisterRequest) SetDeviceName

func (r *AlibabaRetailDeviceVendingRegisterRequest) SetDeviceName(deviceName string) error

DeviceName Setter 设备名称

func (*AlibabaRetailDeviceVendingRegisterRequest) SetDeviceSn

func (r *AlibabaRetailDeviceVendingRegisterRequest) SetDeviceSn(deviceSn string) error

DeviceSn Setter 对接过阿里atm传入

func (*AlibabaRetailDeviceVendingRegisterRequest) SetDeviceUuid

func (r *AlibabaRetailDeviceVendingRegisterRequest) SetDeviceUuid(deviceUuid string) error

DeviceUuid Setter 外部设备编号

func (*AlibabaRetailDeviceVendingRegisterRequest) SetFloor

Floor Setter 楼栋信息。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整

func (*AlibabaRetailDeviceVendingRegisterRequest) SetLayer

Layer Setter 层。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整

func (*AlibabaRetailDeviceVendingRegisterRequest) SetLocation

func (r *AlibabaRetailDeviceVendingRegisterRequest) SetLocation(location string) error

Location Setter 室内地址描述。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整

func (*AlibabaRetailDeviceVendingRegisterRequest) SetScene

Scene Setter COMMUNITY:小区,SCHOOL:学校,OFFICE:写字楼,SHOPPING_MALL:商场,AIRPORT:机场,SUBWAY:地铁,HOSPITAL:医院,PLAYGROUNDS:游乐场所,FACTORY:工厂,VIEWPOINT:旅游景点,OTHERS:其他

func (*AlibabaRetailDeviceVendingRegisterRequest) SetSiteName

func (r *AlibabaRetailDeviceVendingRegisterRequest) SetSiteName(siteName string) error

SiteName Setter 场地名称,根据场地类型来,如:学校名称,商场名称。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整

type AlibabaRetailDeviceVendingRegisterResponse

type AlibabaRetailDeviceVendingRegisterResponse struct {
	XMLName xml.Name `xml:"alibaba_retail_device_vending_register_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *AlibabaRetailDeviceVendingRegisterResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

贩卖机设备注册 成功返回结果

type AlibabaRetailDeviceVendingRegisterResultDo

type AlibabaRetailDeviceVendingRegisterResultDo struct {
	// 是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
	// 数据
	Data *DeviceDto `json:"data,omitempty" xml:"data,omitempty"`
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 测试
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
}

AlibabaRetailDeviceVendingRegisterResultDo

type AlibabaRetailVendingRoadItemSyncAPIResponse

type AlibabaRetailVendingRoadItemSyncAPIResponse struct {
	model.CommonResponse
	AlibabaRetailVendingRoadItemSyncResponse
}

贩卖机库存商品同步 API返回值 alibaba.retail.vending.road.item.sync

贩卖机库存商品同步

type AlibabaRetailVendingRoadItemSyncRequest

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

贩卖机库存商品同步 API请求 alibaba.retail.vending.road.item.sync

贩卖机库存商品同步

func NewAlibabaRetailVendingRoadItemSyncRequest

func NewAlibabaRetailVendingRoadItemSyncRequest() *AlibabaRetailVendingRoadItemSyncRequest

初始化AlibabaRetailVendingRoadItemSyncRequest对象

func (AlibabaRetailVendingRoadItemSyncRequest) GetApiMethodName

func (r AlibabaRetailVendingRoadItemSyncRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaRetailVendingRoadItemSyncRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaRetailVendingRoadItemSyncRequest) GetRoadItemSync

RoadItemSync Getter

func (*AlibabaRetailVendingRoadItemSyncRequest) SetRoadItemSync

func (r *AlibabaRetailVendingRoadItemSyncRequest) SetRoadItemSync(roadItemSync *RoadItemSyncDto) error

RoadItemSync Setter 入参

type AlibabaRetailVendingRoadItemSyncResponse

type AlibabaRetailVendingRoadItemSyncResponse struct {
	XMLName xml.Name `xml:"alibaba_retail_vending_road_item_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 成功标识
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
	// 是否成功
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
	// 错误码
	ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"`
	// 错误消息
	EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"`
}

贩卖机库存商品同步 成功返回结果

type CategoryPropDto

type CategoryPropDto struct {
	// 属性ID
	PropertyId int64 `json:"property_id,omitempty" xml:"property_id,omitempty"`
	// 属性名
	PropertyName string `json:"property_name,omitempty" xml:"property_name,omitempty"`
	// 值ID
	ValueId int64 `json:"value_id,omitempty" xml:"value_id,omitempty"`
	// 值名
	ValueText string `json:"value_text,omitempty" xml:"value_text,omitempty"`
}

CategoryPropDto

type CouponTemplateDto

type CouponTemplateDto struct {
	// 渠道
	Channel string `json:"channel,omitempty" xml:"channel,omitempty"`
	// 券名称
	CouponName string `json:"coupon_name,omitempty" xml:"coupon_name,omitempty"`
	// 券type
	CouponType int64 `json:"coupon_type,omitempty" xml:"coupon_type,omitempty"`
	// 创建钉钉ID
	Creator string `json:"creator,omitempty" xml:"creator,omitempty"`
	// 面额
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
	// 券模板ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 圈选商品列表
	ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"`
	// 圈选卖场列表
	MallIds []int64 `json:"mall_ids,omitempty" xml:"mall_ids>int64,omitempty"`
	// 修改钉钉ID
	ModifiedBy string `json:"modified_by,omitempty" xml:"modified_by,omitempty"`
	// 发放结束时间yyyy-MM-dd HH:mm:ss
	SendEndTime string `json:"send_end_time,omitempty" xml:"send_end_time,omitempty"`
	// 发放开始时间yyyy-MM-dd HH:mm:ss
	SendStartTime string `json:"send_start_time,omitempty" xml:"send_start_time,omitempty"`
	// 门槛
	StartFee int64 `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 圈选门店列表
	StoreIds []int64 `json:"store_ids,omitempty" xml:"store_ids>int64,omitempty"`
	// 使用结束时间:yyyy-MM-dd HH:mm:ss
	UseEndTime string `json:"use_end_time,omitempty" xml:"use_end_time,omitempty"`
	// 使用开始时间:yyyy-MM-dd HH:mm:ss
	UseStartTime string `json:"use_start_time,omitempty" xml:"use_start_time,omitempty"`
	// 领取后可以使用的相对时间,秒或天为单位
	UseTime int64 `json:"use_time,omitempty" xml:"use_time,omitempty"`
	// 使用时间类型
	UseTimeType int64 `json:"use_time_type,omitempty" xml:"use_time_type,omitempty"`
	// 发券code
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 版本号
	Version int64 `json:"version,omitempty" xml:"version,omitempty"`
	// 卖家ID
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 券模板ID
	CouponTemplateId int64 `json:"coupon_template_id,omitempty" xml:"coupon_template_id,omitempty"`
}

CouponTemplateDto

type DeviceDto

type DeviceDto struct {
	// 设备编码
	DeviceCode string `json:"device_code,omitempty" xml:"device_code,omitempty"`
	// 设备外部编码
	DeviceUuid string `json:"device_uuid,omitempty" xml:"device_uuid,omitempty"`
	// 设备物理编码
	DeviceSn string `json:"device_sn,omitempty" xml:"device_sn,omitempty"`
	// 设备状态0离线,1 在线 2 待激活
	DeviceStatus string `json:"device_status,omitempty" xml:"device_status,omitempty"`
	// 设备名称
	DeviceName string `json:"device_name,omitempty" xml:"device_name,omitempty"`
	// 设备地址
	DeviceAddress string `json:"device_address,omitempty" xml:"device_address,omitempty"`
	// 设备类型
	DeviceTypeName string `json:"device_type_name,omitempty" xml:"device_type_name,omitempty"`
	// 经度
	Longtitude string `json:"longtitude,omitempty" xml:"longtitude,omitempty"`
	// 纬度
	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`
	// 激活码
	Activation string `json:"activation,omitempty" xml:"activation,omitempty"`
}

DeviceDto

type ExternalMemberDTO

type ExternalMemberDTO struct {
	// 业态编号
	BusiTypeId string `json:"busi_type_id,omitempty" xml:"busi_type_id,omitempty"`
	// 淘宝昵称 关注过品牌号的会员,有淘宝昵称
	TaoId string `json:"tao_id,omitempty" xml:"tao_id,omitempty"`
	// 手机号
	PhoneNumber string `json:"phone_number,omitempty" xml:"phone_number,omitempty"`
	// 地址	地址包含省、市、区、街道、详细地址,仅发最新的一条含有地址的联系信息
	NewAddr string `json:"new_addr,omitempty" xml:"new_addr,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 会员等级
	LevelName string `json:"level_name,omitempty" xml:"level_name,omitempty"`
	// 姓名
	RealName string `json:"real_name,omitempty" xml:"real_name,omitempty"`
	// 会员ID
	MemberId string `json:"member_id,omitempty" xml:"member_id,omitempty"`
	// 操作类型 基础类型 new?、update、delete、query
	OpType string `json:"op_type,omitempty" xml:"op_type,omitempty"`
}

ExternalMemberDTO

type InvSingleItemSyncDto

type InvSingleItemSyncDto struct {
	// 商品条形码,数字型,作为外部商品唯一外键优先选用该字段,唯一性由商家保证,如果没有请联系阿里小二。bar_code和outer_item_id必须传入其中一个
	BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"`
	// 仓编码
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 业务码
	BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
	// 商家id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 如果商家没有商品条形码,用该字段,唯一性由商家保证。
	OuterItemId string `json:"outer_item_id,omitempty" xml:"outer_item_id,omitempty"`
	// 可用销售库存
	SellableQuantity int64 `json:"sellable_quantity,omitempty" xml:"sellable_quantity,omitempty"`
	// 库存类型,warehouse-仓库存;store-门店库存,不传默认仓库存
	InvType string `json:"inv_type,omitempty" xml:"inv_type,omitempty"`
	// 外部操作单号,用于幂等控制
	OuterOrderNo string `json:"outer_order_no,omitempty" xml:"outer_order_no,omitempty"`
	// 变化数量,整数表示增加数量,负数表示减少数量
	ChangeQuantity int64 `json:"change_quantity,omitempty" xml:"change_quantity,omitempty"`
}

InvSingleItemSyncDto

type ItemImageDto

type ItemImageDto struct {
	// 图片次序
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
	// 图片地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

ItemImageDto

type LocationDto

type LocationDto struct {
	// 城市名
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 城市ID
	CityId int64 `json:"city_id,omitempty" xml:"city_id,omitempty"`
	// 省份名
	Prov string `json:"prov,omitempty" xml:"prov,omitempty"`
	// 省份ID
	ProvId int64 `json:"prov_id,omitempty" xml:"prov_id,omitempty"`
	// 类型,1:国内,2:国外
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

LocationDto

type MacallineItemExtDto

type MacallineItemExtDto struct {
	// 品牌系列ID
	BrandSeriesId string `json:"brand_series_id,omitempty" xml:"brand_series_id,omitempty"`
	// 品牌系列名称
	BrandSeriesName string `json:"brand_series_name,omitempty" xml:"brand_series_name,omitempty"`
	// 计价单位
	ChargeUnit string `json:"charge_unit,omitempty" xml:"charge_unit,omitempty"`
	// 等级
	Grade int64 `json:"grade,omitempty" xml:"grade,omitempty"`
	// 标签价格类型
	LabelPriceType int64 `json:"label_price_type,omitempty" xml:"label_price_type,omitempty"`
	// 产地
	OriginalLocation *LocationDto `json:"original_location,omitempty" xml:"original_location,omitempty"`
	// 价格类型,1:明码实价,2:明码议价
	PriceType int64 `json:"price_type,omitempty" xml:"price_type,omitempty"`
	// 物价员
	Pricer string `json:"pricer,omitempty" xml:"pricer,omitempty"`
	// 辅材
	SecondarySteel string `json:"secondary_steel,omitempty" xml:"secondary_steel,omitempty"`
	// 规格
	Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
	// 规格单位
	SpecificationUnit string `json:"specification_unit,omitempty" xml:"specification_unit,omitempty"`
	// 基材
	Substrate string `json:"substrate,omitempty" xml:"substrate,omitempty"`
	// 是否支持退换货
	SupportReturnGoods bool `json:"support_return_goods,omitempty" xml:"support_return_goods,omitempty"`
	// 饰面
	Veneer string `json:"veneer,omitempty" xml:"veneer,omitempty"`
}

MacallineItemExtDto

type MemberSynResponse

type MemberSynResponse struct {
	// 加密后的taoId
	OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
	// 业务code
	BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
	// 外部会员ID
	OutMemberId string `json:"out_member_id,omitempty" xml:"out_member_id,omitempty"`
	// sellerid
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
}

MemberSynResponse

type NrtCouponSendDTO

type NrtCouponSendDTO struct {
	// 业务code
	BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
	// 加密后淘系ID
	OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
	// {"key","value"}
	Extra string `json:"extra,omitempty" xml:"extra,omitempty"`
	// 渠道
	Channel string `json:"channel,omitempty" xml:"channel,omitempty"`
	// 幂等ID
	OutId string `json:"out_id,omitempty" xml:"out_id,omitempty"`
	// 券code
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 券类型,247:品类券,276:门店券,357:门店通用券
	CouponType int64 `json:"coupon_type,omitempty" xml:"coupon_type,omitempty"`
}

NrtCouponSendDTO

type NrtItemSyncResultDto

type NrtItemSyncResultDto struct {
	// 摊位商品ID
	SItemId int64 `json:"s_item_id,omitempty" xml:"s_item_id,omitempty"`
	// 主商品ID
	MItemId int64 `json:"m_item_id,omitempty" xml:"m_item_id,omitempty"`
}

NrtItemSyncResultDto

type NrtMemberDTO

type NrtMemberDTO struct {
	// 手机号
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 外部会员ID
	OutMemberId string `json:"out_member_id,omitempty" xml:"out_member_id,omitempty"`
	// 同步时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 业务code
	BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
	// 淘宝ID
	OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
	// 操作类型
	OpType string `json:"op_type,omitempty" xml:"op_type,omitempty"`
	// 会员等级
	LevelName string `json:"level_name,omitempty" xml:"level_name,omitempty"`
	// 版本号
	Version int64 `json:"version,omitempty" xml:"version,omitempty"`
	// 会员名称
	RealName string `json:"real_name,omitempty" xml:"real_name,omitempty"`
	// 幂等ID
	OutId string `json:"out_id,omitempty" xml:"out_id,omitempty"`
	// 会员地址
	Addr string `json:"addr,omitempty" xml:"addr,omitempty"`
	// 状态 1:正常 0:冻结
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 淘宝nick
	TaoNick string `json:"tao_nick,omitempty" xml:"tao_nick,omitempty"`
}

NrtMemberDTO

type NrtStoreDTO added in v1.1.4

type NrtStoreDTO struct {
	// 摊位编号
	StallCode string `json:"stall_code,omitempty" xml:"stall_code,omitempty"`
	// 区编码
	DistrictCode int64 `json:"district_code,omitempty" xml:"district_code,omitempty"`
	// 市编码
	CityCode int64 `json:"city_code,omitempty" xml:"city_code,omitempty"`
	// 业务标识
	BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"`
	// 详细地址
	ShortAddress string `json:"short_address,omitempty" xml:"short_address,omitempty"`
	// 租赁结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 操作类型
	OpType string `json:"op_type,omitempty" xml:"op_type,omitempty"`
	// 主图地址
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 经销商编码
	AgencyCode string `json:"agency_code,omitempty" xml:"agency_code,omitempty"`
	// 营业时间
	BusinessTime string `json:"business_time,omitempty" xml:"business_time,omitempty"`
	// 经营品牌编号
	BusinessBrandids string `json:"business_brandids,omitempty" xml:"business_brandids,omitempty"`
	// 城市名
	CityName string `json:"city_name,omitempty" xml:"city_name,omitempty"`
	// 摊位部门Id
	StallDeptid string `json:"stall_deptid,omitempty" xml:"stall_deptid,omitempty"`
	// 卖场编码
	MallCode string `json:"mall_code,omitempty" xml:"mall_code,omitempty"`
	// 品牌系列
	BrandSeries string `json:"brand_series,omitempty" xml:"brand_series,omitempty"`
	// 幂等id
	OutId string `json:"out_id,omitempty" xml:"out_id,omitempty"`
	// 纬度
	Lat string `json:"lat,omitempty" xml:"lat,omitempty"`
	// 租赁开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 经度
	Lng string `json:"lng,omitempty" xml:"lng,omitempty"`
	// 区名称
	DistrictName string `json:"district_name,omitempty" xml:"district_name,omitempty"`
	// 省编码
	ProvinceCode int64 `json:"province_code,omitempty" xml:"province_code,omitempty"`
	// 联系电话
	Contract string `json:"contract,omitempty" xml:"contract,omitempty"`
	// 经营品牌名称
	BusinessBrandnames string `json:"business_brandnames,omitempty" xml:"business_brandnames,omitempty"`
	// 版本号
	Version int64 `json:"version,omitempty" xml:"version,omitempty"`
	// 摊位名称
	StallName string `json:"stall_name,omitempty" xml:"stall_name,omitempty"`
	// 主营品类
	CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"`
	// 省名称
	ProvinceName string `json:"province_name,omitempty" xml:"province_name,omitempty"`
	// 主营品牌Id
	BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
	// 主营品牌名称
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 摊位状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 卖场部门Id
	MallDepid string `json:"mall_depid,omitempty" xml:"mall_depid,omitempty"`
}

NrtStoreDTO

type PageData

type PageData struct {
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 数据列表
	DataList []CouponTemplateDto `json:"data_list,omitempty" xml:"data_list>coupon_template_dto,omitempty"`
	// 1
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
}

PageData

type ResultDO

type ResultDO struct {
	// succ
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
	// data
	Data *InvSingleItemSyncDto `json:"data,omitempty" xml:"data,omitempty"`
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误信息
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 系统自动生成
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 系统自动生成
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
}

ResultDO

type RoadItemSaveDto

type RoadItemSaveDto struct {
	// 货道编号,若无跟商品编码保持一致
	RoadIds string `json:"road_ids,omitempty" xml:"road_ids,omitempty"`
	// true 可售 false 不可售
	Available bool `json:"available,omitempty" xml:"available,omitempty"`
	// 库存数,全量
	Inventory int64 `json:"inventory,omitempty" xml:"inventory,omitempty"`
	// 容量
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 商品编码
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 条码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
}

RoadItemSaveDto

type RoadItemSyncDto

type RoadItemSyncDto struct {
	// 数据
	List []RoadItemSaveDto `json:"list,omitempty" xml:"list>road_item_save_dto,omitempty"`
	// 设备Sn
	DeviceSn string `json:"device_sn,omitempty" xml:"device_sn,omitempty"`
}

RoadItemSyncDto

type SendCouponResponse

type SendCouponResponse struct {
	// 面额
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
	// 门槛
	StartFee int64 `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 券名称
	CouponName string `json:"coupon_name,omitempty" xml:"coupon_name,omitempty"`
	// 券模板ID
	CouponTemplateId int64 `json:"coupon_template_id,omitempty" xml:"coupon_template_id,omitempty"`
	// 券实例ID
	CouponInstanceId int64 `json:"coupon_instance_id,omitempty" xml:"coupon_instance_id,omitempty"`
	// 结束时间
	EndTime int64 `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 开始时间
	StartTime int64 `json:"start_time,omitempty" xml:"start_time,omitempty"`
}

SendCouponResponse

type SettleCardInfoDto

type SettleCardInfoDto struct {
	// 开户支行名
	AccountBranchName string `json:"account_branch_name,omitempty" xml:"account_branch_name,omitempty"`
	// 银行卡号
	AccountNo string `json:"account_no,omitempty" xml:"account_no,omitempty"`
	// 卡类型
	AccountType string `json:"account_type,omitempty" xml:"account_type,omitempty"`
	// 银行名称
	AccountInstName string `json:"account_inst_name,omitempty" xml:"account_inst_name,omitempty"`
	// 开户行所在地-市
	AccountInstCity string `json:"account_inst_city,omitempty" xml:"account_inst_city,omitempty"`
	// 开户行所在地-省
	AccountInstProvince string `json:"account_inst_province,omitempty" xml:"account_inst_province,omitempty"`
	// 开户行简称缩写
	AccountInstId string `json:"account_inst_id,omitempty" xml:"account_inst_id,omitempty"`
	// 卡户名
	AccountHolderName string `json:"account_holder_name,omitempty" xml:"account_holder_name,omitempty"`
	// 账号使用类型
	UsageType string `json:"usage_type,omitempty" xml:"usage_type,omitempty"`
}

SettleCardInfoDto

type SkuDto

type SkuDto struct {
	// 条码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// SKU属性
	Properties []CategoryPropDto `json:"properties,omitempty" xml:"properties>category_prop_dto,omitempty"`
	// 数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// SKU ID
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 修改时间
	UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"`
}

SkuDto

type StallSigningReqDto

type StallSigningReqDto struct {
	// 对应卖场的smid
	IpRoleId string `json:"ip_role_id,omitempty" xml:"ip_role_id,omitempty"`
	// 摊位名称
	ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
	// 摊位id
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 银行卡信息
	BizCards []SettleCardInfoDto `json:"biz_cards,omitempty" xml:"biz_cards>settle_card_info_dto,omitempty"`
}

StallSigningReqDto

type StallSigningRespDto

type StallSigningRespDto struct {
	// 申请单id
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 摊位/门店id
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
}

StallSigningRespDto

type TmallNrtBranddetailQueryAPIResponse

type TmallNrtBranddetailQueryAPIResponse struct {
	model.CommonResponse
	TmallNrtBranddetailQueryResponse
}

品牌详情查询 API返回值 tmall.nrt.branddetail.query

根据品牌id查询品牌的详细信息

type TmallNrtBranddetailQueryRequest

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

品牌详情查询 API请求 tmall.nrt.branddetail.query

根据品牌id查询品牌的详细信息

func NewTmallNrtBranddetailQueryRequest

func NewTmallNrtBranddetailQueryRequest() *TmallNrtBranddetailQueryRequest

初始化TmallNrtBranddetailQueryRequest对象

func (TmallNrtBranddetailQueryRequest) GetApiMethodName

func (r TmallNrtBranddetailQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtBranddetailQueryRequest) GetApiParams

func (r TmallNrtBranddetailQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtBranddetailQueryRequest) GetBrandId

func (r TmallNrtBranddetailQueryRequest) GetBrandId() int64

BrandId Getter

func (*TmallNrtBranddetailQueryRequest) SetBrandId

func (r *TmallNrtBranddetailQueryRequest) SetBrandId(brandId int64) error

BrandId Setter 品牌id

type TmallNrtBranddetailQueryResponse

type TmallNrtBranddetailQueryResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_branddetail_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// data
	Data string `json:"data,omitempty" xml:"data,omitempty"`
}

品牌详情查询 成功返回结果

type TmallNrtBrandinfoQueryAPIResponse

type TmallNrtBrandinfoQueryAPIResponse struct {
	model.CommonResponse
	TmallNrtBrandinfoQueryResponse
}

品牌数据查询 API返回值 tmall.nrt.brandinfo.query

商家获取自己旗舰店授权的品牌id列表

type TmallNrtBrandinfoQueryRequest

type TmallNrtBrandinfoQueryRequest struct {
	model.Params
}

品牌数据查询 API请求 tmall.nrt.brandinfo.query

商家获取自己旗舰店授权的品牌id列表

func NewTmallNrtBrandinfoQueryRequest

func NewTmallNrtBrandinfoQueryRequest() *TmallNrtBrandinfoQueryRequest

初始化TmallNrtBrandinfoQueryRequest对象

func (TmallNrtBrandinfoQueryRequest) GetApiMethodName

func (r TmallNrtBrandinfoQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtBrandinfoQueryRequest) GetApiParams

func (r TmallNrtBrandinfoQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

type TmallNrtBrandinfoQueryResponse

type TmallNrtBrandinfoQueryResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_brandinfo_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 品牌id
	Datas []string `json:"datas,omitempty" xml:"datas>string,omitempty"`
}

品牌数据查询 成功返回结果

type TmallNrtCouponSendAPIResponse

type TmallNrtCouponSendAPIResponse struct {
	model.CommonResponse
	TmallNrtCouponSendResponse
}

券发放接口 API返回值 tmall.nrt.coupon.send

新零售场景,商家自有渠道发放券

type TmallNrtCouponSendRequest

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

券发放接口 API请求 tmall.nrt.coupon.send

新零售场景,商家自有渠道发放券

func NewTmallNrtCouponSendRequest

func NewTmallNrtCouponSendRequest() *TmallNrtCouponSendRequest

初始化TmallNrtCouponSendRequest对象

func (TmallNrtCouponSendRequest) GetApiMethodName

func (r TmallNrtCouponSendRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtCouponSendRequest) GetApiParams

func (r TmallNrtCouponSendRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtCouponSendRequest) GetNrtCouponSendDto

func (r TmallNrtCouponSendRequest) GetNrtCouponSendDto() *NrtCouponSendDTO

NrtCouponSendDto Getter

func (*TmallNrtCouponSendRequest) SetNrtCouponSendDto

func (r *TmallNrtCouponSendRequest) SetNrtCouponSendDto(nrtCouponSendDto *NrtCouponSendDTO) error

NrtCouponSendDto Setter 发券dto

type TmallNrtCouponSendResponse

type TmallNrtCouponSendResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_coupon_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 发券结果对象
	Model *SendCouponResponse `json:"model,omitempty" xml:"model,omitempty"`
}

券发放接口 成功返回结果

type TmallNrtCoupontemplateQueryAPIResponse

type TmallNrtCoupontemplateQueryAPIResponse struct {
	model.CommonResponse
	TmallNrtCoupontemplateQueryResponse
}

券模板查询 API返回值 tmall.nrt.coupontemplate.query

新零售场景,商家拉取在新零售工作台设置的券数据

type TmallNrtCoupontemplateQueryRequest

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

券模板查询 API请求 tmall.nrt.coupontemplate.query

新零售场景,商家拉取在新零售工作台设置的券数据

func NewTmallNrtCoupontemplateQueryRequest

func NewTmallNrtCoupontemplateQueryRequest() *TmallNrtCoupontemplateQueryRequest

初始化TmallNrtCoupontemplateQueryRequest对象

func (TmallNrtCoupontemplateQueryRequest) GetApiMethodName

func (r TmallNrtCoupontemplateQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtCoupontemplateQueryRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TmallNrtCoupontemplateQueryRequest) GetBizCode

BizCode Getter

func (TmallNrtCoupontemplateQueryRequest) GetCouponTypeList

func (r TmallNrtCoupontemplateQueryRequest) GetCouponTypeList() []int64

CouponTypeList Getter

func (TmallNrtCoupontemplateQueryRequest) GetCurrentPage

func (r TmallNrtCoupontemplateQueryRequest) GetCurrentPage() int64

CurrentPage Getter

func (TmallNrtCoupontemplateQueryRequest) GetPageSize

func (r TmallNrtCoupontemplateQueryRequest) GetPageSize() int64

PageSize Getter

func (*TmallNrtCoupontemplateQueryRequest) SetBizCode

func (r *TmallNrtCoupontemplateQueryRequest) SetBizCode(bizCode string) error

BizCode Setter 业务code阿里指定

func (*TmallNrtCoupontemplateQueryRequest) SetCouponTypeList

func (r *TmallNrtCoupontemplateQueryRequest) SetCouponTypeList(couponTypeList []int64) error

CouponTypeList Setter 券列表

func (*TmallNrtCoupontemplateQueryRequest) SetCurrentPage

func (r *TmallNrtCoupontemplateQueryRequest) SetCurrentPage(currentPage int64) error

CurrentPage Setter 当前页

func (*TmallNrtCoupontemplateQueryRequest) SetPageSize

func (r *TmallNrtCoupontemplateQueryRequest) SetPageSize(pageSize int64) error

PageSize Setter 每页数据数量

type TmallNrtCoupontemplateQueryResponse

type TmallNrtCoupontemplateQueryResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_coupontemplate_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// model
	Model *PageData `json:"model,omitempty" xml:"model,omitempty"`
}

券模板查询 成功返回结果

type TmallNrtEasyhomememberSynAPIResponse

type TmallNrtEasyhomememberSynAPIResponse struct {
	model.CommonResponse
	TmallNrtEasyhomememberSynResponse
}

会员信息同 API返回值 tmall.nrt.easyhomemember.syn

居然之家将会员信息同步到零售中台 包含基本的会员信息

type TmallNrtEasyhomememberSynRequest

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

会员信息同 API请求 tmall.nrt.easyhomemember.syn

居然之家将会员信息同步到零售中台 包含基本的会员信息

func NewTmallNrtEasyhomememberSynRequest

func NewTmallNrtEasyhomememberSynRequest() *TmallNrtEasyhomememberSynRequest

初始化TmallNrtEasyhomememberSynRequest对象

func (TmallNrtEasyhomememberSynRequest) GetApiMethodName

func (r TmallNrtEasyhomememberSynRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtEasyhomememberSynRequest) GetApiParams

func (r TmallNrtEasyhomememberSynRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtEasyhomememberSynRequest) GetParam

Param Getter

func (*TmallNrtEasyhomememberSynRequest) SetParam

Param Setter 入参

type TmallNrtEasyhomememberSynResponse

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

会员信息同 成功返回结果

type TmallNrtItemGetAPIResponse

type TmallNrtItemGetAPIResponse struct {
	model.CommonResponse
	TmallNrtItemGetResponse
}

家装新零售商品信息查询 API返回值 tmall.nrt.item.get

查询新零售商品信息

type TmallNrtItemGetRequest

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

家装新零售商品信息查询 API请求 tmall.nrt.item.get

查询新零售商品信息

func NewTmallNrtItemGetRequest

func NewTmallNrtItemGetRequest() *TmallNrtItemGetRequest

初始化TmallNrtItemGetRequest对象

func (TmallNrtItemGetRequest) GetApiMethodName

func (r TmallNrtItemGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtItemGetRequest) GetApiParams

func (r TmallNrtItemGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtItemGetRequest) GetBoothId

func (r TmallNrtItemGetRequest) GetBoothId() int64

BoothId Getter

func (TmallNrtItemGetRequest) GetItemId

func (r TmallNrtItemGetRequest) GetItemId() int64

ItemId Getter

func (*TmallNrtItemGetRequest) SetBoothId

func (r *TmallNrtItemGetRequest) SetBoothId(boothId int64) error

BoothId Setter 城市站id

func (*TmallNrtItemGetRequest) SetItemId

func (r *TmallNrtItemGetRequest) SetItemId(itemId int64) error

ItemId Setter 商品id

type TmallNrtItemGetResponse

type TmallNrtItemGetResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_item_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	TmallNrtItemGet *TmallNrtItemGetResultDo `json:"tmall_nrt_item_get,omitempty" xml:"tmall_nrt_item_get,omitempty"`
}

家装新零售商品信息查询 成功返回结果

type TmallNrtItemGetResultDo

type TmallNrtItemGetResultDo struct {
	// 是否成功
	Data *TopHomeItemDto `json:"data,omitempty" xml:"data,omitempty"`
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallNrtItemGetResultDo

type TmallNrtItemMainSynchronizeAPIResponse

type TmallNrtItemMainSynchronizeAPIResponse struct {
	model.CommonResponse
	TmallNrtItemMainSynchronizeResponse
}

家装新零售主商品同步至阿里 API返回值 tmall.nrt.item.main.synchronize

同步红星美凯龙存量商品到阿里

type TmallNrtItemMainSynchronizeRequest

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

家装新零售主商品同步至阿里 API请求 tmall.nrt.item.main.synchronize

同步红星美凯龙存量商品到阿里

func NewTmallNrtItemMainSynchronizeRequest

func NewTmallNrtItemMainSynchronizeRequest() *TmallNrtItemMainSynchronizeRequest

初始化TmallNrtItemMainSynchronizeRequest对象

func (TmallNrtItemMainSynchronizeRequest) GetApiMethodName

func (r TmallNrtItemMainSynchronizeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtItemMainSynchronizeRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TmallNrtItemMainSynchronizeRequest) GetBoothId

BoothId Getter

func (TmallNrtItemMainSynchronizeRequest) GetCid

Cid Getter

func (TmallNrtItemMainSynchronizeRequest) GetDealerCode

func (r TmallNrtItemMainSynchronizeRequest) GetDealerCode() string

DealerCode Getter

func (TmallNrtItemMainSynchronizeRequest) GetMallId

MallId Getter

func (TmallNrtItemMainSynchronizeRequest) GetOuterId

OuterId Getter

func (TmallNrtItemMainSynchronizeRequest) GetOuterProps

OuterProps Getter

func (TmallNrtItemMainSynchronizeRequest) GetPrice

Price Getter

func (TmallNrtItemMainSynchronizeRequest) GetProps

Props Getter

func (TmallNrtItemMainSynchronizeRequest) GetTitle

Title Getter

func (*TmallNrtItemMainSynchronizeRequest) SetBoothId

func (r *TmallNrtItemMainSynchronizeRequest) SetBoothId(boothId string) error

BoothId Setter 摊位id

func (*TmallNrtItemMainSynchronizeRequest) SetCid

Cid Setter 叶子类目id

func (*TmallNrtItemMainSynchronizeRequest) SetDealerCode

func (r *TmallNrtItemMainSynchronizeRequest) SetDealerCode(dealerCode string) error

DealerCode Setter 经销商编码

func (*TmallNrtItemMainSynchronizeRequest) SetMallId

func (r *TmallNrtItemMainSynchronizeRequest) SetMallId(mallId string) error

MallId Setter 卖场id

func (*TmallNrtItemMainSynchronizeRequest) SetOuterId

func (r *TmallNrtItemMainSynchronizeRequest) SetOuterId(outerId string) error

OuterId Setter 商家编码

func (*TmallNrtItemMainSynchronizeRequest) SetOuterProps

func (r *TmallNrtItemMainSynchronizeRequest) SetOuterProps(outerProps *MacallineItemExtDto) error

OuterProps Setter 系统自动生成

func (*TmallNrtItemMainSynchronizeRequest) SetPrice

func (r *TmallNrtItemMainSynchronizeRequest) SetPrice(price string) error

Price Setter 价格

func (*TmallNrtItemMainSynchronizeRequest) SetProps

Props Setter 类目属性

func (*TmallNrtItemMainSynchronizeRequest) SetTitle

func (r *TmallNrtItemMainSynchronizeRequest) SetTitle(title string) error

Title Setter 商品名

type TmallNrtItemMainSynchronizeResponse

type TmallNrtItemMainSynchronizeResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_item_main_synchronize_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	TmallNrtItemMainSynchronize *TmallNrtItemMainSynchronizeResultDo `json:"tmall_nrt_item_main_synchronize,omitempty" xml:"tmall_nrt_item_main_synchronize,omitempty"`
}

家装新零售主商品同步至阿里 成功返回结果

type TmallNrtItemMainSynchronizeResultDo

type TmallNrtItemMainSynchronizeResultDo struct {
	// 返回值
	Data *NrtItemSyncResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 调用是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
}

TmallNrtItemMainSynchronizeResultDo

type TmallNrtMemberOpenidAPIResponse

type TmallNrtMemberOpenidAPIResponse struct {
	model.CommonResponse
	TmallNrtMemberOpenidResponse
}

根据会员手机查询openId API返回值 tmall.nrt.member.openid

根据会员手机查询openId

type TmallNrtMemberOpenidRequest

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

根据会员手机查询openId API请求 tmall.nrt.member.openid

根据会员手机查询openId

func NewTmallNrtMemberOpenidRequest

func NewTmallNrtMemberOpenidRequest() *TmallNrtMemberOpenidRequest

初始化TmallNrtMemberOpenidRequest对象

func (TmallNrtMemberOpenidRequest) GetApiMethodName

func (r TmallNrtMemberOpenidRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtMemberOpenidRequest) GetApiParams

func (r TmallNrtMemberOpenidRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtMemberOpenidRequest) GetNrtMemberDto

func (r TmallNrtMemberOpenidRequest) GetNrtMemberDto() *NrtMemberDTO

NrtMemberDto Getter

func (*TmallNrtMemberOpenidRequest) SetNrtMemberDto

func (r *TmallNrtMemberOpenidRequest) SetNrtMemberDto(nrtMemberDto *NrtMemberDTO) error

NrtMemberDto Setter 会员DTO

type TmallNrtMemberOpenidResponse

type TmallNrtMemberOpenidResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_member_openid_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *TmallNrtMemberOpenidResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

根据会员手机查询openId 成功返回结果

type TmallNrtMemberOpenidResultDo

type TmallNrtMemberOpenidResultDo struct {
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误信息
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
	// 返回的业务数据
	Data *MemberSynResponse `json:"data,omitempty" xml:"data,omitempty"`
}

TmallNrtMemberOpenidResultDo

type TmallNrtMemberSynchronizeAPIResponse

type TmallNrtMemberSynchronizeAPIResponse struct {
	model.CommonResponse
	TmallNrtMemberSynchronizeResponse
}

新零售会员同步接口 API返回值 tmall.nrt.member.synchronize

新零售会员上翻接口,商家的会员信息同步至阿里侧

type TmallNrtMemberSynchronizeRequest

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

新零售会员同步接口 API请求 tmall.nrt.member.synchronize

新零售会员上翻接口,商家的会员信息同步至阿里侧

func NewTmallNrtMemberSynchronizeRequest

func NewTmallNrtMemberSynchronizeRequest() *TmallNrtMemberSynchronizeRequest

初始化TmallNrtMemberSynchronizeRequest对象

func (TmallNrtMemberSynchronizeRequest) GetApiMethodName

func (r TmallNrtMemberSynchronizeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtMemberSynchronizeRequest) GetApiParams

func (r TmallNrtMemberSynchronizeRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtMemberSynchronizeRequest) GetNrtMemberDto

func (r TmallNrtMemberSynchronizeRequest) GetNrtMemberDto() *NrtMemberDTO

NrtMemberDto Getter

func (*TmallNrtMemberSynchronizeRequest) SetNrtMemberDto

func (r *TmallNrtMemberSynchronizeRequest) SetNrtMemberDto(nrtMemberDto *NrtMemberDTO) error

NrtMemberDto Setter 会员DTO

type TmallNrtMemberSynchronizeResponse

type TmallNrtMemberSynchronizeResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_member_synchronize_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	Data *MemberSynResponse `json:"data,omitempty" xml:"data,omitempty"`
}

新零售会员同步接口 成功返回结果

type TmallNrtPayMerchantStallSigningModifyAPIResponse

type TmallNrtPayMerchantStallSigningModifyAPIResponse struct {
	model.CommonResponse
	TmallNrtPayMerchantStallSigningModifyResponse
}

三级商户进件修改 API返回值 tmall.nrt.pay.merchant.stall.signing.modify

三级商户进件修改

type TmallNrtPayMerchantStallSigningModifyRequest

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

三级商户进件修改 API请求 tmall.nrt.pay.merchant.stall.signing.modify

三级商户进件修改

func NewTmallNrtPayMerchantStallSigningModifyRequest

func NewTmallNrtPayMerchantStallSigningModifyRequest() *TmallNrtPayMerchantStallSigningModifyRequest

初始化TmallNrtPayMerchantStallSigningModifyRequest对象

func (TmallNrtPayMerchantStallSigningModifyRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TmallNrtPayMerchantStallSigningModifyRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TmallNrtPayMerchantStallSigningModifyRequest) GetReq

Req Getter

func (*TmallNrtPayMerchantStallSigningModifyRequest) SetReq

Req Setter 请求参数

type TmallNrtPayMerchantStallSigningModifyResponse

type TmallNrtPayMerchantStallSigningModifyResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_pay_merchant_stall_signing_modify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TmallNrtPayMerchantStallSigningModifyResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

三级商户进件修改 成功返回结果

type TmallNrtPayMerchantStallSigningModifyResultDo

type TmallNrtPayMerchantStallSigningModifyResultDo struct {
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 系统自动生成
	Data *StallSigningRespDto `json:"data,omitempty" xml:"data,omitempty"`
	// 系统自动生成
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 系统自动生成
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
}

TmallNrtPayMerchantStallSigningModifyResultDo

type TmallNrtSimpleitemQueryAPIResponse

type TmallNrtSimpleitemQueryAPIResponse struct {
	model.CommonResponse
	TmallNrtSimpleitemQueryResponse
}

简易商品查询接口 API返回值 tmall.nrt.simpleitem.query

为居然之家和阿里的合资公司 homeStyler提供简易的商品信息查询 包含商品名称 图片 状态

后续合资公司服务会迁移到内网 暂时过渡用

type TmallNrtSimpleitemQueryModel

type TmallNrtSimpleitemQueryModel struct {
	// 0,1是正常状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 商品主图
	ItemPic string `json:"item_pic,omitempty" xml:"item_pic,omitempty"`
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 商品编码
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

TmallNrtSimpleitemQueryModel

type TmallNrtSimpleitemQueryRequest

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

简易商品查询接口 API请求 tmall.nrt.simpleitem.query

为居然之家和阿里的合资公司 homeStyler提供简易的商品信息查询 包含商品名称 图片 状态

后续合资公司服务会迁移到内网 暂时过渡用

func NewTmallNrtSimpleitemQueryRequest

func NewTmallNrtSimpleitemQueryRequest() *TmallNrtSimpleitemQueryRequest

初始化TmallNrtSimpleitemQueryRequest对象

func (TmallNrtSimpleitemQueryRequest) GetApiMethodName

func (r TmallNrtSimpleitemQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtSimpleitemQueryRequest) GetApiParams

func (r TmallNrtSimpleitemQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtSimpleitemQueryRequest) GetIds

Ids Getter

func (*TmallNrtSimpleitemQueryRequest) SetIds

func (r *TmallNrtSimpleitemQueryRequest) SetIds(ids []int64) error

Ids Setter 商品编码数组

type TmallNrtSimpleitemQueryResponse

type TmallNrtSimpleitemQueryResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_simpleitem_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
	// 对象
	Models []TmallNrtSimpleitemQueryModel `json:"models,omitempty" xml:"models>tmall_nrt_simpleitem_query_model,omitempty"`
}

简易商品查询接口 成功返回结果

type TmallNrtStallPayratioSynchronizeAPIResponse

type TmallNrtStallPayratioSynchronizeAPIResponse struct {
	model.CommonResponse
	TmallNrtStallPayratioSynchronizeResponse
}

同步摊位收银比例 API返回值 tmall.nrt.stall.payratio.synchronize

ISV同步摊位收银比例到阿里

type TmallNrtStallPayratioSynchronizeRequest

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

同步摊位收银比例 API请求 tmall.nrt.stall.payratio.synchronize

ISV同步摊位收银比例到阿里

func NewTmallNrtStallPayratioSynchronizeRequest

func NewTmallNrtStallPayratioSynchronizeRequest() *TmallNrtStallPayratioSynchronizeRequest

初始化TmallNrtStallPayratioSynchronizeRequest对象

func (TmallNrtStallPayratioSynchronizeRequest) GetApiMethodName

func (r TmallNrtStallPayratioSynchronizeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtStallPayratioSynchronizeRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TmallNrtStallPayratioSynchronizeRequest) GetBizCode

BizCode Getter

func (TmallNrtStallPayratioSynchronizeRequest) GetContractCode

func (r TmallNrtStallPayratioSynchronizeRequest) GetContractCode() string

ContractCode Getter

func (TmallNrtStallPayratioSynchronizeRequest) GetPayRatio

PayRatio Getter

func (TmallNrtStallPayratioSynchronizeRequest) GetStoreCode

StoreCode Getter

func (*TmallNrtStallPayratioSynchronizeRequest) SetBizCode

func (r *TmallNrtStallPayratioSynchronizeRequest) SetBizCode(bizCode string) error

BizCode Setter 业务编码

func (*TmallNrtStallPayratioSynchronizeRequest) SetContractCode

func (r *TmallNrtStallPayratioSynchronizeRequest) SetContractCode(contractCode string) error

ContractCode Setter 合同编号

func (*TmallNrtStallPayratioSynchronizeRequest) SetPayRatio

func (r *TmallNrtStallPayratioSynchronizeRequest) SetPayRatio(payRatio string) error

PayRatio Setter 收银比例

func (*TmallNrtStallPayratioSynchronizeRequest) SetStoreCode

func (r *TmallNrtStallPayratioSynchronizeRequest) SetStoreCode(storeCode string) error

StoreCode Setter 摊位编码

type TmallNrtStallPayratioSynchronizeResponse

type TmallNrtStallPayratioSynchronizeResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_stall_payratio_synchronize_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
}

同步摊位收银比例 成功返回结果

type TmallNrtStallSynchronizeAPIResponse

type TmallNrtStallSynchronizeAPIResponse struct {
	model.CommonResponse
	TmallNrtStallSynchronizeResponse
}

摊位信息同步 API返回值 tmall.nrt.stall.synchronize

摊位信息同步

type TmallNrtStallSynchronizeRequest

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

摊位信息同步 API请求 tmall.nrt.stall.synchronize

摊位信息同步

func NewTmallNrtStallSynchronizeRequest

func NewTmallNrtStallSynchronizeRequest() *TmallNrtStallSynchronizeRequest

初始化TmallNrtStallSynchronizeRequest对象

func (TmallNrtStallSynchronizeRequest) GetApiMethodName

func (r TmallNrtStallSynchronizeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallNrtStallSynchronizeRequest) GetApiParams

func (r TmallNrtStallSynchronizeRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallNrtStallSynchronizeRequest) GetStall

Stall Getter

func (*TmallNrtStallSynchronizeRequest) SetStall

Stall Setter 参数对象

type TmallNrtStallSynchronizeResponse

type TmallNrtStallSynchronizeResponse struct {
	XMLName xml.Name `xml:"tmall_nrt_stall_synchronize_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	TmallNrtStallSynchronize *ResultDO `json:"tmall_nrt_stall_synchronize,omitempty" xml:"tmall_nrt_stall_synchronize,omitempty"`
}

摊位信息同步 成功返回结果

type TopHomeItemDto

type TopHomeItemDto struct {
	// features
	Features string `json:"features,omitempty" xml:"features,omitempty"`
	// 商品状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 摊位ID
	BoothId string `json:"booth_id,omitempty" xml:"booth_id,omitempty"`
	// 叶子类目ID
	CId int64 `json:"c_id,omitempty" xml:"c_id,omitempty"`
	// 类目属性
	CProps []CategoryPropDto `json:"c_props,omitempty" xml:"c_props>category_prop_dto,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 经销商编码
	DealerCode string `json:"dealer_code,omitempty" xml:"dealer_code,omitempty"`
	// 描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 系统自动生成
	Ext *MacallineItemExtDto `json:"ext,omitempty" xml:"ext,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 图片信息
	Images []ItemImageDto `json:"images,omitempty" xml:"images>item_image_dto,omitempty"`
	// 商品类型,1:主商品,2:摊位商品,3:城市站商品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 主商品ID
	MainItemId int64 `json:"main_item_id,omitempty" xml:"main_item_id,omitempty"`
	// 卖场ID
	MallId string `json:"mall_id,omitempty" xml:"mall_id,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// SKU
	Skus []SkuDto `json:"skus,omitempty" xml:"skus>sku_dto,omitempty"`
	// 商品名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 修改时间
	UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"`
}

TopHomeItemDto

Source Files

Jump to

Keyboard shortcuts

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