nrpos

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package nrpos 包含新零售POS相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlibabaMosCommdyOfflineGetfileurlAPIRequest added in v1.3.4

func ReleaseAlibabaMosCommdyOfflineGetfileurlAPIRequest(v *AlibabaMosCommdyOfflineGetfileurlAPIRequest)

ReleaseAlibabaMosCommdyOfflineGetfileurlAPIRequest 将 AlibabaMosCommdyOfflineGetfileurlAPIRequest 放入 sync.Pool

func ReleaseAlibabaMosCommdyOfflineGetfileurlAPIResponse added in v1.3.4

func ReleaseAlibabaMosCommdyOfflineGetfileurlAPIResponse(v *AlibabaMosCommdyOfflineGetfileurlAPIResponse)

ReleaseAlibabaMosCommdyOfflineGetfileurlAPIResponse 将 AlibabaMosCommdyOfflineGetfileurlAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMosCommdyOfflineGetfileurlResultDo added in v1.3.4

func ReleaseAlibabaMosCommdyOfflineGetfileurlResultDo(v *AlibabaMosCommdyOfflineGetfileurlResultDo)

ReleaseAlibabaMosCommdyOfflineGetfileurlResultDo 释放AlibabaMosCommdyOfflineGetfileurlResultDo

func ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest added in v1.3.4

func ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest(v *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest)

ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest 将 AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest 放入 sync.Pool

func ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse added in v1.3.4

func ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse(v *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse)

ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse 将 AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo added in v1.3.4

func ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo(v *AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo)

ReleaseAlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo 释放AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo

func ReleaseMerchandiseInfoDto added in v1.3.4

func ReleaseMerchandiseInfoDto(v *MerchandiseInfoDto)

ReleaseMerchandiseInfoDto 释放MerchandiseInfoDto

func ReleaseOfflineFileDto added in v1.3.4

func ReleaseOfflineFileDto(v *OfflineFileDto)

ReleaseOfflineFileDto 释放OfflineFileDto

func ReleaseQueryMerchandiseDto added in v1.3.4

func ReleaseQueryMerchandiseDto(v *QueryMerchandiseDto)

ReleaseQueryMerchandiseDto 释放QueryMerchandiseDto

Types

type AlibabaMosCommdyOfflineGetfileurlAPIRequest added in v1.2.0

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

AlibabaMosCommdyOfflineGetfileurlAPIRequest 去前置机pos商品离线文件下载地址查询接口 API请求 alibaba.mos.commdy.offline.getfileurl

去前置机-pos查询离线文件下载地址接口

func GetAlibabaMosCommdyOfflineGetfileurlAPIRequest added in v1.3.4

func GetAlibabaMosCommdyOfflineGetfileurlAPIRequest() *AlibabaMosCommdyOfflineGetfileurlAPIRequest

GetAlibabaMosCommdyOfflineGetfileurlRequest 从 sync.Pool 获取 AlibabaMosCommdyOfflineGetfileurlAPIRequest

func NewAlibabaMosCommdyOfflineGetfileurlRequest

func NewAlibabaMosCommdyOfflineGetfileurlRequest() *AlibabaMosCommdyOfflineGetfileurlAPIRequest

NewAlibabaMosCommdyOfflineGetfileurlRequest 初始化AlibabaMosCommdyOfflineGetfileurlAPIRequest对象

func (AlibabaMosCommdyOfflineGetfileurlAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMosCommdyOfflineGetfileurlAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMosCommdyOfflineGetfileurlAPIRequest) GetFileKeys added in v1.2.0

GetFileKeys FileKeys Getter

func (AlibabaMosCommdyOfflineGetfileurlAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMosCommdyOfflineGetfileurlAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMosCommdyOfflineGetfileurlAPIRequest) SetFileKeys added in v1.2.0

func (r *AlibabaMosCommdyOfflineGetfileurlAPIRequest) SetFileKeys(_fileKeys []string) error

SetFileKeys is FileKeys Setter 离线文件名称

type AlibabaMosCommdyOfflineGetfileurlAPIResponse

type AlibabaMosCommdyOfflineGetfileurlAPIResponse struct {
	model.CommonResponse
	AlibabaMosCommdyOfflineGetfileurlAPIResponseModel
}

AlibabaMosCommdyOfflineGetfileurlAPIResponse 去前置机pos商品离线文件下载地址查询接口 API返回值 alibaba.mos.commdy.offline.getfileurl

去前置机-pos查询离线文件下载地址接口

func GetAlibabaMosCommdyOfflineGetfileurlAPIResponse added in v1.3.4

func GetAlibabaMosCommdyOfflineGetfileurlAPIResponse() *AlibabaMosCommdyOfflineGetfileurlAPIResponse

GetAlibabaMosCommdyOfflineGetfileurlAPIResponse 从 sync.Pool 获取 AlibabaMosCommdyOfflineGetfileurlAPIResponse

func (*AlibabaMosCommdyOfflineGetfileurlAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMosCommdyOfflineGetfileurlAPIResponseModel added in v1.2.0

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

AlibabaMosCommdyOfflineGetfileurlAPIResponseModel is 去前置机pos商品离线文件下载地址查询接口 成功返回结果

func (*AlibabaMosCommdyOfflineGetfileurlAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMosCommdyOfflineGetfileurlResultDo

type AlibabaMosCommdyOfflineGetfileurlResultDo struct {
	// 返回结果合集
	Datas []OfflineFileDto `json:"datas,omitempty" xml:"datas>offline_file_dto,omitempty"`
	// 返回头
	Headers string `json:"headers,omitempty" xml:"headers,omitempty"`
	// null
	MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"`
	// null
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// 业务返回码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 业务返回信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// http请求返回码
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaMosCommdyOfflineGetfileurlResultDo 结构体

func GetAlibabaMosCommdyOfflineGetfileurlResultDo added in v1.3.4

func GetAlibabaMosCommdyOfflineGetfileurlResultDo() *AlibabaMosCommdyOfflineGetfileurlResultDo

GetAlibabaMosCommdyOfflineGetfileurlResultDo() 从对象池中获取AlibabaMosCommdyOfflineGetfileurlResultDo

type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest added in v1.2.0

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

AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest 去前置机商品在线查询 API请求 alibaba.mos.commdy.posmerchandise.getmerchandise

去前置机商品在线查询接口

func GetAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest added in v1.3.4

func GetAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest() *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest

GetAlibabaMosCommdyPosmerchandiseGetmerchandiseRequest 从 sync.Pool 获取 AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest

func NewAlibabaMosCommdyPosmerchandiseGetmerchandiseRequest

func NewAlibabaMosCommdyPosmerchandiseGetmerchandiseRequest() *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest

NewAlibabaMosCommdyPosmerchandiseGetmerchandiseRequest 初始化AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest对象

func (AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) GetPosMerchandiseList added in v1.2.0

GetPosMerchandiseList PosMerchandiseList Getter

func (AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) SetPosMerchandiseList added in v1.2.0

func (r *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) SetPosMerchandiseList(_posMerchandiseList []QueryMerchandiseDto) error

SetPosMerchandiseList is PosMerchandiseList Setter 查询参数列表

type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse

type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse struct {
	model.CommonResponse
	AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponseModel
}

AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse 去前置机商品在线查询 API返回值 alibaba.mos.commdy.posmerchandise.getmerchandise

去前置机商品在线查询接口

func GetAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse added in v1.3.4

func GetAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse() *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse

GetAlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse 从 sync.Pool 获取 AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse

func (*AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponseModel added in v1.2.0

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

AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponseModel is 去前置机商品在线查询 成功返回结果

func (*AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo

type AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo struct {
	// 返回数据,
	Datas []MerchandiseInfoDto `json:"datas,omitempty" xml:"datas>merchandise_info_dto,omitempty"`
	// 返回头
	Headers string `json:"headers,omitempty" xml:"headers,omitempty"`
	// null
	MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"`
	// null
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// 业务返回码,801表示商品不存在
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 业务返回信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// http请求返回码
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo 结构体

func GetAlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo added in v1.3.4

func GetAlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo() *AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo

GetAlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo() 从对象池中获取AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo

type MerchandiseInfoDto

type MerchandiseInfoDto struct {
	// 门店号
	Storeno string `json:"storeno,omitempty" xml:"storeno,omitempty"`
	// VIP活动折扣规则
	A0551 string `json:"a0551,omitempty" xml:"a0551,omitempty"`
	// VIP普通折扣规则
	A0550 string `json:"a0550,omitempty" xml:"a0550,omitempty"`
	// 活动套号
	A0545 string `json:"a0545,omitempty" xml:"a0545,omitempty"`
	// 保留字段
	A0544 string `json:"a0544,omitempty" xml:"a0544,omitempty"`
	// 实时积分基数
	A0543 string `json:"a0543,omitempty" xml:"a0543,omitempty"`
	// 保留字段
	A0542 string `json:"a0542,omitempty" xml:"a0542,omitempty"`
	// 会员价
	A0541 string `json:"a0541,omitempty" xml:"a0541,omitempty"`
	// 是否接受VIP 0=不接受 1=接受
	A0540 string `json:"a0540,omitempty" xml:"a0540,omitempty"`
	// 最低限制折扣,该商品所有折扣累加不能小于此折扣
	A0531 string `json:"a0531,omitempty" xml:"a0531,omitempty"`
	// 用于文化广场最高折扣,跟最低折扣对应
	A0530 string `json:"a0530,omitempty" xml:"a0530,omitempty"`
	// 库存数量,此功能未启用
	A0526 string `json:"a0526,omitempty" xml:"a0526,omitempty"`
	// 默认折扣率
	A0525 string `json:"a0525,omitempty" xml:"a0525,omitempty"`
	// 默认优惠价格
	A0524 string `json:"a0524,omitempty" xml:"a0524,omitempty"`
	// 折扣类别   0=不允许 1=允许
	A0523 string `json:"a0523,omitempty" xml:"a0523,omitempty"`
	// 价格下限,此功能已取消
	A0522 string `json:"a0522,omitempty" xml:"a0522,omitempty"`
	// 价格上限,此功能已取消
	A0521 string `json:"a0521,omitempty" xml:"a0521,omitempty"`
	// 定价方式   0=定价 1=开价
	A0520 string `json:"a0520,omitempty" xml:"a0520,omitempty"`
	// 零售价
	A0517 string `json:"a0517,omitempty" xml:"a0517,omitempty"`
	// 保留字段
	A0516 string `json:"a0516,omitempty" xml:"a0516,omitempty"`
	// 部门
	A0508 string `json:"a0508,omitempty" xml:"a0508,omitempty"`
	// 经营方式
	A0506 string `json:"a0506,omitempty" xml:"a0506,omitempty"`
	// 专柜
	A0504 string `json:"a0504,omitempty" xml:"a0504,omitempty"`
	// 商品名称
	A0503 string `json:"a0503,omitempty" xml:"a0503,omitempty"`
	// 商品条码
	A0502 string `json:"a0502,omitempty" xml:"a0502,omitempty"`
	// 商品编码
	A0501 string `json:"a0501,omitempty" xml:"a0501,omitempty"`
}

MerchandiseInfoDto 结构体

func GetMerchandiseInfoDto added in v1.3.4

func GetMerchandiseInfoDto() *MerchandiseInfoDto

GetMerchandiseInfoDto() 从对象池中获取MerchandiseInfoDto

type OfflineFileDto

type OfflineFileDto struct {
	// 文件名称
	FileKey string `json:"file_key,omitempty" xml:"file_key,omitempty"`
	// 文件下载地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

OfflineFileDto 结构体

func GetOfflineFileDto added in v1.3.4

func GetOfflineFileDto() *OfflineFileDto

GetOfflineFileDto() 从对象池中获取OfflineFileDto

type QueryMerchandiseDto

type QueryMerchandiseDto struct {
	// 门店号
	Storeno string `json:"storeno,omitempty" xml:"storeno,omitempty"`
	// 商品编码
	A0501 string `json:"a0501,omitempty" xml:"a0501,omitempty"`
}

QueryMerchandiseDto 结构体

func GetQueryMerchandiseDto added in v1.3.4

func GetQueryMerchandiseDto() *QueryMerchandiseDto

GetQueryMerchandiseDto() 从对象池中获取QueryMerchandiseDto

Jump to

Keyboard shortcuts

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