v20210515

package
v1.0.941 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CAM签名/鉴权错误。
	AUTHFAILURE = "AuthFailure"

	// 渠道商服务时间已到期。
	AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"

	// 当前没有创建任何企业。
	AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"

	// 企业服务时间已到期。
	AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"

	// 操作失败。
	FAILEDOPERATION = "FailedOperation"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"
)
View Source
const APIVersion = "2021-05-15"

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrItem added in v1.0.687

type AttrItem struct {
	// 字段名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 字段值
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`

	// 字段类型
	// text:文本类型,
	// longtext:长文本类型, banner:单图片类型, image:多图片类型,
	// video:视频类型,
	// mp:小程序类型
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// 只读
	ReadOnly *bool `json:"ReadOnly,omitnil,omitempty" name:"ReadOnly"`

	// 扫码展示
	Hidden *bool `json:"Hidden,omitnil,omitempty" name:"Hidden"`

	// 多个值
	Values []*string `json:"Values,omitnil,omitempty" name:"Values"`

	// 类型标识
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// 扩展字段
	Ext *string `json:"Ext,omitnil,omitempty" name:"Ext"`
}

type AuthorizedTransferRequest added in v1.0.640

type AuthorizedTransferRequest struct {
	*tchttp.BaseRequest

	// 业务加密入参。
	BusinessSecurityData *InputEncryptData `json:"BusinessSecurityData,omitnil,omitempty" name:"BusinessSecurityData"`
}

func NewAuthorizedTransferRequest added in v1.0.640

func NewAuthorizedTransferRequest() (request *AuthorizedTransferRequest)

func (*AuthorizedTransferRequest) FromJsonString added in v1.0.640

func (r *AuthorizedTransferRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AuthorizedTransferRequest) ToJsonString added in v1.0.640

func (r *AuthorizedTransferRequest) ToJsonString() string

type AuthorizedTransferRequestParams added in v1.0.640

type AuthorizedTransferRequestParams struct {
	// 业务加密入参。
	BusinessSecurityData *InputEncryptData `json:"BusinessSecurityData,omitnil,omitempty" name:"BusinessSecurityData"`
}

Predefined struct for user

type AuthorizedTransferResponse added in v1.0.640

type AuthorizedTransferResponse struct {
	*tchttp.BaseResponse
	Response *AuthorizedTransferResponseParams `json:"Response"`
}

func NewAuthorizedTransferResponse added in v1.0.640

func NewAuthorizedTransferResponse() (response *AuthorizedTransferResponse)

func (*AuthorizedTransferResponse) FromJsonString added in v1.0.640

func (r *AuthorizedTransferResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AuthorizedTransferResponse) ToJsonString added in v1.0.640

func (r *AuthorizedTransferResponse) ToJsonString() string

type AuthorizedTransferResponseParams added in v1.0.640

type AuthorizedTransferResponseParams struct {
	// 业务出参。
	Data *OutputAuthorizedTransfer `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Chain added in v1.0.937

type Chain struct {
	// 码url
	// 注意:此字段可能返回 null,表示取不到有效值。
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 上链数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	Data []*ChainValue `json:"Data,omitnil,omitempty" name:"Data"`
}

type ChainData

type ChainData struct {
	// 区块hash
	// 注意:此字段可能返回 null,表示取不到有效值。
	BlockHash *string `json:"BlockHash,omitnil,omitempty" name:"BlockHash"`

	// 区块高度
	// 注意:此字段可能返回 null,表示取不到有效值。
	BlockHeight *string `json:"BlockHeight,omitnil,omitempty" name:"BlockHeight"`

	// 区块时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	BlockTime *string `json:"BlockTime,omitnil,omitempty" name:"BlockTime"`
}

type ChainValue added in v1.0.937

type ChainValue struct {
	// 标题名字
	// 注意:此字段可能返回 null,表示取不到有效值。
	Label *string `json:"Label,omitnil,omitempty" name:"Label"`

	// 类型,文字:"text",图片:"image"
	// 注意:此字段可能返回 null,表示取不到有效值。
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// 值,文字类型:"abc",图片类型:""/images/img.png"
	// 注意:此字段可能返回 null,表示取不到有效值。
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) AuthorizedTransfer added in v1.0.640

func (c *Client) AuthorizedTransfer(request *AuthorizedTransferRequest) (response *AuthorizedTransferResponse, err error)

AuthorizedTransfer 接收客户侧的用户已授权的号码。

func (*Client) AuthorizedTransferWithContext added in v1.0.640

func (c *Client) AuthorizedTransferWithContext(ctx context.Context, request *AuthorizedTransferRequest) (response *AuthorizedTransferResponse, err error)

AuthorizedTransfer 接收客户侧的用户已授权的号码。

func (*Client) CreateChainBatch added in v1.0.937

func (c *Client) CreateChainBatch(request *CreateChainBatchRequest) (response *CreateChainBatchResponse, err error)

CreateChainBatch 批量上链接口

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateChainBatchWithContext added in v1.0.937

func (c *Client) CreateChainBatchWithContext(ctx context.Context, request *CreateChainBatchRequest) (response *CreateChainBatchResponse, err error)

CreateChainBatch 批量上链接口

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCodeBatch

func (c *Client) CreateCodeBatch(request *CreateCodeBatchRequest) (response *CreateCodeBatchResponse, err error)

CreateCodeBatch 新增批次

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCodeBatchWithContext

func (c *Client) CreateCodeBatchWithContext(ctx context.Context, request *CreateCodeBatchRequest) (response *CreateCodeBatchResponse, err error)

CreateCodeBatch 新增批次

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCodePack

func (c *Client) CreateCodePack(request *CreateCodePackRequest) (response *CreateCodePackResponse, err error)

CreateCodePack 生成普通码包

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCodePackWithContext

func (c *Client) CreateCodePackWithContext(ctx context.Context, request *CreateCodePackRequest) (response *CreateCodePackResponse, err error)

CreateCodePack 生成普通码包

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCorporationOrder added in v1.0.529

func (c *Client) CreateCorporationOrder(request *CreateCorporationOrderRequest) (response *CreateCorporationOrderResponse, err error)

CreateCorporationOrder 以订单方式新建企业信息/配额信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCorporationOrderWithContext added in v1.0.529

func (c *Client) CreateCorporationOrderWithContext(ctx context.Context, request *CreateCorporationOrderRequest) (response *CreateCorporationOrderResponse, err error)

CreateCorporationOrder 以订单方式新建企业信息/配额信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCustomPack added in v1.0.515

func (c *Client) CreateCustomPack(request *CreateCustomPackRequest) (response *CreateCustomPackResponse, err error)

CreateCustomPack 生成自定义码包

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCustomPackWithContext added in v1.0.515

func (c *Client) CreateCustomPackWithContext(ctx context.Context, request *CreateCustomPackRequest) (response *CreateCustomPackResponse, err error)

CreateCustomPack 生成自定义码包

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCustomRule added in v1.0.515

func (c *Client) CreateCustomRule(request *CreateCustomRuleRequest) (response *CreateCustomRuleResponse, err error)

CreateCustomRule 新建自定义码规则

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateCustomRuleWithContext added in v1.0.515

func (c *Client) CreateCustomRuleWithContext(ctx context.Context, request *CreateCustomRuleRequest) (response *CreateCustomRuleResponse, err error)

CreateCustomRule 新建自定义码规则

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateMerchant

func (c *Client) CreateMerchant(request *CreateMerchantRequest) (response *CreateMerchantResponse, err error)

CreateMerchant 新建商户

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateMerchantWithContext

func (c *Client) CreateMerchantWithContext(ctx context.Context, request *CreateMerchantRequest) (response *CreateMerchantResponse, err error)

CreateMerchant 新建商户

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateProduct

func (c *Client) CreateProduct(request *CreateProductRequest) (response *CreateProductResponse, err error)

CreateProduct 新建商品

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateProductWithContext

func (c *Client) CreateProductWithContext(ctx context.Context, request *CreateProductRequest) (response *CreateProductResponse, err error)

CreateProduct 新建商品

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceChain

func (c *Client) CreateTraceChain(request *CreateTraceChainRequest) (response *CreateTraceChainResponse, err error)

CreateTraceChain 上链溯源信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceChainWithContext

func (c *Client) CreateTraceChainWithContext(ctx context.Context, request *CreateTraceChainRequest) (response *CreateTraceChainResponse, err error)

CreateTraceChain 上链溯源信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceCodes

func (c *Client) CreateTraceCodes(request *CreateTraceCodesRequest) (response *CreateTraceCodesResponse, err error)

CreateTraceCodes 批量绑定指定批次并激活二维码,只支持平台发的码,且只会激活没有使用过的码

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceCodesAsync added in v1.0.515

func (c *Client) CreateTraceCodesAsync(request *CreateTraceCodesAsyncRequest) (response *CreateTraceCodesAsyncResponse, err error)

CreateTraceCodesAsync 异步导入激活码包,如果是第三方码包,需要域名跟配置的匹配

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceCodesAsyncWithContext added in v1.0.515

func (c *Client) CreateTraceCodesAsyncWithContext(ctx context.Context, request *CreateTraceCodesAsyncRequest) (response *CreateTraceCodesAsyncResponse, err error)

CreateTraceCodesAsync 异步导入激活码包,如果是第三方码包,需要域名跟配置的匹配

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceCodesWithContext

func (c *Client) CreateTraceCodesWithContext(ctx context.Context, request *CreateTraceCodesRequest) (response *CreateTraceCodesResponse, err error)

CreateTraceCodes 批量绑定指定批次并激活二维码,只支持平台发的码,且只会激活没有使用过的码

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceData

func (c *Client) CreateTraceData(request *CreateTraceDataRequest) (response *CreateTraceDataResponse, err error)

CreateTraceData 新增溯源信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTraceDataWithContext

func (c *Client) CreateTraceDataWithContext(ctx context.Context, request *CreateTraceDataRequest) (response *CreateTraceDataResponse, err error)

CreateTraceData 新增溯源信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DeleteCodeBatch

func (c *Client) DeleteCodeBatch(request *DeleteCodeBatchRequest) (response *DeleteCodeBatchResponse, err error)

DeleteCodeBatch 删除批次

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DeleteCodeBatchWithContext

func (c *Client) DeleteCodeBatchWithContext(ctx context.Context, request *DeleteCodeBatchRequest) (response *DeleteCodeBatchResponse, err error)

DeleteCodeBatch 删除批次

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DeleteMerchant

func (c *Client) DeleteMerchant(request *DeleteMerchantRequest) (response *DeleteMerchantResponse, err error)

DeleteMerchant 删除商户

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DeleteMerchantWithContext

func (c *Client) DeleteMerchantWithContext(ctx context.Context, request *DeleteMerchantRequest) (response *DeleteMerchantResponse, err error)

DeleteMerchant 删除商户

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DeleteProduct

func (c *Client) DeleteProduct(request *DeleteProductRequest) (response *DeleteProductResponse, err error)

DeleteProduct 删除商品,如果商品被使用,则不可删除

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DeleteProductWithContext

func (c *Client) DeleteProductWithContext(ctx context.Context, request *DeleteProductRequest) (response *DeleteProductResponse, err error)

DeleteProduct 删除商品,如果商品被使用,则不可删除

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DeleteTraceData

func (c *Client) DeleteTraceData(request *DeleteTraceDataRequest) (response *DeleteTraceDataResponse, err error)

DeleteTraceData 删除溯源信息,如果已经上链则不可删除

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"

func (*Client) DeleteTraceDataWithContext

func (c *Client) DeleteTraceDataWithContext(ctx context.Context, request *DeleteTraceDataRequest) (response *DeleteTraceDataResponse, err error)

DeleteTraceData 删除溯源信息,如果已经上链则不可删除

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"

func (*Client) DescribeAgentCorps added in v1.0.690

func (c *Client) DescribeAgentCorps(request *DescribeAgentCorpsRequest) (response *DescribeAgentCorpsResponse, err error)

DescribeAgentCorps 查询渠道企业列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeAgentCorpsWithContext added in v1.0.690

func (c *Client) DescribeAgentCorpsWithContext(ctx context.Context, request *DescribeAgentCorpsRequest) (response *DescribeAgentCorpsResponse, err error)

DescribeAgentCorps 查询渠道企业列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodeBatchById

func (c *Client) DescribeCodeBatchById(request *DescribeCodeBatchByIdRequest) (response *DescribeCodeBatchByIdResponse, err error)

DescribeCodeBatchById 查询批次信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodeBatchByIdWithContext

func (c *Client) DescribeCodeBatchByIdWithContext(ctx context.Context, request *DescribeCodeBatchByIdRequest) (response *DescribeCodeBatchByIdResponse, err error)

DescribeCodeBatchById 查询批次信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodeBatches added in v1.0.762

func (c *Client) DescribeCodeBatches(request *DescribeCodeBatchesRequest) (response *DescribeCodeBatchesResponse, err error)

DescribeCodeBatches 查询批次列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodeBatchesWithContext added in v1.0.762

func (c *Client) DescribeCodeBatchesWithContext(ctx context.Context, request *DescribeCodeBatchesRequest) (response *DescribeCodeBatchesResponse, err error)

DescribeCodeBatches 查询批次列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodeBatchs

func (c *Client) DescribeCodeBatchs(request *DescribeCodeBatchsRequest) (response *DescribeCodeBatchsResponse, err error)

DescribeCodeBatchs 查询批次列表

旧版接口已经弃用,新业务请使用新版的接口 DescribeCodeBatches

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodeBatchsWithContext

func (c *Client) DescribeCodeBatchsWithContext(ctx context.Context, request *DescribeCodeBatchsRequest) (response *DescribeCodeBatchsResponse, err error)

DescribeCodeBatchs 查询批次列表

旧版接口已经弃用,新业务请使用新版的接口 DescribeCodeBatches

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodePackStatus added in v1.0.515

func (c *Client) DescribeCodePackStatus(request *DescribeCodePackStatusRequest) (response *DescribeCodePackStatusResponse, err error)

DescribeCodePackStatus 查询码包状态

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodePackStatusWithContext added in v1.0.515

func (c *Client) DescribeCodePackStatusWithContext(ctx context.Context, request *DescribeCodePackStatusRequest) (response *DescribeCodePackStatusResponse, err error)

DescribeCodePackStatus 查询码包状态

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodePackUrl added in v1.0.515

func (c *Client) DescribeCodePackUrl(request *DescribeCodePackUrlRequest) (response *DescribeCodePackUrlResponse, err error)

DescribeCodePackUrl 查询码包地址

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodePackUrlWithContext added in v1.0.515

func (c *Client) DescribeCodePackUrlWithContext(ctx context.Context, request *DescribeCodePackUrlRequest) (response *DescribeCodePackUrlResponse, err error)

DescribeCodePackUrl 查询码包地址

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodePacks

func (c *Client) DescribeCodePacks(request *DescribeCodePacksRequest) (response *DescribeCodePacksResponse, err error)

DescribeCodePacks 查询码包列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodePacksWithContext

func (c *Client) DescribeCodePacksWithContext(ctx context.Context, request *DescribeCodePacksRequest) (response *DescribeCodePacksResponse, err error)

DescribeCodePacks 查询码包列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodesByPack

func (c *Client) DescribeCodesByPack(request *DescribeCodesByPackRequest) (response *DescribeCodesByPackResponse, err error)

DescribeCodesByPack 查询码包的二维码列表,上限 3 万

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCodesByPackWithContext

func (c *Client) DescribeCodesByPackWithContext(ctx context.Context, request *DescribeCodesByPackRequest) (response *DescribeCodesByPackResponse, err error)

DescribeCodesByPack 查询码包的二维码列表,上限 3 万

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCorpQuotas added in v1.0.553

func (c *Client) DescribeCorpQuotas(request *DescribeCorpQuotasRequest) (response *DescribeCorpQuotasResponse, err error)

DescribeCorpQuotas 查询渠道商下属企业额度使用情况

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCorpQuotasWithContext added in v1.0.553

func (c *Client) DescribeCorpQuotasWithContext(ctx context.Context, request *DescribeCorpQuotasRequest) (response *DescribeCorpQuotasResponse, err error)

DescribeCorpQuotas 查询渠道商下属企业额度使用情况

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCustomRuleById added in v1.0.515

func (c *Client) DescribeCustomRuleById(request *DescribeCustomRuleByIdRequest) (response *DescribeCustomRuleByIdResponse, err error)

DescribeCustomRuleById 查自定义码规则

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCustomRuleByIdWithContext added in v1.0.515

func (c *Client) DescribeCustomRuleByIdWithContext(ctx context.Context, request *DescribeCustomRuleByIdRequest) (response *DescribeCustomRuleByIdResponse, err error)

DescribeCustomRuleById 查自定义码规则

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCustomRules added in v1.0.515

func (c *Client) DescribeCustomRules(request *DescribeCustomRulesRequest) (response *DescribeCustomRulesResponse, err error)

DescribeCustomRules 查自定义码规则列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeCustomRulesWithContext added in v1.0.515

func (c *Client) DescribeCustomRulesWithContext(ctx context.Context, request *DescribeCustomRulesRequest) (response *DescribeCustomRulesResponse, err error)

DescribeCustomRules 查自定义码规则列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeJobFileUrl added in v1.0.515

func (c *Client) DescribeJobFileUrl(request *DescribeJobFileUrlRequest) (response *DescribeJobFileUrlResponse, err error)

DescribeJobFileUrl 获取异步任务的输出地址

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeJobFileUrlWithContext added in v1.0.515

func (c *Client) DescribeJobFileUrlWithContext(ctx context.Context, request *DescribeJobFileUrlRequest) (response *DescribeJobFileUrlResponse, err error)

DescribeJobFileUrl 获取异步任务的输出地址

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeMerchantById

func (c *Client) DescribeMerchantById(request *DescribeMerchantByIdRequest) (response *DescribeMerchantByIdResponse, err error)

DescribeMerchantById 查询商户信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeMerchantByIdWithContext

func (c *Client) DescribeMerchantByIdWithContext(ctx context.Context, request *DescribeMerchantByIdRequest) (response *DescribeMerchantByIdResponse, err error)

DescribeMerchantById 查询商户信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeMerchants

func (c *Client) DescribeMerchants(request *DescribeMerchantsRequest) (response *DescribeMerchantsResponse, err error)

DescribeMerchants 查询商户列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeMerchantsWithContext

func (c *Client) DescribeMerchantsWithContext(ctx context.Context, request *DescribeMerchantsRequest) (response *DescribeMerchantsResponse, err error)

DescribeMerchants 查询商户列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribePlanQRCodeScanRecords added in v1.0.824

func (c *Client) DescribePlanQRCodeScanRecords(request *DescribePlanQRCodeScanRecordsRequest) (response *DescribePlanQRCodeScanRecordsResponse, err error)

DescribePlanQRCodeScanRecords 查询安心计划二维码扫码记录

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribePlanQRCodeScanRecordsWithContext added in v1.0.824

func (c *Client) DescribePlanQRCodeScanRecordsWithContext(ctx context.Context, request *DescribePlanQRCodeScanRecordsRequest) (response *DescribePlanQRCodeScanRecordsResponse, err error)

DescribePlanQRCodeScanRecords 查询安心计划二维码扫码记录

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribePlanQRCodes added in v1.0.775

func (c *Client) DescribePlanQRCodes(request *DescribePlanQRCodesRequest) (response *DescribePlanQRCodesResponse, err error)

DescribePlanQRCodes 查询安心计划二维码列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribePlanQRCodesWithContext added in v1.0.775

func (c *Client) DescribePlanQRCodesWithContext(ctx context.Context, request *DescribePlanQRCodesRequest) (response *DescribePlanQRCodesResponse, err error)

DescribePlanQRCodes 查询安心计划二维码列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeProductById

func (c *Client) DescribeProductById(request *DescribeProductByIdRequest) (response *DescribeProductByIdResponse, err error)

DescribeProductById 查询商品信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeProductByIdWithContext

func (c *Client) DescribeProductByIdWithContext(ctx context.Context, request *DescribeProductByIdRequest) (response *DescribeProductByIdResponse, err error)

DescribeProductById 查询商品信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeProducts

func (c *Client) DescribeProducts(request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)

DescribeProducts 查询商品列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeProductsWithContext

func (c *Client) DescribeProductsWithContext(ctx context.Context, request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)

DescribeProducts 查询商品列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_AGENTEXPIRED = "AuthFailure.AgentExpired"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeRawScanLogs added in v1.0.694

func (c *Client) DescribeRawScanLogs(request *DescribeRawScanLogsRequest) (response *DescribeRawScanLogsResponse, err error)

DescribeRawScanLogs 支持增量查询扫码日志,通常提供给数据同步使用,调用时需要指定从哪一行开始查询数据

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeRawScanLogsWithContext added in v1.0.694

func (c *Client) DescribeRawScanLogsWithContext(ctx context.Context, request *DescribeRawScanLogsRequest) (response *DescribeRawScanLogsResponse, err error)

DescribeRawScanLogs 支持增量查询扫码日志,通常提供给数据同步使用,调用时需要指定从哪一行开始查询数据

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeScanLogs added in v1.0.584

func (c *Client) DescribeScanLogs(request *DescribeScanLogsRequest) (response *DescribeScanLogsResponse, err error)

DescribeScanLogs 查询扫码日志明细

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeScanLogsWithContext added in v1.0.584

func (c *Client) DescribeScanLogsWithContext(ctx context.Context, request *DescribeScanLogsRequest) (response *DescribeScanLogsResponse, err error)

DescribeScanLogs 查询扫码日志明细

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeScanStats added in v1.0.584

func (c *Client) DescribeScanStats(request *DescribeScanStatsRequest) (response *DescribeScanStatsResponse, err error)

DescribeScanStats 查询扫码的统计信息列表,支持按照商户ID,产品ID,批次ID,安心码筛选,筛选条件至少有一个

没有被扫过的不会返回

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeScanStatsWithContext added in v1.0.584

func (c *Client) DescribeScanStatsWithContext(ctx context.Context, request *DescribeScanStatsRequest) (response *DescribeScanStatsResponse, err error)

DescribeScanStats 查询扫码的统计信息列表,支持按照商户ID,产品ID,批次ID,安心码筛选,筛选条件至少有一个

没有被扫过的不会返回

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTmpToken added in v1.0.516

func (c *Client) DescribeTmpToken(request *DescribeTmpTokenRequest) (response *DescribeTmpTokenResponse, err error)

DescribeTmpToken 查询临时Token,主要用于上传接口

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTmpTokenWithContext added in v1.0.516

func (c *Client) DescribeTmpTokenWithContext(ctx context.Context, request *DescribeTmpTokenRequest) (response *DescribeTmpTokenResponse, err error)

DescribeTmpToken 查询临时Token,主要用于上传接口

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
AUTHFAILURE_CORPEMPTY = "AuthFailure.CorpEmpty"
AUTHFAILURE_CORPEXPIRED = "AuthFailure.CorpExpired"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceCodeById

func (c *Client) DescribeTraceCodeById(request *DescribeTraceCodeByIdRequest) (response *DescribeTraceCodeByIdResponse, err error)

DescribeTraceCodeById 查询二维码信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceCodeByIdWithContext

func (c *Client) DescribeTraceCodeByIdWithContext(ctx context.Context, request *DescribeTraceCodeByIdRequest) (response *DescribeTraceCodeByIdResponse, err error)

DescribeTraceCodeById 查询二维码信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceCodes

func (c *Client) DescribeTraceCodes(request *DescribeTraceCodesRequest) (response *DescribeTraceCodesResponse, err error)

DescribeTraceCodes 查询二维码列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceCodesWithContext

func (c *Client) DescribeTraceCodesWithContext(ctx context.Context, request *DescribeTraceCodesRequest) (response *DescribeTraceCodesResponse, err error)

DescribeTraceCodes 查询二维码列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceDataById added in v1.0.639

func (c *Client) DescribeTraceDataById(request *DescribeTraceDataByIdRequest) (response *DescribeTraceDataByIdResponse, err error)

DescribeTraceDataById 查询溯源ID查溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceDataByIdWithContext added in v1.0.639

func (c *Client) DescribeTraceDataByIdWithContext(ctx context.Context, request *DescribeTraceDataByIdRequest) (response *DescribeTraceDataByIdResponse, err error)

DescribeTraceDataById 查询溯源ID查溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceDataList

func (c *Client) DescribeTraceDataList(request *DescribeTraceDataListRequest) (response *DescribeTraceDataListResponse, err error)

DescribeTraceDataList 查询溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeTraceDataListWithContext

func (c *Client) DescribeTraceDataListWithContext(ctx context.Context, request *DescribeTraceDataListRequest) (response *DescribeTraceDataListResponse, err error)

DescribeTraceDataList 查询溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) EffectFeedback added in v1.0.640

func (c *Client) EffectFeedback(request *EffectFeedbackRequest) (response *EffectFeedbackResponse, err error)

EffectFeedback 接收客户反馈的各环节数据

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) EffectFeedbackWithContext added in v1.0.640

func (c *Client) EffectFeedbackWithContext(ctx context.Context, request *EffectFeedbackRequest) (response *EffectFeedbackResponse, err error)

EffectFeedback 接收客户反馈的各环节数据

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyCodeBatch

func (c *Client) ModifyCodeBatch(request *ModifyCodeBatchRequest) (response *ModifyCodeBatchResponse, err error)

ModifyCodeBatch 修改批次

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyCodeBatchWithContext

func (c *Client) ModifyCodeBatchWithContext(ctx context.Context, request *ModifyCodeBatchRequest) (response *ModifyCodeBatchResponse, err error)

ModifyCodeBatch 修改批次

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyCustomRule added in v1.0.515

func (c *Client) ModifyCustomRule(request *ModifyCustomRuleRequest) (response *ModifyCustomRuleResponse, err error)

ModifyCustomRule 修改自定义码规则

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyCustomRuleStatus added in v1.0.515

func (c *Client) ModifyCustomRuleStatus(request *ModifyCustomRuleStatusRequest) (response *ModifyCustomRuleStatusResponse, err error)

ModifyCustomRuleStatus 更新自定义码规则状态

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyCustomRuleStatusWithContext added in v1.0.515

func (c *Client) ModifyCustomRuleStatusWithContext(ctx context.Context, request *ModifyCustomRuleStatusRequest) (response *ModifyCustomRuleStatusResponse, err error)

ModifyCustomRuleStatus 更新自定义码规则状态

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyCustomRuleWithContext added in v1.0.515

func (c *Client) ModifyCustomRuleWithContext(ctx context.Context, request *ModifyCustomRuleRequest) (response *ModifyCustomRuleResponse, err error)

ModifyCustomRule 修改自定义码规则

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyMerchant

func (c *Client) ModifyMerchant(request *ModifyMerchantRequest) (response *ModifyMerchantResponse, err error)

ModifyMerchant 编辑商户

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyMerchantWithContext

func (c *Client) ModifyMerchantWithContext(ctx context.Context, request *ModifyMerchantRequest) (response *ModifyMerchantResponse, err error)

ModifyMerchant 编辑商户

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyProduct

func (c *Client) ModifyProduct(request *ModifyProductRequest) (response *ModifyProductResponse, err error)

ModifyProduct 编辑商品

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyProductWithContext

func (c *Client) ModifyProductWithContext(ctx context.Context, request *ModifyProductRequest) (response *ModifyProductResponse, err error)

ModifyProduct 编辑商品

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyTraceCode

func (c *Client) ModifyTraceCode(request *ModifyTraceCodeRequest) (response *ModifyTraceCodeResponse, err error)

ModifyTraceCode 冻结或者激活二维码,所属的批次的冻结状态优先级大于单个二维码的状态,即如果批次是冻结的,那么该批次下二维码的状态都是冻结的

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
func (c *Client) ModifyTraceCodeUnlink(request *ModifyTraceCodeUnlinkRequest) (response *ModifyTraceCodeUnlinkResponse, err error)

ModifyTraceCodeUnlink 解绑溯源码和批次的关系,让溯源码重置为未关联的状态,以便关联其他批次

注意:溯源码必须属于指定的批次才会解绑

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyTraceCodeUnlinkWithContext added in v1.0.568

func (c *Client) ModifyTraceCodeUnlinkWithContext(ctx context.Context, request *ModifyTraceCodeUnlinkRequest) (response *ModifyTraceCodeUnlinkResponse, err error)

ModifyTraceCodeUnlink 解绑溯源码和批次的关系,让溯源码重置为未关联的状态,以便关联其他批次

注意:溯源码必须属于指定的批次才会解绑

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyTraceCodeWithContext

func (c *Client) ModifyTraceCodeWithContext(ctx context.Context, request *ModifyTraceCodeRequest) (response *ModifyTraceCodeResponse, err error)

ModifyTraceCode 冻结或者激活二维码,所属的批次的冻结状态优先级大于单个二维码的状态,即如果批次是冻结的,那么该批次下二维码的状态都是冻结的

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyTraceData

func (c *Client) ModifyTraceData(request *ModifyTraceDataRequest) (response *ModifyTraceDataResponse, err error)

ModifyTraceData 修改溯源信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyTraceDataRanks

func (c *Client) ModifyTraceDataRanks(request *ModifyTraceDataRanksRequest) (response *ModifyTraceDataRanksResponse, err error)

ModifyTraceDataRanks 修改溯源信息的排序

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyTraceDataRanksWithContext

func (c *Client) ModifyTraceDataRanksWithContext(ctx context.Context, request *ModifyTraceDataRanksRequest) (response *ModifyTraceDataRanksResponse, err error)

ModifyTraceDataRanks 修改溯源信息的排序

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ModifyTraceDataWithContext

func (c *Client) ModifyTraceDataWithContext(ctx context.Context, request *ModifyTraceDataRequest) (response *ModifyTraceDataResponse, err error)

ModifyTraceData 修改溯源信息

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ReportBatchCallbackStatus added in v1.0.640

func (c *Client) ReportBatchCallbackStatus(request *ReportBatchCallbackStatusRequest) (response *ReportBatchCallbackStatusResponse, err error)

ReportBatchCallbackStatus 接收离线筛选包回执,用于效果统计和分析。

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) ReportBatchCallbackStatusWithContext added in v1.0.640

func (c *Client) ReportBatchCallbackStatusWithContext(ctx context.Context, request *ReportBatchCallbackStatusRequest) (response *ReportBatchCallbackStatusResponse, err error)

ReportBatchCallbackStatus 接收离线筛选包回执,用于效果统计和分析。

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"

type CodeBatch

type CodeBatch struct {
	// 批次号
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 企业ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpId *int64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次编码(未使用)
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchCode *string `json:"BatchCode,omitnil,omitempty" name:"BatchCode"`

	// 码数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeCnt *int64 `json:"CodeCnt,omitnil,omitempty" name:"CodeCnt"`

	// 所属商户ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 产品ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 批次类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchType *int64 `json:"BatchType,omitnil,omitempty" name:"BatchType"`

	// 备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 微信模板
	// 注意:此字段可能返回 null,表示取不到有效值。
	MpTpl *string `json:"MpTpl,omitnil,omitempty" name:"MpTpl"`

	// 批次状态 0: 未激活 1: 已激活 -1: 已冻结
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 修改时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// 所属商户名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 产品名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductName *string `json:"ProductName,omitnil,omitempty" name:"ProductName"`

	// 未使用
	// 注意:此字段可能返回 null,表示取不到有效值。
	//
	// Deprecated: Ext is deprecated.
	Ext *Ext `json:"Ext,omitnil,omitempty" name:"Ext"`

	// 模板名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	TplName *string `json:"TplName,omitnil,omitempty" name:"TplName"`

	// 调度任务
	// 注意:此字段可能返回 null,表示取不到有效值。
	Job *Job `json:"Job,omitnil,omitempty" name:"Job"`

	// 生产日期
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductionDate *string `json:"ProductionDate,omitnil,omitempty" name:"ProductionDate"`

	// 有效期
	// 注意:此字段可能返回 null,表示取不到有效值。
	ValidDate *string `json:"ValidDate,omitnil,omitempty" name:"ValidDate"`

	// 扩展属性
	Attrs []*AttrItem `json:"Attrs,omitnil,omitempty" name:"Attrs"`
}

type CodeItem

type CodeItem struct {
	// 无
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`
}

type CodePack added in v1.0.516

type CodePack struct {
	// 码id
	// 注意:此字段可能返回 null,表示取不到有效值。
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 企业id
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpId *int64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户id
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 更新时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// 制码状态 init: 初始化, pending: 执行中, done: 完成, error: 失败
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// 执行日志
	// 注意:此字段可能返回 null,表示取不到有效值。
	Log *string `json:"Log,omitnil,omitempty" name:"Log"`

	// 创建人
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateUser *string `json:"CreateUser,omitnil,omitempty" name:"CreateUser"`

	// 码数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Amount *int64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 防伪码长度
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeLength *int64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 码类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeType *string `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 是否暗码
	// 注意:此字段可能返回 null,表示取不到有效值。
	Cipher *int64 `json:"Cipher,omitnil,omitempty" name:"Cipher"`

	// [弃用] 文字码地址,通过另一个接口查
	// 注意:此字段可能返回 null,表示取不到有效值。
	TextUrl *string `json:"TextUrl,omitnil,omitempty" name:"TextUrl"`

	// [弃用] 二维码地址,通过另一个接口查
	// 注意:此字段可能返回 null,表示取不到有效值。
	PackUrl *string `json:"PackUrl,omitnil,omitempty" name:"PackUrl"`

	// 商户名
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 码规则类型 0: 默认, 1: 自定义
	// 注意:此字段可能返回 null,表示取不到有效值。
	RuleType *int64 `json:"RuleType,omitnil,omitempty" name:"RuleType"`

	// 自定义码规则ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 码包类型 0: 普通码包 1: 层级码包
	// 注意:此字段可能返回 null,表示取不到有效值。
	PackType *int64 `json:"PackType,omitnil,omitempty" name:"PackType"`

	// 生码层级
	// 注意:此字段可能返回 null,表示取不到有效值。
	PackLevel *uint64 `json:"PackLevel,omitnil,omitempty" name:"PackLevel"`

	// 层级码配置
	// 注意:此字段可能返回 null,表示取不到有效值。
	PackSpec []*PackSpec `json:"PackSpec,omitnil,omitempty" name:"PackSpec"`

	// 商品名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductName *string `json:"ProductName,omitnil,omitempty" name:"ProductName"`

	// 商品规格
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductSpecification *string `json:"ProductSpecification,omitnil,omitempty" name:"ProductSpecification"`

	// 商品ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 码关系是否预关联
	// 0:否, 1:是
	RelateType *int64 `json:"RelateType,omitnil,omitempty" name:"RelateType"`

	// 场景码
	// 注意:此字段可能返回 null,表示取不到有效值。
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`

	// 码规则
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeRule *string `json:"CodeRule,omitnil,omitempty" name:"CodeRule"`

	// 已使用码数
	// 注意:此字段可能返回 null,表示取不到有效值。
	UsedAmount *int64 `json:"UsedAmount,omitnil,omitempty" name:"UsedAmount"`

	// 开始流水号
	// 注意:此字段可能返回 null,表示取不到有效值。
	SerialStart *uint64 `json:"SerialStart,omitnil,omitempty" name:"SerialStart"`

	// 结束流水号
	// 注意:此字段可能返回 null,表示取不到有效值。
	SerialEnd *uint64 `json:"SerialEnd,omitnil,omitempty" name:"SerialEnd"`
}

type CodePart added in v1.0.515

type CodePart struct {
	// 码段名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 码段类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// 码段内容
	// 注意:此字段可能返回 null,表示取不到有效值。
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`

	// 码段长度
	Length *uint64 `json:"Length,omitnil,omitempty" name:"Length"`

	// 扩展字段
	// 注意:此字段可能返回 null,表示取不到有效值。
	Ext *string `json:"Ext,omitnil,omitempty" name:"Ext"`
}

type CorpQuota added in v1.0.553

type CorpQuota struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 企业名称
	CorpName *string `json:"CorpName,omitnil,omitempty" name:"CorpName"`

	// 额度
	Quota *Quota `json:"Quota,omitnil,omitempty" name:"Quota"`

	// 额度使用量
	UsageQuota *UsageQuota `json:"UsageQuota,omitnil,omitempty" name:"UsageQuota"`
}

type CreateChainBatchRequest added in v1.0.937

type CreateChainBatchRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 溯源ID
	ChainList []*Chain `json:"ChainList,omitnil,omitempty" name:"ChainList"`
}

func NewCreateChainBatchRequest added in v1.0.937

func NewCreateChainBatchRequest() (request *CreateChainBatchRequest)

func (*CreateChainBatchRequest) FromJsonString added in v1.0.937

func (r *CreateChainBatchRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateChainBatchRequest) ToJsonString added in v1.0.937

func (r *CreateChainBatchRequest) ToJsonString() string

type CreateChainBatchRequestParams added in v1.0.937

type CreateChainBatchRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 溯源ID
	ChainList []*Chain `json:"ChainList,omitnil,omitempty" name:"ChainList"`
}

Predefined struct for user

type CreateChainBatchResponse added in v1.0.937

type CreateChainBatchResponse struct {
	*tchttp.BaseResponse
	Response *CreateChainBatchResponseParams `json:"Response"`
}

func NewCreateChainBatchResponse added in v1.0.937

func NewCreateChainBatchResponse() (response *CreateChainBatchResponse)

func (*CreateChainBatchResponse) FromJsonString added in v1.0.937

func (r *CreateChainBatchResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateChainBatchResponse) ToJsonString added in v1.0.937

func (r *CreateChainBatchResponse) ToJsonString() string

type CreateChainBatchResponseParams added in v1.0.937

type CreateChainBatchResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateCodeBatchRequest

type CreateCodeBatchRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 批次类型 0:溯源 1:营销
	BatchType *uint64 `json:"BatchType,omitnil,omitempty" name:"BatchType"`

	// 批次ID,留空时系统自动生成
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 模板ID,或者活动ID
	MpTpl *string `json:"MpTpl,omitnil,omitempty" name:"MpTpl"`

	// 克隆批次ID,同时会复制溯源信息
	CloneId *string `json:"CloneId,omitnil,omitempty" name:"CloneId"`

	// 批次编号,业务字段不判断唯一性
	BatchCode *string `json:"BatchCode,omitnil,omitempty" name:"BatchCode"`

	// 有效期
	ValidDate *string `json:"ValidDate,omitnil,omitempty" name:"ValidDate"`

	// 生产日期
	ProductionDate *string `json:"ProductionDate,omitnil,omitempty" name:"ProductionDate"`
}

func NewCreateCodeBatchRequest

func NewCreateCodeBatchRequest() (request *CreateCodeBatchRequest)

func (*CreateCodeBatchRequest) FromJsonString

func (r *CreateCodeBatchRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCodeBatchRequest) ToJsonString

func (r *CreateCodeBatchRequest) ToJsonString() string

type CreateCodeBatchRequestParams added in v1.0.426

type CreateCodeBatchRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 批次类型 0:溯源 1:营销
	BatchType *uint64 `json:"BatchType,omitnil,omitempty" name:"BatchType"`

	// 批次ID,留空时系统自动生成
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 模板ID,或者活动ID
	MpTpl *string `json:"MpTpl,omitnil,omitempty" name:"MpTpl"`

	// 克隆批次ID,同时会复制溯源信息
	CloneId *string `json:"CloneId,omitnil,omitempty" name:"CloneId"`

	// 批次编号,业务字段不判断唯一性
	BatchCode *string `json:"BatchCode,omitnil,omitempty" name:"BatchCode"`

	// 有效期
	ValidDate *string `json:"ValidDate,omitnil,omitempty" name:"ValidDate"`

	// 生产日期
	ProductionDate *string `json:"ProductionDate,omitnil,omitempty" name:"ProductionDate"`
}

Predefined struct for user

type CreateCodeBatchResponse

type CreateCodeBatchResponse struct {
	*tchttp.BaseResponse
	Response *CreateCodeBatchResponseParams `json:"Response"`
}

func NewCreateCodeBatchResponse

func NewCreateCodeBatchResponse() (response *CreateCodeBatchResponse)

func (*CreateCodeBatchResponse) FromJsonString

func (r *CreateCodeBatchResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCodeBatchResponse) ToJsonString

func (r *CreateCodeBatchResponse) ToJsonString() string

type CreateCodeBatchResponseParams added in v1.0.426

type CreateCodeBatchResponseParams struct {
	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateCodePackRequest

type CreateCodePackRequest struct {
	*tchttp.BaseRequest

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 码长度
	CodeLength *uint64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 码类型 alphabet 字母, number 数字, mixin 混合
	CodeType *string `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 生码数量 普通码包时必填
	Amount *int64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包类型 0: 普通码包 1: 层级码包
	PackType *uint64 `json:"PackType,omitnil,omitempty" name:"PackType"`

	// 码包层级
	PackLevel *uint64 `json:"PackLevel,omitnil,omitempty" name:"PackLevel"`

	// 码包规格
	PackSpec []*PackSpec `json:"PackSpec,omitnil,omitempty" name:"PackSpec"`

	// 批次ID,如果传了生码后会同时绑定批次,并激活码
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 是否有流水码 0:无 1:有
	SerialType *uint64 `json:"SerialType,omitnil,omitempty" name:"SerialType"`

	// 关联产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 层级码时是否提前生成关联关系,默认为 1
	RelateType *int64 `json:"RelateType,omitnil,omitempty" name:"RelateType"`

	// 场景值
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`
}

func NewCreateCodePackRequest

func NewCreateCodePackRequest() (request *CreateCodePackRequest)

func (*CreateCodePackRequest) FromJsonString

func (r *CreateCodePackRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCodePackRequest) ToJsonString

func (r *CreateCodePackRequest) ToJsonString() string

type CreateCodePackRequestParams added in v1.0.426

type CreateCodePackRequestParams struct {
	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 码长度
	CodeLength *uint64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 码类型 alphabet 字母, number 数字, mixin 混合
	CodeType *string `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 生码数量 普通码包时必填
	Amount *int64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包类型 0: 普通码包 1: 层级码包
	PackType *uint64 `json:"PackType,omitnil,omitempty" name:"PackType"`

	// 码包层级
	PackLevel *uint64 `json:"PackLevel,omitnil,omitempty" name:"PackLevel"`

	// 码包规格
	PackSpec []*PackSpec `json:"PackSpec,omitnil,omitempty" name:"PackSpec"`

	// 批次ID,如果传了生码后会同时绑定批次,并激活码
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 是否有流水码 0:无 1:有
	SerialType *uint64 `json:"SerialType,omitnil,omitempty" name:"SerialType"`

	// 关联产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 层级码时是否提前生成关联关系,默认为 1
	RelateType *int64 `json:"RelateType,omitnil,omitempty" name:"RelateType"`

	// 场景值
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`
}

Predefined struct for user

type CreateCodePackResponse

type CreateCodePackResponse struct {
	*tchttp.BaseResponse
	Response *CreateCodePackResponseParams `json:"Response"`
}

func NewCreateCodePackResponse

func NewCreateCodePackResponse() (response *CreateCodePackResponse)

func (*CreateCodePackResponse) FromJsonString

func (r *CreateCodePackResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCodePackResponse) ToJsonString

func (r *CreateCodePackResponse) ToJsonString() string

type CreateCodePackResponseParams added in v1.0.426

type CreateCodePackResponseParams struct {
	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateCorporationOrderRequest added in v1.0.529

type CreateCorporationOrderRequest struct {
	*tchttp.BaseRequest

	// 企业名称
	CorpName *string `json:"CorpName,omitnil,omitempty" name:"CorpName"`

	// 所有者ID
	Owner *string `json:"Owner,omitnil,omitempty" name:"Owner"`

	// 溯源码额度
	CodeQuota *uint64 `json:"CodeQuota,omitnil,omitempty" name:"CodeQuota"`

	// 额度过期时间
	ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`

	// 金额
	Amount *int64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 联系人
	ContactPerson *string `json:"ContactPerson,omitnil,omitempty" name:"ContactPerson"`

	// 联系电话
	ContactNumber *string `json:"ContactNumber,omitnil,omitempty" name:"ContactNumber"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`
}

func NewCreateCorporationOrderRequest added in v1.0.529

func NewCreateCorporationOrderRequest() (request *CreateCorporationOrderRequest)

func (*CreateCorporationOrderRequest) FromJsonString added in v1.0.529

func (r *CreateCorporationOrderRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCorporationOrderRequest) ToJsonString added in v1.0.529

func (r *CreateCorporationOrderRequest) ToJsonString() string

type CreateCorporationOrderRequestParams added in v1.0.529

type CreateCorporationOrderRequestParams struct {
	// 企业名称
	CorpName *string `json:"CorpName,omitnil,omitempty" name:"CorpName"`

	// 所有者ID
	Owner *string `json:"Owner,omitnil,omitempty" name:"Owner"`

	// 溯源码额度
	CodeQuota *uint64 `json:"CodeQuota,omitnil,omitempty" name:"CodeQuota"`

	// 额度过期时间
	ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`

	// 金额
	Amount *int64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 联系人
	ContactPerson *string `json:"ContactPerson,omitnil,omitempty" name:"ContactPerson"`

	// 联系电话
	ContactNumber *string `json:"ContactNumber,omitnil,omitempty" name:"ContactNumber"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`
}

Predefined struct for user

type CreateCorporationOrderResponse added in v1.0.529

type CreateCorporationOrderResponse struct {
	*tchttp.BaseResponse
	Response *CreateCorporationOrderResponseParams `json:"Response"`
}

func NewCreateCorporationOrderResponse added in v1.0.529

func NewCreateCorporationOrderResponse() (response *CreateCorporationOrderResponse)

func (*CreateCorporationOrderResponse) FromJsonString added in v1.0.529

func (r *CreateCorporationOrderResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCorporationOrderResponse) ToJsonString added in v1.0.529

func (r *CreateCorporationOrderResponse) ToJsonString() string

type CreateCorporationOrderResponseParams added in v1.0.529

type CreateCorporationOrderResponseParams struct {
	// 企业ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateCustomPackRequest added in v1.0.515

type CreateCustomPackRequest struct {
	*tchttp.BaseRequest

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 生码数量, 普通码包时必填
	Amount *uint64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包类型 0: 普通码包 1: 层级码包
	PackType *uint64 `json:"PackType,omitnil,omitempty" name:"PackType"`

	// 码包层级
	PackLevel *uint64 `json:"PackLevel,omitnil,omitempty" name:"PackLevel"`

	// 层级码包规则
	PackSpec []*PackSpec `json:"PackSpec,omitnil,omitempty" name:"PackSpec"`

	// 码规则ID,  和CodeParts二选一必填
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 码段配置,和CustomId二选一必填
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 批次ID,如果传了生码后会同时绑定批次,并激活码
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 是否有流水码 0:无 1:有
	SerialType *uint64 `json:"SerialType,omitnil,omitempty" name:"SerialType"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 是否预生成码关系
	// 0: 否, 1:是
	// 默认为1,仅对层级码有效
	RelateType *int64 `json:"RelateType,omitnil,omitempty" name:"RelateType"`

	// 场景值
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`
}

func NewCreateCustomPackRequest added in v1.0.515

func NewCreateCustomPackRequest() (request *CreateCustomPackRequest)

func (*CreateCustomPackRequest) FromJsonString added in v1.0.515

func (r *CreateCustomPackRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCustomPackRequest) ToJsonString added in v1.0.515

func (r *CreateCustomPackRequest) ToJsonString() string

type CreateCustomPackRequestParams added in v1.0.515

type CreateCustomPackRequestParams struct {
	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 生码数量, 普通码包时必填
	Amount *uint64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包类型 0: 普通码包 1: 层级码包
	PackType *uint64 `json:"PackType,omitnil,omitempty" name:"PackType"`

	// 码包层级
	PackLevel *uint64 `json:"PackLevel,omitnil,omitempty" name:"PackLevel"`

	// 层级码包规则
	PackSpec []*PackSpec `json:"PackSpec,omitnil,omitempty" name:"PackSpec"`

	// 码规则ID,  和CodeParts二选一必填
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 码段配置,和CustomId二选一必填
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 批次ID,如果传了生码后会同时绑定批次,并激活码
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 是否有流水码 0:无 1:有
	SerialType *uint64 `json:"SerialType,omitnil,omitempty" name:"SerialType"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 是否预生成码关系
	// 0: 否, 1:是
	// 默认为1,仅对层级码有效
	RelateType *int64 `json:"RelateType,omitnil,omitempty" name:"RelateType"`

	// 场景值
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`
}

Predefined struct for user

type CreateCustomPackResponse added in v1.0.515

type CreateCustomPackResponse struct {
	*tchttp.BaseResponse
	Response *CreateCustomPackResponseParams `json:"Response"`
}

func NewCreateCustomPackResponse added in v1.0.515

func NewCreateCustomPackResponse() (response *CreateCustomPackResponse)

func (*CreateCustomPackResponse) FromJsonString added in v1.0.515

func (r *CreateCustomPackResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCustomPackResponse) ToJsonString added in v1.0.515

func (r *CreateCustomPackResponse) ToJsonString() string

type CreateCustomPackResponseParams added in v1.0.515

type CreateCustomPackResponseParams struct {
	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateCustomRuleRequest added in v1.0.515

type CreateCustomRuleRequest struct {
	*tchttp.BaseRequest

	// 规则名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 码长度
	CodeLength *uint64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 码段配置
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewCreateCustomRuleRequest added in v1.0.515

func NewCreateCustomRuleRequest() (request *CreateCustomRuleRequest)

func (*CreateCustomRuleRequest) FromJsonString added in v1.0.515

func (r *CreateCustomRuleRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCustomRuleRequest) ToJsonString added in v1.0.515

func (r *CreateCustomRuleRequest) ToJsonString() string

type CreateCustomRuleRequestParams added in v1.0.515

type CreateCustomRuleRequestParams struct {
	// 规则名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 码长度
	CodeLength *uint64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 码段配置
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type CreateCustomRuleResponse added in v1.0.515

type CreateCustomRuleResponse struct {
	*tchttp.BaseResponse
	Response *CreateCustomRuleResponseParams `json:"Response"`
}

func NewCreateCustomRuleResponse added in v1.0.515

func NewCreateCustomRuleResponse() (response *CreateCustomRuleResponse)

func (*CreateCustomRuleResponse) FromJsonString added in v1.0.515

func (r *CreateCustomRuleResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCustomRuleResponse) ToJsonString added in v1.0.515

func (r *CreateCustomRuleResponse) ToJsonString() string

type CreateCustomRuleResponseParams added in v1.0.515

type CreateCustomRuleResponseParams struct {
	// 码规则ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateMerchantRequest

type CreateMerchantRequest struct {
	*tchttp.BaseRequest

	// 商户名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包来源 0:自建, 1:第三发
	CodeType *int64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 码包前缀地址 第三方码包时必填
	CodeUrl *string `json:"CodeUrl,omitnil,omitempty" name:"CodeUrl"`
}

func NewCreateMerchantRequest

func NewCreateMerchantRequest() (request *CreateMerchantRequest)

func (*CreateMerchantRequest) FromJsonString

func (r *CreateMerchantRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateMerchantRequest) ToJsonString

func (r *CreateMerchantRequest) ToJsonString() string

type CreateMerchantRequestParams added in v1.0.426

type CreateMerchantRequestParams struct {
	// 商户名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包来源 0:自建, 1:第三发
	CodeType *int64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 码包前缀地址 第三方码包时必填
	CodeUrl *string `json:"CodeUrl,omitnil,omitempty" name:"CodeUrl"`
}

Predefined struct for user

type CreateMerchantResponse

type CreateMerchantResponse struct {
	*tchttp.BaseResponse
	Response *CreateMerchantResponseParams `json:"Response"`
}

func NewCreateMerchantResponse

func NewCreateMerchantResponse() (response *CreateMerchantResponse)

func (*CreateMerchantResponse) FromJsonString

func (r *CreateMerchantResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateMerchantResponse) ToJsonString

func (r *CreateMerchantResponse) ToJsonString() string

type CreateMerchantResponseParams added in v1.0.426

type CreateMerchantResponseParams struct {
	// 商户标识码
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateProductRequest

type CreateProductRequest struct {
	*tchttp.BaseRequest

	// 商品名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 商户名称
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 商品规格
	Specification *string `json:"Specification,omitnil,omitempty" name:"Specification"`

	Logo []*string `json:"Logo,omitnil,omitempty" name:"Logo"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 预留字段
	Ext *Ext `json:"Ext,omitnil,omitempty" name:"Ext"`
}

func NewCreateProductRequest

func NewCreateProductRequest() (request *CreateProductRequest)

func (*CreateProductRequest) FromJsonString

func (r *CreateProductRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateProductRequest) ToJsonString

func (r *CreateProductRequest) ToJsonString() string

type CreateProductRequestParams added in v1.0.426

type CreateProductRequestParams struct {
	// 商品名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 商户名称
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 商品规格
	Specification *string `json:"Specification,omitnil,omitempty" name:"Specification"`

	Logo []*string `json:"Logo,omitnil,omitempty" name:"Logo"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 预留字段
	Ext *Ext `json:"Ext,omitnil,omitempty" name:"Ext"`
}

Predefined struct for user

type CreateProductResponse

type CreateProductResponse struct {
	*tchttp.BaseResponse
	Response *CreateProductResponseParams `json:"Response"`
}

func NewCreateProductResponse

func NewCreateProductResponse() (response *CreateProductResponse)

func (*CreateProductResponse) FromJsonString

func (r *CreateProductResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateProductResponse) ToJsonString

func (r *CreateProductResponse) ToJsonString() string

type CreateProductResponseParams added in v1.0.426

type CreateProductResponseParams struct {
	// 商品ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateTraceChainRequest

type CreateTraceChainRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`
}

func NewCreateTraceChainRequest

func NewCreateTraceChainRequest() (request *CreateTraceChainRequest)

func (*CreateTraceChainRequest) FromJsonString

func (r *CreateTraceChainRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceChainRequest) ToJsonString

func (r *CreateTraceChainRequest) ToJsonString() string

type CreateTraceChainRequestParams added in v1.0.426

type CreateTraceChainRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`
}

Predefined struct for user

type CreateTraceChainResponse

type CreateTraceChainResponse struct {
	*tchttp.BaseResponse
	Response *CreateTraceChainResponseParams `json:"Response"`
}

func NewCreateTraceChainResponse

func NewCreateTraceChainResponse() (response *CreateTraceChainResponse)

func (*CreateTraceChainResponse) FromJsonString

func (r *CreateTraceChainResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceChainResponse) ToJsonString

func (r *CreateTraceChainResponse) ToJsonString() string

type CreateTraceChainResponseParams added in v1.0.426

type CreateTraceChainResponseParams struct {
	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateTraceCodesAsyncRequest added in v1.0.515

type CreateTraceCodesAsyncRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 上传文件Key,仅支持 csv 或者 zip 类型
	FileKey *string `json:"FileKey,omitnil,omitempty" name:"FileKey"`
}

func NewCreateTraceCodesAsyncRequest added in v1.0.515

func NewCreateTraceCodesAsyncRequest() (request *CreateTraceCodesAsyncRequest)

func (*CreateTraceCodesAsyncRequest) FromJsonString added in v1.0.515

func (r *CreateTraceCodesAsyncRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceCodesAsyncRequest) ToJsonString added in v1.0.515

func (r *CreateTraceCodesAsyncRequest) ToJsonString() string

type CreateTraceCodesAsyncRequestParams added in v1.0.515

type CreateTraceCodesAsyncRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 上传文件Key,仅支持 csv 或者 zip 类型
	FileKey *string `json:"FileKey,omitnil,omitempty" name:"FileKey"`
}

Predefined struct for user

type CreateTraceCodesAsyncResponse added in v1.0.515

type CreateTraceCodesAsyncResponse struct {
	*tchttp.BaseResponse
	Response *CreateTraceCodesAsyncResponseParams `json:"Response"`
}

func NewCreateTraceCodesAsyncResponse added in v1.0.515

func NewCreateTraceCodesAsyncResponse() (response *CreateTraceCodesAsyncResponse)

func (*CreateTraceCodesAsyncResponse) FromJsonString added in v1.0.515

func (r *CreateTraceCodesAsyncResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceCodesAsyncResponse) ToJsonString added in v1.0.515

func (r *CreateTraceCodesAsyncResponse) ToJsonString() string

type CreateTraceCodesAsyncResponseParams added in v1.0.515

type CreateTraceCodesAsyncResponseParams struct {
	// 批次ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateTraceCodesRequest

type CreateTraceCodesRequest struct {
	*tchttp.BaseRequest

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码
	Codes []*CodeItem `json:"Codes,omitnil,omitempty" name:"Codes"`

	// 码绑定激活策略,默认  0
	// 0: 传什么码就激活什么码
	// 1: 层级码 + 层级子码
	CodeType *uint64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 错误检查类型,默认 0
	// 0: 没有新导入码时正常返回
	// 1: 没有新导入码时报错,并返回没有导入成功的原因
	CheckType *uint64 `json:"CheckType,omitnil,omitempty" name:"CheckType"`
}

func NewCreateTraceCodesRequest

func NewCreateTraceCodesRequest() (request *CreateTraceCodesRequest)

func (*CreateTraceCodesRequest) FromJsonString

func (r *CreateTraceCodesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceCodesRequest) ToJsonString

func (r *CreateTraceCodesRequest) ToJsonString() string

type CreateTraceCodesRequestParams added in v1.0.426

type CreateTraceCodesRequestParams struct {
	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码
	Codes []*CodeItem `json:"Codes,omitnil,omitempty" name:"Codes"`

	// 码绑定激活策略,默认  0
	// 0: 传什么码就激活什么码
	// 1: 层级码 + 层级子码
	CodeType *uint64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 错误检查类型,默认 0
	// 0: 没有新导入码时正常返回
	// 1: 没有新导入码时报错,并返回没有导入成功的原因
	CheckType *uint64 `json:"CheckType,omitnil,omitempty" name:"CheckType"`
}

Predefined struct for user

type CreateTraceCodesResponse

type CreateTraceCodesResponse struct {
	*tchttp.BaseResponse
	Response *CreateTraceCodesResponseParams `json:"Response"`
}

func NewCreateTraceCodesResponse

func NewCreateTraceCodesResponse() (response *CreateTraceCodesResponse)

func (*CreateTraceCodesResponse) FromJsonString

func (r *CreateTraceCodesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceCodesResponse) ToJsonString

func (r *CreateTraceCodesResponse) ToJsonString() string

type CreateTraceCodesResponseParams added in v1.0.426

type CreateTraceCodesResponseParams struct {
	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 导入成功码数量
	ActiveCnt *uint64 `json:"ActiveCnt,omitnil,omitempty" name:"ActiveCnt"`

	// 批次码数量
	CodeCnt *uint64 `json:"CodeCnt,omitnil,omitempty" name:"CodeCnt"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateTraceDataRequest

type CreateTraceDataRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
	Phase *uint64 `json:"Phase,omitnil,omitempty" name:"Phase"`

	// 溯源阶段名称
	PhaseName *string `json:"PhaseName,omitnil,omitempty" name:"PhaseName"`

	// [无效] 上链状态
	ChainStatus *uint64 `json:"ChainStatus,omitnil,omitempty" name:"ChainStatus"`

	// [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
	Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`

	// [无效] 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 溯源信息
	TraceItems []*TraceItem `json:"TraceItems,omitnil,omitempty" name:"TraceItems"`

	// 溯源状态 0: 无效, 1: 有效
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 环节数据
	PhaseData *PhaseData `json:"PhaseData,omitnil,omitempty" name:"PhaseData"`
}

func NewCreateTraceDataRequest

func NewCreateTraceDataRequest() (request *CreateTraceDataRequest)

func (*CreateTraceDataRequest) FromJsonString

func (r *CreateTraceDataRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceDataRequest) ToJsonString

func (r *CreateTraceDataRequest) ToJsonString() string

type CreateTraceDataRequestParams added in v1.0.426

type CreateTraceDataRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
	Phase *uint64 `json:"Phase,omitnil,omitempty" name:"Phase"`

	// 溯源阶段名称
	PhaseName *string `json:"PhaseName,omitnil,omitempty" name:"PhaseName"`

	// [无效] 上链状态
	ChainStatus *uint64 `json:"ChainStatus,omitnil,omitempty" name:"ChainStatus"`

	// [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
	Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`

	// [无效] 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 溯源信息
	TraceItems []*TraceItem `json:"TraceItems,omitnil,omitempty" name:"TraceItems"`

	// 溯源状态 0: 无效, 1: 有效
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 环节数据
	PhaseData *PhaseData `json:"PhaseData,omitnil,omitempty" name:"PhaseData"`
}

Predefined struct for user

type CreateTraceDataResponse

type CreateTraceDataResponse struct {
	*tchttp.BaseResponse
	Response *CreateTraceDataResponseParams `json:"Response"`
}

func NewCreateTraceDataResponse

func NewCreateTraceDataResponse() (response *CreateTraceDataResponse)

func (*CreateTraceDataResponse) FromJsonString

func (r *CreateTraceDataResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTraceDataResponse) ToJsonString

func (r *CreateTraceDataResponse) ToJsonString() string

type CreateTraceDataResponseParams added in v1.0.426

type CreateTraceDataResponseParams struct {
	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CustomRule added in v1.0.515

type CustomRule struct {
	// 码规则ID
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 码规则名
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 企业ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 码ID长度
	CodeLength *uint64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 规则状态
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 码段配置
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
}

type DeleteCodeBatchRequest

type DeleteCodeBatchRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`
}

func NewDeleteCodeBatchRequest

func NewDeleteCodeBatchRequest() (request *DeleteCodeBatchRequest)

func (*DeleteCodeBatchRequest) FromJsonString

func (r *DeleteCodeBatchRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteCodeBatchRequest) ToJsonString

func (r *DeleteCodeBatchRequest) ToJsonString() string

type DeleteCodeBatchRequestParams added in v1.0.426

type DeleteCodeBatchRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`
}

Predefined struct for user

type DeleteCodeBatchResponse

type DeleteCodeBatchResponse struct {
	*tchttp.BaseResponse
	Response *DeleteCodeBatchResponseParams `json:"Response"`
}

func NewDeleteCodeBatchResponse

func NewDeleteCodeBatchResponse() (response *DeleteCodeBatchResponse)

func (*DeleteCodeBatchResponse) FromJsonString

func (r *DeleteCodeBatchResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteCodeBatchResponse) ToJsonString

func (r *DeleteCodeBatchResponse) ToJsonString() string

type DeleteCodeBatchResponseParams added in v1.0.426

type DeleteCodeBatchResponseParams struct {
	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteMerchantRequest

type DeleteMerchantRequest struct {
	*tchttp.BaseRequest

	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDeleteMerchantRequest

func NewDeleteMerchantRequest() (request *DeleteMerchantRequest)

func (*DeleteMerchantRequest) FromJsonString

func (r *DeleteMerchantRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteMerchantRequest) ToJsonString

func (r *DeleteMerchantRequest) ToJsonString() string

type DeleteMerchantRequestParams added in v1.0.426

type DeleteMerchantRequestParams struct {
	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DeleteMerchantResponse

type DeleteMerchantResponse struct {
	*tchttp.BaseResponse
	Response *DeleteMerchantResponseParams `json:"Response"`
}

func NewDeleteMerchantResponse

func NewDeleteMerchantResponse() (response *DeleteMerchantResponse)

func (*DeleteMerchantResponse) FromJsonString

func (r *DeleteMerchantResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteMerchantResponse) ToJsonString

func (r *DeleteMerchantResponse) ToJsonString() string

type DeleteMerchantResponseParams added in v1.0.426

type DeleteMerchantResponseParams struct {
	// 商户标识码
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteProductRequest

type DeleteProductRequest struct {
	*tchttp.BaseRequest

	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDeleteProductRequest

func NewDeleteProductRequest() (request *DeleteProductRequest)

func (*DeleteProductRequest) FromJsonString

func (r *DeleteProductRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteProductRequest) ToJsonString

func (r *DeleteProductRequest) ToJsonString() string

type DeleteProductRequestParams added in v1.0.426

type DeleteProductRequestParams struct {
	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DeleteProductResponse

type DeleteProductResponse struct {
	*tchttp.BaseResponse
	Response *DeleteProductResponseParams `json:"Response"`
}

func NewDeleteProductResponse

func NewDeleteProductResponse() (response *DeleteProductResponse)

func (*DeleteProductResponse) FromJsonString

func (r *DeleteProductResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteProductResponse) ToJsonString

func (r *DeleteProductResponse) ToJsonString() string

type DeleteProductResponseParams added in v1.0.426

type DeleteProductResponseParams struct {
	// 商品ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteTraceDataRequest

type DeleteTraceDataRequest struct {
	*tchttp.BaseRequest

	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDeleteTraceDataRequest

func NewDeleteTraceDataRequest() (request *DeleteTraceDataRequest)

func (*DeleteTraceDataRequest) FromJsonString

func (r *DeleteTraceDataRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteTraceDataRequest) ToJsonString

func (r *DeleteTraceDataRequest) ToJsonString() string

type DeleteTraceDataRequestParams added in v1.0.426

type DeleteTraceDataRequestParams struct {
	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DeleteTraceDataResponse

type DeleteTraceDataResponse struct {
	*tchttp.BaseResponse
	Response *DeleteTraceDataResponseParams `json:"Response"`
}

func NewDeleteTraceDataResponse

func NewDeleteTraceDataResponse() (response *DeleteTraceDataResponse)

func (*DeleteTraceDataResponse) FromJsonString

func (r *DeleteTraceDataResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteTraceDataResponse) ToJsonString

func (r *DeleteTraceDataResponse) ToJsonString() string

type DeleteTraceDataResponseParams added in v1.0.426

type DeleteTraceDataResponseParams struct {
	// 溯源id
	// 注意:此字段可能返回 null,表示取不到有效值。
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeAgentCorpsRequest added in v1.0.690

type DescribeAgentCorpsRequest struct {
	*tchttp.BaseRequest

	// 每页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 渠道ID
	AgentId *uint64 `json:"AgentId,omitnil,omitempty" name:"AgentId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeAgentCorpsRequest added in v1.0.690

func NewDescribeAgentCorpsRequest() (request *DescribeAgentCorpsRequest)

func (*DescribeAgentCorpsRequest) FromJsonString added in v1.0.690

func (r *DescribeAgentCorpsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAgentCorpsRequest) ToJsonString added in v1.0.690

func (r *DescribeAgentCorpsRequest) ToJsonString() string

type DescribeAgentCorpsRequestParams added in v1.0.690

type DescribeAgentCorpsRequestParams struct {
	// 每页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 渠道ID
	AgentId *uint64 `json:"AgentId,omitnil,omitempty" name:"AgentId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeAgentCorpsResponse added in v1.0.690

type DescribeAgentCorpsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeAgentCorpsResponseParams `json:"Response"`
}

func NewDescribeAgentCorpsResponse added in v1.0.690

func NewDescribeAgentCorpsResponse() (response *DescribeAgentCorpsResponse)

func (*DescribeAgentCorpsResponse) FromJsonString added in v1.0.690

func (r *DescribeAgentCorpsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAgentCorpsResponse) ToJsonString added in v1.0.690

func (r *DescribeAgentCorpsResponse) ToJsonString() string

type DescribeAgentCorpsResponseParams added in v1.0.690

type DescribeAgentCorpsResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCodeBatchByIdRequest

type DescribeCodeBatchByIdRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`
}

func NewDescribeCodeBatchByIdRequest

func NewDescribeCodeBatchByIdRequest() (request *DescribeCodeBatchByIdRequest)

func (*DescribeCodeBatchByIdRequest) FromJsonString

func (r *DescribeCodeBatchByIdRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodeBatchByIdRequest) ToJsonString

func (r *DescribeCodeBatchByIdRequest) ToJsonString() string

type DescribeCodeBatchByIdRequestParams added in v1.0.426

type DescribeCodeBatchByIdRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`
}

Predefined struct for user

type DescribeCodeBatchByIdResponse

type DescribeCodeBatchByIdResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCodeBatchByIdResponseParams `json:"Response"`
}

func NewDescribeCodeBatchByIdResponse

func NewDescribeCodeBatchByIdResponse() (response *DescribeCodeBatchByIdResponse)

func (*DescribeCodeBatchByIdResponse) FromJsonString

func (r *DescribeCodeBatchByIdResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodeBatchByIdResponse) ToJsonString

func (r *DescribeCodeBatchByIdResponse) ToJsonString() string

type DescribeCodeBatchByIdResponseParams added in v1.0.426

type DescribeCodeBatchByIdResponseParams struct {
	// 批次
	CodeBatch *CodeBatch `json:"CodeBatch,omitnil,omitempty" name:"CodeBatch"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCodeBatchesRequest added in v1.0.762

type DescribeCodeBatchesRequest struct {
	*tchttp.BaseRequest

	// 查询商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 查询商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 查询关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 批次类型 0:溯源 1:营销
	BatchType *string `json:"BatchType,omitnil,omitempty" name:"BatchType"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次状态
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}

func NewDescribeCodeBatchesRequest added in v1.0.762

func NewDescribeCodeBatchesRequest() (request *DescribeCodeBatchesRequest)

func (*DescribeCodeBatchesRequest) FromJsonString added in v1.0.762

func (r *DescribeCodeBatchesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodeBatchesRequest) ToJsonString added in v1.0.762

func (r *DescribeCodeBatchesRequest) ToJsonString() string

type DescribeCodeBatchesRequestParams added in v1.0.762

type DescribeCodeBatchesRequestParams struct {
	// 查询商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 查询商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 查询关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 批次类型 0:溯源 1:营销
	BatchType *string `json:"BatchType,omitnil,omitempty" name:"BatchType"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次状态
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}

Predefined struct for user

type DescribeCodeBatchesResponse added in v1.0.762

type DescribeCodeBatchesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCodeBatchesResponseParams `json:"Response"`
}

func NewDescribeCodeBatchesResponse added in v1.0.762

func NewDescribeCodeBatchesResponse() (response *DescribeCodeBatchesResponse)

func (*DescribeCodeBatchesResponse) FromJsonString added in v1.0.762

func (r *DescribeCodeBatchesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodeBatchesResponse) ToJsonString added in v1.0.762

func (r *DescribeCodeBatchesResponse) ToJsonString() string

type DescribeCodeBatchesResponseParams added in v1.0.762

type DescribeCodeBatchesResponseParams struct {
	// 批次列表
	CodeBatches []*CodeBatch `json:"CodeBatches,omitnil,omitempty" name:"CodeBatches"`

	// 总条数
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCodeBatchsRequest

type DescribeCodeBatchsRequest struct {
	*tchttp.BaseRequest

	// 查询商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 查询商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 查询关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 批次类型 0:溯源 1:营销
	BatchType *string `json:"BatchType,omitnil,omitempty" name:"BatchType"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次状态
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}

func NewDescribeCodeBatchsRequest

func NewDescribeCodeBatchsRequest() (request *DescribeCodeBatchsRequest)

func (*DescribeCodeBatchsRequest) FromJsonString

func (r *DescribeCodeBatchsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodeBatchsRequest) ToJsonString

func (r *DescribeCodeBatchsRequest) ToJsonString() string

type DescribeCodeBatchsRequestParams added in v1.0.426

type DescribeCodeBatchsRequestParams struct {
	// 查询商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 查询商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 查询关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 批次类型 0:溯源 1:营销
	BatchType *string `json:"BatchType,omitnil,omitempty" name:"BatchType"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次状态
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}

Predefined struct for user

type DescribeCodeBatchsResponse

type DescribeCodeBatchsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCodeBatchsResponseParams `json:"Response"`
}

func NewDescribeCodeBatchsResponse

func NewDescribeCodeBatchsResponse() (response *DescribeCodeBatchsResponse)

func (*DescribeCodeBatchsResponse) FromJsonString

func (r *DescribeCodeBatchsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodeBatchsResponse) ToJsonString

func (r *DescribeCodeBatchsResponse) ToJsonString() string

type DescribeCodeBatchsResponseParams added in v1.0.426

type DescribeCodeBatchsResponseParams struct {
	// 批次列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeBatchs []*CodeBatch `json:"CodeBatchs,omitnil,omitempty" name:"CodeBatchs"`

	// 总条数
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCodePackStatusRequest added in v1.0.515

type DescribeCodePackStatusRequest struct {
	*tchttp.BaseRequest

	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeCodePackStatusRequest added in v1.0.515

func NewDescribeCodePackStatusRequest() (request *DescribeCodePackStatusRequest)

func (*DescribeCodePackStatusRequest) FromJsonString added in v1.0.515

func (r *DescribeCodePackStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodePackStatusRequest) ToJsonString added in v1.0.515

func (r *DescribeCodePackStatusRequest) ToJsonString() string

type DescribeCodePackStatusRequestParams added in v1.0.515

type DescribeCodePackStatusRequestParams struct {
	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeCodePackStatusResponse added in v1.0.515

type DescribeCodePackStatusResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCodePackStatusResponseParams `json:"Response"`
}

func NewDescribeCodePackStatusResponse added in v1.0.515

func NewDescribeCodePackStatusResponse() (response *DescribeCodePackStatusResponse)

func (*DescribeCodePackStatusResponse) FromJsonString added in v1.0.515

func (r *DescribeCodePackStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodePackStatusResponse) ToJsonString added in v1.0.515

func (r *DescribeCodePackStatusResponse) ToJsonString() string

type DescribeCodePackStatusResponseParams added in v1.0.515

type DescribeCodePackStatusResponseParams struct {
	// 码包状态 init: 初始化, pending: 执行中, done: 完成, error: 失败
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCodePackUrlRequest added in v1.0.515

type DescribeCodePackUrlRequest struct {
	*tchttp.BaseRequest

	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeCodePackUrlRequest added in v1.0.515

func NewDescribeCodePackUrlRequest() (request *DescribeCodePackUrlRequest)

func (*DescribeCodePackUrlRequest) FromJsonString added in v1.0.515

func (r *DescribeCodePackUrlRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodePackUrlRequest) ToJsonString added in v1.0.515

func (r *DescribeCodePackUrlRequest) ToJsonString() string

type DescribeCodePackUrlRequestParams added in v1.0.515

type DescribeCodePackUrlRequestParams struct {
	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeCodePackUrlResponse added in v1.0.515

type DescribeCodePackUrlResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCodePackUrlResponseParams `json:"Response"`
}

func NewDescribeCodePackUrlResponse added in v1.0.515

func NewDescribeCodePackUrlResponse() (response *DescribeCodePackUrlResponse)

func (*DescribeCodePackUrlResponse) FromJsonString added in v1.0.515

func (r *DescribeCodePackUrlResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodePackUrlResponse) ToJsonString added in v1.0.515

func (r *DescribeCodePackUrlResponse) ToJsonString() string

type DescribeCodePackUrlResponseParams added in v1.0.515

type DescribeCodePackUrlResponseParams struct {
	// 文字码包地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Url *string `json:"Url,omitnil,omitempty" name:"Url"`

	// 图片码包地址,可能为空
	// 注意:此字段可能返回 null,表示取不到有效值。
	ImgUrl *string `json:"ImgUrl,omitnil,omitempty" name:"ImgUrl"`

	// 文字码包Key,用于上传导入
	// 注意:此字段可能返回 null,表示取不到有效值。
	FileKey *string `json:"FileKey,omitnil,omitempty" name:"FileKey"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCodePacksRequest

type DescribeCodePacksRequest struct {
	*tchttp.BaseRequest

	// 每页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 查询关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 是否有流水码 0:无 1:有
	SerialType *uint64 `json:"SerialType,omitnil,omitempty" name:"SerialType"`

	// 资源类型 batch:批次, order_in 入库, order_out: 出入
	ResType *string `json:"ResType,omitnil,omitempty" name:"ResType"`

	// 资源ID ResType是 batch 时对应是批次ID, 是 order_in, order_out时,则是订单ID
	ResId *string `json:"ResId,omitnil,omitempty" name:"ResId"`

	// 应用场景
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`

	// 码包状态
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`
}

func NewDescribeCodePacksRequest

func NewDescribeCodePacksRequest() (request *DescribeCodePacksRequest)

func (*DescribeCodePacksRequest) FromJsonString

func (r *DescribeCodePacksRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodePacksRequest) ToJsonString

func (r *DescribeCodePacksRequest) ToJsonString() string

type DescribeCodePacksRequestParams added in v1.0.426

type DescribeCodePacksRequestParams struct {
	// 每页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 查询关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 是否有流水码 0:无 1:有
	SerialType *uint64 `json:"SerialType,omitnil,omitempty" name:"SerialType"`

	// 资源类型 batch:批次, order_in 入库, order_out: 出入
	ResType *string `json:"ResType,omitnil,omitempty" name:"ResType"`

	// 资源ID ResType是 batch 时对应是批次ID, 是 order_in, order_out时,则是订单ID
	ResId *string `json:"ResId,omitnil,omitempty" name:"ResId"`

	// 应用场景
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`

	// 码包状态
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`
}

Predefined struct for user

type DescribeCodePacksResponse

type DescribeCodePacksResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCodePacksResponseParams `json:"Response"`
}

func NewDescribeCodePacksResponse

func NewDescribeCodePacksResponse() (response *DescribeCodePacksResponse)

func (*DescribeCodePacksResponse) FromJsonString

func (r *DescribeCodePacksResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodePacksResponse) ToJsonString

func (r *DescribeCodePacksResponse) ToJsonString() string

type DescribeCodePacksResponseParams added in v1.0.426

type DescribeCodePacksResponseParams struct {
	// 码列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodePacks []*CodePack `json:"CodePacks,omitnil,omitempty" name:"CodePacks"`

	// 总数
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCodesByPackRequest

type DescribeCodesByPackRequest struct {
	*tchttp.BaseRequest

	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeCodesByPackRequest

func NewDescribeCodesByPackRequest() (request *DescribeCodesByPackRequest)

func (*DescribeCodesByPackRequest) FromJsonString

func (r *DescribeCodesByPackRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodesByPackRequest) ToJsonString

func (r *DescribeCodesByPackRequest) ToJsonString() string

type DescribeCodesByPackRequestParams added in v1.0.426

type DescribeCodesByPackRequestParams struct {
	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeCodesByPackResponse

type DescribeCodesByPackResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCodesByPackResponseParams `json:"Response"`
}

func NewDescribeCodesByPackResponse

func NewDescribeCodesByPackResponse() (response *DescribeCodesByPackResponse)

func (*DescribeCodesByPackResponse) FromJsonString

func (r *DescribeCodesByPackResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCodesByPackResponse) ToJsonString

func (r *DescribeCodesByPackResponse) ToJsonString() string

type DescribeCodesByPackResponseParams added in v1.0.426

type DescribeCodesByPackResponseParams struct {
	// 码列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	Codes []*CodeItem `json:"Codes,omitnil,omitempty" name:"Codes"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCorpQuotasRequest added in v1.0.553

type DescribeCorpQuotasRequest struct {
	*tchttp.BaseRequest

	// 渠道商ID,不要传
	AgentId *uint64 `json:"AgentId,omitnil,omitempty" name:"AgentId"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 搜索企业ID
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`
}

func NewDescribeCorpQuotasRequest added in v1.0.553

func NewDescribeCorpQuotasRequest() (request *DescribeCorpQuotasRequest)

func (*DescribeCorpQuotasRequest) FromJsonString added in v1.0.553

func (r *DescribeCorpQuotasRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCorpQuotasRequest) ToJsonString added in v1.0.553

func (r *DescribeCorpQuotasRequest) ToJsonString() string

type DescribeCorpQuotasRequestParams added in v1.0.553

type DescribeCorpQuotasRequestParams struct {
	// 渠道商ID,不要传
	AgentId *uint64 `json:"AgentId,omitnil,omitempty" name:"AgentId"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 搜索企业ID
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`
}

Predefined struct for user

type DescribeCorpQuotasResponse added in v1.0.553

type DescribeCorpQuotasResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCorpQuotasResponseParams `json:"Response"`
}

func NewDescribeCorpQuotasResponse added in v1.0.553

func NewDescribeCorpQuotasResponse() (response *DescribeCorpQuotasResponse)

func (*DescribeCorpQuotasResponse) FromJsonString added in v1.0.553

func (r *DescribeCorpQuotasResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCorpQuotasResponse) ToJsonString added in v1.0.553

func (r *DescribeCorpQuotasResponse) ToJsonString() string

type DescribeCorpQuotasResponseParams added in v1.0.553

type DescribeCorpQuotasResponseParams struct {
	// 子企业额度使用情况
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpQuotas []*CorpQuota `json:"CorpQuotas,omitnil,omitempty" name:"CorpQuotas"`

	// 记录总数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCustomRuleByIdRequest added in v1.0.515

type DescribeCustomRuleByIdRequest struct {
	*tchttp.BaseRequest

	// 码规则ID
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeCustomRuleByIdRequest added in v1.0.515

func NewDescribeCustomRuleByIdRequest() (request *DescribeCustomRuleByIdRequest)

func (*DescribeCustomRuleByIdRequest) FromJsonString added in v1.0.515

func (r *DescribeCustomRuleByIdRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCustomRuleByIdRequest) ToJsonString added in v1.0.515

func (r *DescribeCustomRuleByIdRequest) ToJsonString() string

type DescribeCustomRuleByIdRequestParams added in v1.0.515

type DescribeCustomRuleByIdRequestParams struct {
	// 码规则ID
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeCustomRuleByIdResponse added in v1.0.515

type DescribeCustomRuleByIdResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCustomRuleByIdResponseParams `json:"Response"`
}

func NewDescribeCustomRuleByIdResponse added in v1.0.515

func NewDescribeCustomRuleByIdResponse() (response *DescribeCustomRuleByIdResponse)

func (*DescribeCustomRuleByIdResponse) FromJsonString added in v1.0.515

func (r *DescribeCustomRuleByIdResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCustomRuleByIdResponse) ToJsonString added in v1.0.515

func (r *DescribeCustomRuleByIdResponse) ToJsonString() string

type DescribeCustomRuleByIdResponseParams added in v1.0.515

type DescribeCustomRuleByIdResponseParams struct {
	// 码规则信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	CustomRule *CustomRule `json:"CustomRule,omitnil,omitempty" name:"CustomRule"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeCustomRulesRequest added in v1.0.515

type DescribeCustomRulesRequest struct {
	*tchttp.BaseRequest

	// 搜索关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码规则状态 0:未生效 1:已生效 -1:已失效
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`
}

func NewDescribeCustomRulesRequest added in v1.0.515

func NewDescribeCustomRulesRequest() (request *DescribeCustomRulesRequest)

func (*DescribeCustomRulesRequest) FromJsonString added in v1.0.515

func (r *DescribeCustomRulesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCustomRulesRequest) ToJsonString added in v1.0.515

func (r *DescribeCustomRulesRequest) ToJsonString() string

type DescribeCustomRulesRequestParams added in v1.0.515

type DescribeCustomRulesRequestParams struct {
	// 搜索关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码规则状态 0:未生效 1:已生效 -1:已失效
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`
}

Predefined struct for user

type DescribeCustomRulesResponse added in v1.0.515

type DescribeCustomRulesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeCustomRulesResponseParams `json:"Response"`
}

func NewDescribeCustomRulesResponse added in v1.0.515

func NewDescribeCustomRulesResponse() (response *DescribeCustomRulesResponse)

func (*DescribeCustomRulesResponse) FromJsonString added in v1.0.515

func (r *DescribeCustomRulesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeCustomRulesResponse) ToJsonString added in v1.0.515

func (r *DescribeCustomRulesResponse) ToJsonString() string

type DescribeCustomRulesResponseParams added in v1.0.515

type DescribeCustomRulesResponseParams struct {
	// 码规则列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	CustomRules []*CustomRule `json:"CustomRules,omitnil,omitempty" name:"CustomRules"`

	// 总数
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeJobFileUrlRequest added in v1.0.515

type DescribeJobFileUrlRequest struct {
	*tchttp.BaseRequest

	// 调度ID
	JobId *uint64 `json:"JobId,omitnil,omitempty" name:"JobId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeJobFileUrlRequest added in v1.0.515

func NewDescribeJobFileUrlRequest() (request *DescribeJobFileUrlRequest)

func (*DescribeJobFileUrlRequest) FromJsonString added in v1.0.515

func (r *DescribeJobFileUrlRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeJobFileUrlRequest) ToJsonString added in v1.0.515

func (r *DescribeJobFileUrlRequest) ToJsonString() string

type DescribeJobFileUrlRequestParams added in v1.0.515

type DescribeJobFileUrlRequestParams struct {
	// 调度ID
	JobId *uint64 `json:"JobId,omitnil,omitempty" name:"JobId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeJobFileUrlResponse added in v1.0.515

type DescribeJobFileUrlResponse struct {
	*tchttp.BaseResponse
	Response *DescribeJobFileUrlResponseParams `json:"Response"`
}

func NewDescribeJobFileUrlResponse added in v1.0.515

func NewDescribeJobFileUrlResponse() (response *DescribeJobFileUrlResponse)

func (*DescribeJobFileUrlResponse) FromJsonString added in v1.0.515

func (r *DescribeJobFileUrlResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeJobFileUrlResponse) ToJsonString added in v1.0.515

func (r *DescribeJobFileUrlResponse) ToJsonString() string

type DescribeJobFileUrlResponseParams added in v1.0.515

type DescribeJobFileUrlResponseParams struct {
	// 码包地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Url *string `json:"Url,omitnil,omitempty" name:"Url"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeMerchantByIdRequest

type DescribeMerchantByIdRequest struct {
	*tchttp.BaseRequest

	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeMerchantByIdRequest

func NewDescribeMerchantByIdRequest() (request *DescribeMerchantByIdRequest)

func (*DescribeMerchantByIdRequest) FromJsonString

func (r *DescribeMerchantByIdRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMerchantByIdRequest) ToJsonString

func (r *DescribeMerchantByIdRequest) ToJsonString() string

type DescribeMerchantByIdRequestParams added in v1.0.426

type DescribeMerchantByIdRequestParams struct {
	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeMerchantByIdResponse

type DescribeMerchantByIdResponse struct {
	*tchttp.BaseResponse
	Response *DescribeMerchantByIdResponseParams `json:"Response"`
}

func NewDescribeMerchantByIdResponse

func NewDescribeMerchantByIdResponse() (response *DescribeMerchantByIdResponse)

func (*DescribeMerchantByIdResponse) FromJsonString

func (r *DescribeMerchantByIdResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMerchantByIdResponse) ToJsonString

func (r *DescribeMerchantByIdResponse) ToJsonString() string

type DescribeMerchantByIdResponseParams added in v1.0.426

type DescribeMerchantByIdResponseParams struct {
	// 商户信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	Merchant *Merchant `json:"Merchant,omitnil,omitempty" name:"Merchant"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeMerchantsRequest

type DescribeMerchantsRequest struct {
	*tchttp.BaseRequest

	// 搜索商户名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 条数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码来源类型 0:自建, 1:第三方
	CodeType *int64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`
}

func NewDescribeMerchantsRequest

func NewDescribeMerchantsRequest() (request *DescribeMerchantsRequest)

func (*DescribeMerchantsRequest) FromJsonString

func (r *DescribeMerchantsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMerchantsRequest) ToJsonString

func (r *DescribeMerchantsRequest) ToJsonString() string

type DescribeMerchantsRequestParams added in v1.0.426

type DescribeMerchantsRequestParams struct {
	// 搜索商户名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 条数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码来源类型 0:自建, 1:第三方
	CodeType *int64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`
}

Predefined struct for user

type DescribeMerchantsResponse

type DescribeMerchantsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeMerchantsResponseParams `json:"Response"`
}

func NewDescribeMerchantsResponse

func NewDescribeMerchantsResponse() (response *DescribeMerchantsResponse)

func (*DescribeMerchantsResponse) FromJsonString

func (r *DescribeMerchantsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMerchantsResponse) ToJsonString

func (r *DescribeMerchantsResponse) ToJsonString() string

type DescribeMerchantsResponseParams added in v1.0.426

type DescribeMerchantsResponseParams struct {
	// 商户列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	Merchants []*Merchant `json:"Merchants,omitnil,omitempty" name:"Merchants"`

	// 总数
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribePlanQRCodeScanRecordsRequest added in v1.0.824

type DescribePlanQRCodeScanRecordsRequest struct {
	*tchttp.BaseRequest

	// 开始时间
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 页码
	PageNo *int64 `json:"PageNo,omitnil,omitempty" name:"PageNo"`

	// 页大小
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

func NewDescribePlanQRCodeScanRecordsRequest added in v1.0.824

func NewDescribePlanQRCodeScanRecordsRequest() (request *DescribePlanQRCodeScanRecordsRequest)

func (*DescribePlanQRCodeScanRecordsRequest) FromJsonString added in v1.0.824

func (r *DescribePlanQRCodeScanRecordsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribePlanQRCodeScanRecordsRequest) ToJsonString added in v1.0.824

func (r *DescribePlanQRCodeScanRecordsRequest) ToJsonString() string

type DescribePlanQRCodeScanRecordsRequestParams added in v1.0.824

type DescribePlanQRCodeScanRecordsRequestParams struct {
	// 开始时间
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 页码
	PageNo *int64 `json:"PageNo,omitnil,omitempty" name:"PageNo"`

	// 页大小
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

Predefined struct for user

type DescribePlanQRCodeScanRecordsResponse added in v1.0.824

type DescribePlanQRCodeScanRecordsResponse struct {
	*tchttp.BaseResponse
	Response *DescribePlanQRCodeScanRecordsResponseParams `json:"Response"`
}

func NewDescribePlanQRCodeScanRecordsResponse added in v1.0.824

func NewDescribePlanQRCodeScanRecordsResponse() (response *DescribePlanQRCodeScanRecordsResponse)

func (*DescribePlanQRCodeScanRecordsResponse) FromJsonString added in v1.0.824

func (r *DescribePlanQRCodeScanRecordsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribePlanQRCodeScanRecordsResponse) ToJsonString added in v1.0.824

type DescribePlanQRCodeScanRecordsResponseParams added in v1.0.824

type DescribePlanQRCodeScanRecordsResponseParams struct {
	// 返回码
	Ret *int64 `json:"Ret,omitnil,omitempty" name:"Ret"`

	// 总数
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`

	// 数据
	Data []*PlanQRCodeRecord `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribePlanQRCodesRequest added in v1.0.775

type DescribePlanQRCodesRequest struct {
	*tchttp.BaseRequest

	// 计划ID
	PlanId *int64 `json:"PlanId,omitnil,omitempty" name:"PlanId"`

	// 开始时间
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 页码
	PageNo *int64 `json:"PageNo,omitnil,omitempty" name:"PageNo"`

	// 页大小
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

func NewDescribePlanQRCodesRequest added in v1.0.775

func NewDescribePlanQRCodesRequest() (request *DescribePlanQRCodesRequest)

func (*DescribePlanQRCodesRequest) FromJsonString added in v1.0.775

func (r *DescribePlanQRCodesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribePlanQRCodesRequest) ToJsonString added in v1.0.775

func (r *DescribePlanQRCodesRequest) ToJsonString() string

type DescribePlanQRCodesRequestParams added in v1.0.775

type DescribePlanQRCodesRequestParams struct {
	// 计划ID
	PlanId *int64 `json:"PlanId,omitnil,omitempty" name:"PlanId"`

	// 开始时间
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 页码
	PageNo *int64 `json:"PageNo,omitnil,omitempty" name:"PageNo"`

	// 页大小
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

Predefined struct for user

type DescribePlanQRCodesResponse added in v1.0.775

type DescribePlanQRCodesResponse struct {
	*tchttp.BaseResponse
	Response *DescribePlanQRCodesResponseParams `json:"Response"`
}

func NewDescribePlanQRCodesResponse added in v1.0.775

func NewDescribePlanQRCodesResponse() (response *DescribePlanQRCodesResponse)

func (*DescribePlanQRCodesResponse) FromJsonString added in v1.0.775

func (r *DescribePlanQRCodesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribePlanQRCodesResponse) ToJsonString added in v1.0.775

func (r *DescribePlanQRCodesResponse) ToJsonString() string

type DescribePlanQRCodesResponseParams added in v1.0.775

type DescribePlanQRCodesResponseParams struct {
	// 返回码
	Ret *int64 `json:"Ret,omitnil,omitempty" name:"Ret"`

	// 总数
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`

	// 数据
	Data []*PlanQRCode `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeProductByIdRequest

type DescribeProductByIdRequest struct {
	*tchttp.BaseRequest

	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeProductByIdRequest

func NewDescribeProductByIdRequest() (request *DescribeProductByIdRequest)

func (*DescribeProductByIdRequest) FromJsonString

func (r *DescribeProductByIdRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeProductByIdRequest) ToJsonString

func (r *DescribeProductByIdRequest) ToJsonString() string

type DescribeProductByIdRequestParams added in v1.0.426

type DescribeProductByIdRequestParams struct {
	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeProductByIdResponse

type DescribeProductByIdResponse struct {
	*tchttp.BaseResponse
	Response *DescribeProductByIdResponseParams `json:"Response"`
}

func NewDescribeProductByIdResponse

func NewDescribeProductByIdResponse() (response *DescribeProductByIdResponse)

func (*DescribeProductByIdResponse) FromJsonString

func (r *DescribeProductByIdResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeProductByIdResponse) ToJsonString

func (r *DescribeProductByIdResponse) ToJsonString() string

type DescribeProductByIdResponseParams added in v1.0.426

type DescribeProductByIdResponseParams struct {
	// 商品信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	Product *Product `json:"Product,omitnil,omitempty" name:"Product"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeProductsRequest

type DescribeProductsRequest struct {
	*tchttp.BaseRequest

	// 商品名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 条数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 商品ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 认证状态
	CertState *int64 `json:"CertState,omitnil,omitempty" name:"CertState"`
}

func NewDescribeProductsRequest

func NewDescribeProductsRequest() (request *DescribeProductsRequest)

func (*DescribeProductsRequest) FromJsonString

func (r *DescribeProductsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeProductsRequest) ToJsonString

func (r *DescribeProductsRequest) ToJsonString() string

type DescribeProductsRequestParams added in v1.0.426

type DescribeProductsRequestParams struct {
	// 商品名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 条数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 商品ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 认证状态
	CertState *int64 `json:"CertState,omitnil,omitempty" name:"CertState"`
}

Predefined struct for user

type DescribeProductsResponse

type DescribeProductsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeProductsResponseParams `json:"Response"`
}

func NewDescribeProductsResponse

func NewDescribeProductsResponse() (response *DescribeProductsResponse)

func (*DescribeProductsResponse) FromJsonString

func (r *DescribeProductsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeProductsResponse) ToJsonString

func (r *DescribeProductsResponse) ToJsonString() string

type DescribeProductsResponseParams added in v1.0.426

type DescribeProductsResponseParams struct {
	// 商品列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	Products []*Product `json:"Products,omitnil,omitempty" name:"Products"`

	// 总数
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeRawScanLogsRequest added in v1.0.694

type DescribeRawScanLogsRequest struct {
	*tchttp.BaseRequest

	// 企业ID, 默认为当前企业
	// 如果有渠道权限,可以传 0 会查渠道下所有的企业
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 分页数量,默认为 20,最大为 1000
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前分页,默认为 1
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 从哪个日志后查询
	// 即: LogId > $AfterLogId
	AfterLogId *uint64 `json:"AfterLogId,omitnil,omitempty" name:"AfterLogId"`

	// 开始时间 >= StartTime
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间 < EndTime
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

func NewDescribeRawScanLogsRequest added in v1.0.694

func NewDescribeRawScanLogsRequest() (request *DescribeRawScanLogsRequest)

func (*DescribeRawScanLogsRequest) FromJsonString added in v1.0.694

func (r *DescribeRawScanLogsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRawScanLogsRequest) ToJsonString added in v1.0.694

func (r *DescribeRawScanLogsRequest) ToJsonString() string

type DescribeRawScanLogsRequestParams added in v1.0.694

type DescribeRawScanLogsRequestParams struct {
	// 企业ID, 默认为当前企业
	// 如果有渠道权限,可以传 0 会查渠道下所有的企业
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 分页数量,默认为 20,最大为 1000
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前分页,默认为 1
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 从哪个日志后查询
	// 即: LogId > $AfterLogId
	AfterLogId *uint64 `json:"AfterLogId,omitnil,omitempty" name:"AfterLogId"`

	// 开始时间 >= StartTime
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间 < EndTime
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

Predefined struct for user

type DescribeRawScanLogsResponse added in v1.0.694

type DescribeRawScanLogsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeRawScanLogsResponseParams `json:"Response"`
}

func NewDescribeRawScanLogsResponse added in v1.0.694

func NewDescribeRawScanLogsResponse() (response *DescribeRawScanLogsResponse)

func (*DescribeRawScanLogsResponse) FromJsonString added in v1.0.694

func (r *DescribeRawScanLogsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRawScanLogsResponse) ToJsonString added in v1.0.694

func (r *DescribeRawScanLogsResponse) ToJsonString() string

type DescribeRawScanLogsResponseParams added in v1.0.694

type DescribeRawScanLogsResponseParams struct {
	// 原始扫码日志
	ScanLogs []*RawScanLog `json:"ScanLogs,omitnil,omitempty" name:"ScanLogs"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeScanLogsRequest added in v1.0.584

type DescribeScanLogsRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 分页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前分页
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 安心码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 小程序用户ID
	Openid *string `json:"Openid,omitnil,omitempty" name:"Openid"`
}

func NewDescribeScanLogsRequest added in v1.0.584

func NewDescribeScanLogsRequest() (request *DescribeScanLogsRequest)

func (*DescribeScanLogsRequest) FromJsonString added in v1.0.584

func (r *DescribeScanLogsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeScanLogsRequest) ToJsonString added in v1.0.584

func (r *DescribeScanLogsRequest) ToJsonString() string

type DescribeScanLogsRequestParams added in v1.0.584

type DescribeScanLogsRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 分页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前分页
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 安心码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 小程序用户ID
	Openid *string `json:"Openid,omitnil,omitempty" name:"Openid"`
}

Predefined struct for user

type DescribeScanLogsResponse added in v1.0.584

type DescribeScanLogsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeScanLogsResponseParams `json:"Response"`
}

func NewDescribeScanLogsResponse added in v1.0.584

func NewDescribeScanLogsResponse() (response *DescribeScanLogsResponse)

func (*DescribeScanLogsResponse) FromJsonString added in v1.0.584

func (r *DescribeScanLogsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeScanLogsResponse) ToJsonString added in v1.0.584

func (r *DescribeScanLogsResponse) ToJsonString() string

type DescribeScanLogsResponseParams added in v1.0.584

type DescribeScanLogsResponseParams struct {
	// 【弃用】
	//
	// Deprecated: Products is deprecated.
	Products []*ScanLog `json:"Products,omitnil,omitempty" name:"Products"`

	// 条数
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 扫描记录
	ScanLogs []*ScanLog `json:"ScanLogs,omitnil,omitempty" name:"ScanLogs"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeScanStatsRequest added in v1.0.584

type DescribeScanStatsRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 分页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前分页
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 安心码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`
}

func NewDescribeScanStatsRequest added in v1.0.584

func NewDescribeScanStatsRequest() (request *DescribeScanStatsRequest)

func (*DescribeScanStatsRequest) FromJsonString added in v1.0.584

func (r *DescribeScanStatsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeScanStatsRequest) ToJsonString added in v1.0.584

func (r *DescribeScanStatsRequest) ToJsonString() string

type DescribeScanStatsRequestParams added in v1.0.584

type DescribeScanStatsRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 分页数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前分页
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 安心码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`
}

Predefined struct for user

type DescribeScanStatsResponse added in v1.0.584

type DescribeScanStatsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeScanStatsResponseParams `json:"Response"`
}

func NewDescribeScanStatsResponse added in v1.0.584

func NewDescribeScanStatsResponse() (response *DescribeScanStatsResponse)

func (*DescribeScanStatsResponse) FromJsonString added in v1.0.584

func (r *DescribeScanStatsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeScanStatsResponse) ToJsonString added in v1.0.584

func (r *DescribeScanStatsResponse) ToJsonString() string

type DescribeScanStatsResponseParams added in v1.0.584

type DescribeScanStatsResponseParams struct {
	// 统计记录
	ScanStats []*ScanStat `json:"ScanStats,omitnil,omitempty" name:"ScanStats"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTmpTokenRequest added in v1.0.516

type DescribeTmpTokenRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeTmpTokenRequest added in v1.0.516

func NewDescribeTmpTokenRequest() (request *DescribeTmpTokenRequest)

func (*DescribeTmpTokenRequest) FromJsonString added in v1.0.516

func (r *DescribeTmpTokenRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTmpTokenRequest) ToJsonString added in v1.0.516

func (r *DescribeTmpTokenRequest) ToJsonString() string

type DescribeTmpTokenRequestParams added in v1.0.516

type DescribeTmpTokenRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeTmpTokenResponse added in v1.0.516

type DescribeTmpTokenResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTmpTokenResponseParams `json:"Response"`
}

func NewDescribeTmpTokenResponse added in v1.0.516

func NewDescribeTmpTokenResponse() (response *DescribeTmpTokenResponse)

func (*DescribeTmpTokenResponse) FromJsonString added in v1.0.516

func (r *DescribeTmpTokenResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTmpTokenResponse) ToJsonString added in v1.0.516

func (r *DescribeTmpTokenResponse) ToJsonString() string

type DescribeTmpTokenResponseParams added in v1.0.516

type DescribeTmpTokenResponseParams struct {
	// 临时token
	// 注意:此字段可能返回 null,表示取不到有效值。
	Token *string `json:"Token,omitnil,omitempty" name:"Token"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTraceCodeByIdRequest

type DescribeTraceCodeByIdRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 二维码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`
}

func NewDescribeTraceCodeByIdRequest

func NewDescribeTraceCodeByIdRequest() (request *DescribeTraceCodeByIdRequest)

func (*DescribeTraceCodeByIdRequest) FromJsonString

func (r *DescribeTraceCodeByIdRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceCodeByIdRequest) ToJsonString

func (r *DescribeTraceCodeByIdRequest) ToJsonString() string

type DescribeTraceCodeByIdRequestParams added in v1.0.426

type DescribeTraceCodeByIdRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 二维码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`
}

Predefined struct for user

type DescribeTraceCodeByIdResponse

type DescribeTraceCodeByIdResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTraceCodeByIdResponseParams `json:"Response"`
}

func NewDescribeTraceCodeByIdResponse

func NewDescribeTraceCodeByIdResponse() (response *DescribeTraceCodeByIdResponse)

func (*DescribeTraceCodeByIdResponse) FromJsonString

func (r *DescribeTraceCodeByIdResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceCodeByIdResponse) ToJsonString

func (r *DescribeTraceCodeByIdResponse) ToJsonString() string

type DescribeTraceCodeByIdResponseParams added in v1.0.426

type DescribeTraceCodeByIdResponseParams struct {
	// 无
	TraceCode *TraceCode `json:"TraceCode,omitnil,omitempty" name:"TraceCode"`

	// 码路径,如level是2,则为 [1级, 2级]
	CodePath []*string `json:"CodePath,omitnil,omitempty" name:"CodePath"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTraceCodesRequest

type DescribeTraceCodesRequest struct {
	*tchttp.BaseRequest

	// 搜索关键字 码标识,或者批次ID
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 页码
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 批次ID,弃用
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeTraceCodesRequest

func NewDescribeTraceCodesRequest() (request *DescribeTraceCodesRequest)

func (*DescribeTraceCodesRequest) FromJsonString

func (r *DescribeTraceCodesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceCodesRequest) ToJsonString

func (r *DescribeTraceCodesRequest) ToJsonString() string

type DescribeTraceCodesRequestParams added in v1.0.426

type DescribeTraceCodesRequestParams struct {
	// 搜索关键字 码标识,或者批次ID
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 条数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 页码
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 批次ID,弃用
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeTraceCodesResponse

type DescribeTraceCodesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTraceCodesResponseParams `json:"Response"`
}

func NewDescribeTraceCodesResponse

func NewDescribeTraceCodesResponse() (response *DescribeTraceCodesResponse)

func (*DescribeTraceCodesResponse) FromJsonString

func (r *DescribeTraceCodesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceCodesResponse) ToJsonString

func (r *DescribeTraceCodesResponse) ToJsonString() string

type DescribeTraceCodesResponseParams added in v1.0.426

type DescribeTraceCodesResponseParams struct {
	// 标识列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	TraceCodes []*TraceCode `json:"TraceCodes,omitnil,omitempty" name:"TraceCodes"`

	// 条数
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTraceDataByIdRequest added in v1.0.639

type DescribeTraceDataByIdRequest struct {
	*tchttp.BaseRequest

	// 溯源ID
	Id *string `json:"Id,omitnil,omitempty" name:"Id"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewDescribeTraceDataByIdRequest added in v1.0.639

func NewDescribeTraceDataByIdRequest() (request *DescribeTraceDataByIdRequest)

func (*DescribeTraceDataByIdRequest) FromJsonString added in v1.0.639

func (r *DescribeTraceDataByIdRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceDataByIdRequest) ToJsonString added in v1.0.639

func (r *DescribeTraceDataByIdRequest) ToJsonString() string

type DescribeTraceDataByIdRequestParams added in v1.0.639

type DescribeTraceDataByIdRequestParams struct {
	// 溯源ID
	Id *string `json:"Id,omitnil,omitempty" name:"Id"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type DescribeTraceDataByIdResponse added in v1.0.639

type DescribeTraceDataByIdResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTraceDataByIdResponseParams `json:"Response"`
}

func NewDescribeTraceDataByIdResponse added in v1.0.639

func NewDescribeTraceDataByIdResponse() (response *DescribeTraceDataByIdResponse)

func (*DescribeTraceDataByIdResponse) FromJsonString added in v1.0.639

func (r *DescribeTraceDataByIdResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceDataByIdResponse) ToJsonString added in v1.0.639

func (r *DescribeTraceDataByIdResponse) ToJsonString() string

type DescribeTraceDataByIdResponseParams added in v1.0.639

type DescribeTraceDataByIdResponseParams struct {
	// 无
	TraceData *TraceData `json:"TraceData,omitnil,omitempty" name:"TraceData"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTraceDataListRequest

type DescribeTraceDataListRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 任务ID 用于外部溯源
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 二维码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
	Phase *uint64 `json:"Phase,omitnil,omitempty" name:"Phase"`

	// 数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

func NewDescribeTraceDataListRequest

func NewDescribeTraceDataListRequest() (request *DescribeTraceDataListRequest)

func (*DescribeTraceDataListRequest) FromJsonString

func (r *DescribeTraceDataListRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceDataListRequest) ToJsonString

func (r *DescribeTraceDataListRequest) ToJsonString() string

type DescribeTraceDataListRequestParams added in v1.0.426

type DescribeTraceDataListRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 任务ID 用于外部溯源
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 页数
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 二维码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
	Phase *uint64 `json:"Phase,omitnil,omitempty" name:"Phase"`

	// 数量
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

Predefined struct for user

type DescribeTraceDataListResponse

type DescribeTraceDataListResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTraceDataListResponseParams `json:"Response"`
}

func NewDescribeTraceDataListResponse

func NewDescribeTraceDataListResponse() (response *DescribeTraceDataListResponse)

func (*DescribeTraceDataListResponse) FromJsonString

func (r *DescribeTraceDataListResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTraceDataListResponse) ToJsonString

func (r *DescribeTraceDataListResponse) ToJsonString() string

type DescribeTraceDataListResponseParams added in v1.0.426

type DescribeTraceDataListResponseParams struct {
	// 数量
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 无
	TraceDataList []*TraceData `json:"TraceDataList,omitnil,omitempty" name:"TraceDataList"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type EffectFeedbackRequest added in v1.0.640

type EffectFeedbackRequest struct {
	*tchttp.BaseRequest

	// 业务加密入参。
	BusinessSecurityData *InputEncryptData `json:"BusinessSecurityData,omitnil,omitempty" name:"BusinessSecurityData"`
}

func NewEffectFeedbackRequest added in v1.0.640

func NewEffectFeedbackRequest() (request *EffectFeedbackRequest)

func (*EffectFeedbackRequest) FromJsonString added in v1.0.640

func (r *EffectFeedbackRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*EffectFeedbackRequest) ToJsonString added in v1.0.640

func (r *EffectFeedbackRequest) ToJsonString() string

type EffectFeedbackRequestParams added in v1.0.640

type EffectFeedbackRequestParams struct {
	// 业务加密入参。
	BusinessSecurityData *InputEncryptData `json:"BusinessSecurityData,omitnil,omitempty" name:"BusinessSecurityData"`
}

Predefined struct for user

type EffectFeedbackResponse added in v1.0.640

type EffectFeedbackResponse struct {
	*tchttp.BaseResponse
	Response *EffectFeedbackResponseParams `json:"Response"`
}

func NewEffectFeedbackResponse added in v1.0.640

func NewEffectFeedbackResponse() (response *EffectFeedbackResponse)

func (*EffectFeedbackResponse) FromJsonString added in v1.0.640

func (r *EffectFeedbackResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*EffectFeedbackResponse) ToJsonString added in v1.0.640

func (r *EffectFeedbackResponse) ToJsonString() string

type EffectFeedbackResponseParams added in v1.0.640

type EffectFeedbackResponseParams struct {
	// 业务出参。
	Data *OutputAuthorizedTransfer `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Ext

type Ext struct {
	// 字符串
	// 注意:此字段可能返回 null,表示取不到有效值。
	//
	// Deprecated: Value is deprecated.
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type InputEncryptData added in v1.0.640

type InputEncryptData struct {
	// 加密方式,0:AES加密;
	EncryptMethod *int64 `json:"EncryptMethod,omitnil,omitempty" name:"EncryptMethod"`

	// 加密算法中的块处理模式,1:CBC模式; 目前只支持CBC模式
	EncryptMode *int64 `json:"EncryptMode,omitnil,omitempty" name:"EncryptMode"`

	// 填充模式,0:ZeroPadding;1:PKCS5Padding;2:
	// PKCS7Padding。
	PaddingType *int64 `json:"PaddingType,omitnil,omitempty" name:"PaddingType"`

	// 加密数据,将AuthorizedData结构体数组(数组最大长度不超过20)序列化成JSON字符串,对得到的字符串加密并填充到该字段。
	EncryptData *string `json:"EncryptData,omitnil,omitempty" name:"EncryptData"`

	// 用户是否授权,本接口取值:1,已授权。
	IsAuthorized *int64 `json:"IsAuthorized,omitnil,omitempty" name:"IsAuthorized"`
}

type Job added in v1.0.513

type Job struct {
	// 调度ID
	JobId *int64 `json:"JobId,omitnil,omitempty" name:"JobId"`

	// 执行状态 init:初始化, pending: 执行中, done: 执行成功, error: 执行失败
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// 任务错误信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	ErrorMessage *string `json:"ErrorMessage,omitnil,omitempty" name:"ErrorMessage"`
}

type Merchant

type Merchant struct {
	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 企业id
	CorpId *int64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// 商户码规则
	CodeRule *string `json:"CodeRule,omitnil,omitempty" name:"CodeRule"`

	// 码来源类型 0: 安心平台 1: 第三方码
	CodeType *int64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 第三方码域名前缀
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeUrl *string `json:"CodeUrl,omitnil,omitempty" name:"CodeUrl"`
}

type ModifyCodeBatchRequest

type ModifyCodeBatchRequest struct {
	*tchttp.BaseRequest

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 状态 0: 未激活 1: 已激活 -1: 已冻结
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 模板ID,或者活动ID
	MpTpl *string `json:"MpTpl,omitnil,omitempty" name:"MpTpl"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 批次编码,业务字段不判断唯一性
	BatchCode *string `json:"BatchCode,omitnil,omitempty" name:"BatchCode"`

	// 有效期
	ValidDate *string `json:"ValidDate,omitnil,omitempty" name:"ValidDate"`

	// 生产日期
	ProductionDate *string `json:"ProductionDate,omitnil,omitempty" name:"ProductionDate"`
}

func NewModifyCodeBatchRequest

func NewModifyCodeBatchRequest() (request *ModifyCodeBatchRequest)

func (*ModifyCodeBatchRequest) FromJsonString

func (r *ModifyCodeBatchRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyCodeBatchRequest) ToJsonString

func (r *ModifyCodeBatchRequest) ToJsonString() string

type ModifyCodeBatchRequestParams added in v1.0.426

type ModifyCodeBatchRequestParams struct {
	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 状态 0: 未激活 1: 已激活 -1: 已冻结
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 模板ID,或者活动ID
	MpTpl *string `json:"MpTpl,omitnil,omitempty" name:"MpTpl"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 批次编码,业务字段不判断唯一性
	BatchCode *string `json:"BatchCode,omitnil,omitempty" name:"BatchCode"`

	// 有效期
	ValidDate *string `json:"ValidDate,omitnil,omitempty" name:"ValidDate"`

	// 生产日期
	ProductionDate *string `json:"ProductionDate,omitnil,omitempty" name:"ProductionDate"`
}

Predefined struct for user

type ModifyCodeBatchResponse

type ModifyCodeBatchResponse struct {
	*tchttp.BaseResponse
	Response *ModifyCodeBatchResponseParams `json:"Response"`
}

func NewModifyCodeBatchResponse

func NewModifyCodeBatchResponse() (response *ModifyCodeBatchResponse)

func (*ModifyCodeBatchResponse) FromJsonString

func (r *ModifyCodeBatchResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyCodeBatchResponse) ToJsonString

func (r *ModifyCodeBatchResponse) ToJsonString() string

type ModifyCodeBatchResponseParams added in v1.0.426

type ModifyCodeBatchResponseParams struct {
	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyCustomRuleRequest added in v1.0.515

type ModifyCustomRuleRequest struct {
	*tchttp.BaseRequest

	// 码规则ID
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 规则名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 码长度
	CodeLength *uint64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 码段配置
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewModifyCustomRuleRequest added in v1.0.515

func NewModifyCustomRuleRequest() (request *ModifyCustomRuleRequest)

func (*ModifyCustomRuleRequest) FromJsonString added in v1.0.515

func (r *ModifyCustomRuleRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyCustomRuleRequest) ToJsonString added in v1.0.515

func (r *ModifyCustomRuleRequest) ToJsonString() string

type ModifyCustomRuleRequestParams added in v1.0.515

type ModifyCustomRuleRequestParams struct {
	// 码规则ID
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 规则名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 码长度
	CodeLength *uint64 `json:"CodeLength,omitnil,omitempty" name:"CodeLength"`

	// 码段配置
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type ModifyCustomRuleResponse added in v1.0.515

type ModifyCustomRuleResponse struct {
	*tchttp.BaseResponse
	Response *ModifyCustomRuleResponseParams `json:"Response"`
}

func NewModifyCustomRuleResponse added in v1.0.515

func NewModifyCustomRuleResponse() (response *ModifyCustomRuleResponse)

func (*ModifyCustomRuleResponse) FromJsonString added in v1.0.515

func (r *ModifyCustomRuleResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyCustomRuleResponse) ToJsonString added in v1.0.515

func (r *ModifyCustomRuleResponse) ToJsonString() string

type ModifyCustomRuleResponseParams added in v1.0.515

type ModifyCustomRuleResponseParams struct {
	// 码规则ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyCustomRuleStatusRequest added in v1.0.515

type ModifyCustomRuleStatusRequest struct {
	*tchttp.BaseRequest

	// 码规则ID
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 码规则状态 0:未生效 1:已生效 -1:已失效
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewModifyCustomRuleStatusRequest added in v1.0.515

func NewModifyCustomRuleStatusRequest() (request *ModifyCustomRuleStatusRequest)

func (*ModifyCustomRuleStatusRequest) FromJsonString added in v1.0.515

func (r *ModifyCustomRuleStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyCustomRuleStatusRequest) ToJsonString added in v1.0.515

func (r *ModifyCustomRuleStatusRequest) ToJsonString() string

type ModifyCustomRuleStatusRequestParams added in v1.0.515

type ModifyCustomRuleStatusRequestParams struct {
	// 码规则ID
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 码规则状态 0:未生效 1:已生效 -1:已失效
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type ModifyCustomRuleStatusResponse added in v1.0.515

type ModifyCustomRuleStatusResponse struct {
	*tchttp.BaseResponse
	Response *ModifyCustomRuleStatusResponseParams `json:"Response"`
}

func NewModifyCustomRuleStatusResponse added in v1.0.515

func NewModifyCustomRuleStatusResponse() (response *ModifyCustomRuleStatusResponse)

func (*ModifyCustomRuleStatusResponse) FromJsonString added in v1.0.515

func (r *ModifyCustomRuleStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyCustomRuleStatusResponse) ToJsonString added in v1.0.515

func (r *ModifyCustomRuleStatusResponse) ToJsonString() string

type ModifyCustomRuleStatusResponseParams added in v1.0.515

type ModifyCustomRuleStatusResponseParams struct {
	// 码规则ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyMerchantRequest

type ModifyMerchantRequest struct {
	*tchttp.BaseRequest

	// 商户名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包来源 0:自建, 1:第三码包,暂不支持修改
	CodeType *int64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 码包前缀地址 第三方码包时必填
	CodeUrl *string `json:"CodeUrl,omitnil,omitempty" name:"CodeUrl"`
}

func NewModifyMerchantRequest

func NewModifyMerchantRequest() (request *ModifyMerchantRequest)

func (*ModifyMerchantRequest) FromJsonString

func (r *ModifyMerchantRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyMerchantRequest) ToJsonString

func (r *ModifyMerchantRequest) ToJsonString() string

type ModifyMerchantRequestParams added in v1.0.426

type ModifyMerchantRequestParams struct {
	// 商户名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包来源 0:自建, 1:第三码包,暂不支持修改
	CodeType *int64 `json:"CodeType,omitnil,omitempty" name:"CodeType"`

	// 码包前缀地址 第三方码包时必填
	CodeUrl *string `json:"CodeUrl,omitnil,omitempty" name:"CodeUrl"`
}

Predefined struct for user

type ModifyMerchantResponse

type ModifyMerchantResponse struct {
	*tchttp.BaseResponse
	Response *ModifyMerchantResponseParams `json:"Response"`
}

func NewModifyMerchantResponse

func NewModifyMerchantResponse() (response *ModifyMerchantResponse)

func (*ModifyMerchantResponse) FromJsonString

func (r *ModifyMerchantResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyMerchantResponse) ToJsonString

func (r *ModifyMerchantResponse) ToJsonString() string

type ModifyMerchantResponseParams added in v1.0.426

type ModifyMerchantResponseParams struct {
	// 商户标识码
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyProductRequest

type ModifyProductRequest struct {
	*tchttp.BaseRequest

	// 商品名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 商品规格
	Specification *string `json:"Specification,omitnil,omitempty" name:"Specification"`

	Logo []*string `json:"Logo,omitnil,omitempty" name:"Logo"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 预留字段
	Ext *Ext `json:"Ext,omitnil,omitempty" name:"Ext"`
}

func NewModifyProductRequest

func NewModifyProductRequest() (request *ModifyProductRequest)

func (*ModifyProductRequest) FromJsonString

func (r *ModifyProductRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyProductRequest) ToJsonString

func (r *ModifyProductRequest) ToJsonString() string

type ModifyProductRequestParams added in v1.0.426

type ModifyProductRequestParams struct {
	// 商品名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 商品规格
	Specification *string `json:"Specification,omitnil,omitempty" name:"Specification"`

	Logo []*string `json:"Logo,omitnil,omitempty" name:"Logo"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 预留字段
	Ext *Ext `json:"Ext,omitnil,omitempty" name:"Ext"`
}

Predefined struct for user

type ModifyProductResponse

type ModifyProductResponse struct {
	*tchttp.BaseResponse
	Response *ModifyProductResponseParams `json:"Response"`
}

func NewModifyProductResponse

func NewModifyProductResponse() (response *ModifyProductResponse)

func (*ModifyProductResponse) FromJsonString

func (r *ModifyProductResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyProductResponse) ToJsonString

func (r *ModifyProductResponse) ToJsonString() string

type ModifyProductResponseParams added in v1.0.426

type ModifyProductResponseParams struct {
	// 商品ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyTraceCodeRequest

type ModifyTraceCodeRequest struct {
	*tchttp.BaseRequest

	// 二维码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 状态 0: 冻结 1: 激活
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}

func NewModifyTraceCodeRequest

func NewModifyTraceCodeRequest() (request *ModifyTraceCodeRequest)

func (*ModifyTraceCodeRequest) FromJsonString

func (r *ModifyTraceCodeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceCodeRequest) ToJsonString

func (r *ModifyTraceCodeRequest) ToJsonString() string

type ModifyTraceCodeRequestParams added in v1.0.426

type ModifyTraceCodeRequestParams struct {
	// 二维码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 状态 0: 冻结 1: 激活
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}

Predefined struct for user

type ModifyTraceCodeResponse

type ModifyTraceCodeResponse struct {
	*tchttp.BaseResponse
	Response *ModifyTraceCodeResponseParams `json:"Response"`
}

func NewModifyTraceCodeResponse

func NewModifyTraceCodeResponse() (response *ModifyTraceCodeResponse)

func (*ModifyTraceCodeResponse) FromJsonString

func (r *ModifyTraceCodeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceCodeResponse) ToJsonString

func (r *ModifyTraceCodeResponse) ToJsonString() string

type ModifyTraceCodeResponseParams added in v1.0.426

type ModifyTraceCodeResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyTraceCodeUnlinkRequest added in v1.0.568

type ModifyTraceCodeUnlinkRequest struct {
	*tchttp.BaseRequest

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 溯源码列表
	Codes []*string `json:"Codes,omitnil,omitempty" name:"Codes"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewModifyTraceCodeUnlinkRequest added in v1.0.568

func NewModifyTraceCodeUnlinkRequest() (request *ModifyTraceCodeUnlinkRequest)

func (*ModifyTraceCodeUnlinkRequest) FromJsonString added in v1.0.568

func (r *ModifyTraceCodeUnlinkRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceCodeUnlinkRequest) ToJsonString added in v1.0.568

func (r *ModifyTraceCodeUnlinkRequest) ToJsonString() string

type ModifyTraceCodeUnlinkRequestParams added in v1.0.568

type ModifyTraceCodeUnlinkRequestParams struct {
	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 溯源码列表
	Codes []*string `json:"Codes,omitnil,omitempty" name:"Codes"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type ModifyTraceCodeUnlinkResponse added in v1.0.568

type ModifyTraceCodeUnlinkResponse struct {
	*tchttp.BaseResponse
	Response *ModifyTraceCodeUnlinkResponseParams `json:"Response"`
}

func NewModifyTraceCodeUnlinkResponse added in v1.0.568

func NewModifyTraceCodeUnlinkResponse() (response *ModifyTraceCodeUnlinkResponse)

func (*ModifyTraceCodeUnlinkResponse) FromJsonString added in v1.0.568

func (r *ModifyTraceCodeUnlinkResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceCodeUnlinkResponse) ToJsonString added in v1.0.568

func (r *ModifyTraceCodeUnlinkResponse) ToJsonString() string

type ModifyTraceCodeUnlinkResponseParams added in v1.0.568

type ModifyTraceCodeUnlinkResponseParams struct {
	// 成功解绑溯源码的数量
	UnlinkCnt *uint64 `json:"UnlinkCnt,omitnil,omitempty" name:"UnlinkCnt"`

	// 当前批次的码数量
	CodeCnt *uint64 `json:"CodeCnt,omitnil,omitempty" name:"CodeCnt"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyTraceDataRanksRequest

type ModifyTraceDataRanksRequest struct {
	*tchttp.BaseRequest

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 生产任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 溯源ID
	TraceIds []*string `json:"TraceIds,omitnil,omitempty" name:"TraceIds"`
}

func NewModifyTraceDataRanksRequest

func NewModifyTraceDataRanksRequest() (request *ModifyTraceDataRanksRequest)

func (*ModifyTraceDataRanksRequest) FromJsonString

func (r *ModifyTraceDataRanksRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceDataRanksRequest) ToJsonString

func (r *ModifyTraceDataRanksRequest) ToJsonString() string

type ModifyTraceDataRanksRequestParams added in v1.0.426

type ModifyTraceDataRanksRequestParams struct {
	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 生产任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 溯源ID
	TraceIds []*string `json:"TraceIds,omitnil,omitempty" name:"TraceIds"`
}

Predefined struct for user

type ModifyTraceDataRanksResponse

type ModifyTraceDataRanksResponse struct {
	*tchttp.BaseResponse
	Response *ModifyTraceDataRanksResponseParams `json:"Response"`
}

func NewModifyTraceDataRanksResponse

func NewModifyTraceDataRanksResponse() (response *ModifyTraceDataRanksResponse)

func (*ModifyTraceDataRanksResponse) FromJsonString

func (r *ModifyTraceDataRanksResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceDataRanksResponse) ToJsonString

func (r *ModifyTraceDataRanksResponse) ToJsonString() string

type ModifyTraceDataRanksResponseParams added in v1.0.426

type ModifyTraceDataRanksResponseParams struct {
	// 批次ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyTraceDataRequest

type ModifyTraceDataRequest struct {
	*tchttp.BaseRequest

	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 生产溯源任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 溯源信息
	TraceItems []*TraceItem `json:"TraceItems,omitnil,omitempty" name:"TraceItems"`

	// 溯源阶段名称
	PhaseName *string `json:"PhaseName,omitnil,omitempty" name:"PhaseName"`

	// 环节数据
	PhaseData *PhaseData `json:"PhaseData,omitnil,omitempty" name:"PhaseData"`

	// 溯源状态 0: 无效, 1: 有效
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 排序
	Rank *uint64 `json:"Rank,omitnil,omitempty" name:"Rank"`

	// [无效] 类型
	Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`

	// [无效] 溯源码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// [无效] 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
	Phase *uint64 `json:"Phase,omitnil,omitempty" name:"Phase"`

	// [无效] 溯源时间
	TraceTime *string `json:"TraceTime,omitnil,omitempty" name:"TraceTime"`

	// [无效] 创建时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// [无效] 上链状态
	ChainStatus *uint64 `json:"ChainStatus,omitnil,omitempty" name:"ChainStatus"`

	// [无效] 上链时间
	ChainTime *string `json:"ChainTime,omitnil,omitempty" name:"ChainTime"`

	// [无效] 上链数据
	ChainData *ChainData `json:"ChainData,omitnil,omitempty" name:"ChainData"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

func NewModifyTraceDataRequest

func NewModifyTraceDataRequest() (request *ModifyTraceDataRequest)

func (*ModifyTraceDataRequest) FromJsonString

func (r *ModifyTraceDataRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceDataRequest) ToJsonString

func (r *ModifyTraceDataRequest) ToJsonString() string

type ModifyTraceDataRequestParams added in v1.0.426

type ModifyTraceDataRequestParams struct {
	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 生产溯源任务ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// 溯源信息
	TraceItems []*TraceItem `json:"TraceItems,omitnil,omitempty" name:"TraceItems"`

	// 溯源阶段名称
	PhaseName *string `json:"PhaseName,omitnil,omitempty" name:"PhaseName"`

	// 环节数据
	PhaseData *PhaseData `json:"PhaseData,omitnil,omitempty" name:"PhaseData"`

	// 溯源状态 0: 无效, 1: 有效
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 排序
	Rank *uint64 `json:"Rank,omitnil,omitempty" name:"Rank"`

	// [无效] 类型
	Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`

	// [无效] 溯源码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// [无效] 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
	Phase *uint64 `json:"Phase,omitnil,omitempty" name:"Phase"`

	// [无效] 溯源时间
	TraceTime *string `json:"TraceTime,omitnil,omitempty" name:"TraceTime"`

	// [无效] 创建时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// [无效] 上链状态
	ChainStatus *uint64 `json:"ChainStatus,omitnil,omitempty" name:"ChainStatus"`

	// [无效] 上链时间
	ChainTime *string `json:"ChainTime,omitnil,omitempty" name:"ChainTime"`

	// [无效] 上链数据
	ChainData *ChainData `json:"ChainData,omitnil,omitempty" name:"ChainData"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`
}

Predefined struct for user

type ModifyTraceDataResponse

type ModifyTraceDataResponse struct {
	*tchttp.BaseResponse
	Response *ModifyTraceDataResponseParams `json:"Response"`
}

func NewModifyTraceDataResponse

func NewModifyTraceDataResponse() (response *ModifyTraceDataResponse)

func (*ModifyTraceDataResponse) FromJsonString

func (r *ModifyTraceDataResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTraceDataResponse) ToJsonString

func (r *ModifyTraceDataResponse) ToJsonString() string

type ModifyTraceDataResponseParams added in v1.0.426

type ModifyTraceDataResponseParams struct {
	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type OutputAuthorizedTransfer added in v1.0.640

type OutputAuthorizedTransfer struct {
	// 推送状态,0表示成功。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Code *int64 `json:"Code,omitnil,omitempty" name:"Code"`

	// 错误码。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Message *string `json:"Message,omitnil,omitempty" name:"Message"`

	// 错误信息描述。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type PackSpec

type PackSpec struct {
	// 层级
	Level *uint64 `json:"Level,omitnil,omitempty" name:"Level"`

	// 比例
	Rate *uint64 `json:"Rate,omitnil,omitempty" name:"Rate"`

	// 数量
	Amount *uint64 `json:"Amount,omitnil,omitempty" name:"Amount"`

	// 码规则ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CustomId *string `json:"CustomId,omitnil,omitempty" name:"CustomId"`

	// 码段配置
	// 注意:此字段可能返回 null,表示取不到有效值。
	CodeParts []*CodePart `json:"CodeParts,omitnil,omitempty" name:"CodeParts"`

	// 包装单位
	// 注意:此字段可能返回 null,表示取不到有效值。
	Unit *string `json:"Unit,omitnil,omitempty" name:"Unit"`

	// 场景值
	// 注意:此字段可能返回 null,表示取不到有效值。
	SceneCode *int64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`
}

type PhaseData added in v1.0.488

type PhaseData struct {
	// 启用头
	// 注意:此字段可能返回 null,表示取不到有效值。
	HeadEnabled *bool `json:"HeadEnabled,omitnil,omitempty" name:"HeadEnabled"`

	// 标题
	// 注意:此字段可能返回 null,表示取不到有效值。
	HeadTitle *string `json:"HeadTitle,omitnil,omitempty" name:"HeadTitle"`

	// 标识符
	// 注意:此字段可能返回 null,表示取不到有效值。
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// 小程序AppId
	// 注意:此字段可能返回 null,表示取不到有效值。
	AppId *string `json:"AppId,omitnil,omitempty" name:"AppId"`

	// 小程序AppPath
	// 注意:此字段可能返回 null,表示取不到有效值。
	AppPath *string `json:"AppPath,omitnil,omitempty" name:"AppPath"`

	// 小程序名称AppName
	// 注意:此字段可能返回 null,表示取不到有效值。
	AppName *string `json:"AppName,omitnil,omitempty" name:"AppName"`
}

type PlanQRCode added in v1.0.775

type PlanQRCode struct {
	// 二维码
	// 注意:此字段可能返回 null,表示取不到有效值。
	Url *string `json:"Url,omitnil,omitempty" name:"Url"`

	// 状态,0:未激活 1:已激活 2:已冻结
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}

type PlanQRCodeRecord added in v1.0.824

type PlanQRCodeRecord struct {
	// 二维码
	// 注意:此字段可能返回 null,表示取不到有效值。
	Url *string `json:"Url,omitnil,omitempty" name:"Url"`

	// OpenID
	// 注意:此字段可能返回 null,表示取不到有效值。
	OpenId *string `json:"OpenId,omitnil,omitempty" name:"OpenId"`

	// 扫码时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	ScanTime *string `json:"ScanTime,omitnil,omitempty" name:"ScanTime"`

	// IP 地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`

	// 国家
	// 注意:此字段可能返回 null,表示取不到有效值。
	Country *string `json:"Country,omitnil,omitempty" name:"Country"`

	// 省份
	// 注意:此字段可能返回 null,表示取不到有效值。
	Province *string `json:"Province,omitnil,omitempty" name:"Province"`

	// 城市
	// 注意:此字段可能返回 null,表示取不到有效值。
	City *string `json:"City,omitnil,omitempty" name:"City"`
}

type Product

type Product struct {
	// 商户标识码
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 商品名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 商品id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 企业id
	CorpId *int64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商品编号
	ProductCode *string `json:"ProductCode,omitnil,omitempty" name:"ProductCode"`

	// 商品规格
	// 注意:此字段可能返回 null,表示取不到有效值。
	Specification *string `json:"Specification,omitnil,omitempty" name:"Specification"`

	// 备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 注意:此字段可能返回 null,表示取不到有效值。
	Logo []*string `json:"Logo,omitnil,omitempty" name:"Logo"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 修改时间
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// 预留字段
	// 注意:此字段可能返回 null,表示取不到有效值。
	Ext *Ext `json:"Ext,omitnil,omitempty" name:"Ext"`

	// 商户名称
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 认证状态
	// 注意:此字段可能返回 null,表示取不到有效值。
	CertState *int64 `json:"CertState,omitnil,omitempty" name:"CertState"`
}

type Quota added in v1.0.553

type Quota struct {
	// 服务开始时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 服务结束时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 配额ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	QuotaId *uint64 `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`

	// 企业ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 开通服务
	// 注意:此字段可能返回 null,表示取不到有效值。
	Services []*string `json:"Services,omitnil,omitempty" name:"Services"`

	// 商户配额
	// 注意:此字段可能返回 null,表示取不到有效值。
	FactoryQuota *int64 `json:"FactoryQuota,omitnil,omitempty" name:"FactoryQuota"`

	// 商品配额
	// 注意:此字段可能返回 null,表示取不到有效值。
	ItemQuota *int64 `json:"ItemQuota,omitnil,omitempty" name:"ItemQuota"`

	// 溯源码配额
	// 注意:此字段可能返回 null,表示取不到有效值。
	TrackQuota *int64 `json:"TrackQuota,omitnil,omitempty" name:"TrackQuota"`

	// 销售码配额
	// 注意:此字段可能返回 null,表示取不到有效值。
	SaleQuota *int64 `json:"SaleQuota,omitnil,omitempty" name:"SaleQuota"`

	// 上链配额
	// 注意:此字段可能返回 null,表示取不到有效值。
	ChainQuota *int64 `json:"ChainQuota,omitnil,omitempty" name:"ChainQuota"`

	// 风控配额
	// 注意:此字段可能返回 null,表示取不到有效值。
	RiskQuota *int64 `json:"RiskQuota,omitnil,omitempty" name:"RiskQuota"`

	// AI文字数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	AigcTextQuota *int64 `json:"AigcTextQuota,omitnil,omitempty" name:"AigcTextQuota"`

	// AI图片数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	AigcImageQuota *int64 `json:"AigcImageQuota,omitnil,omitempty" name:"AigcImageQuota"`

	// 溯源类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	TrackType *int64 `json:"TrackType,omitnil,omitempty" name:"TrackType"`

	// 开通版本 lite:轻量版, basic:基础版, standard:标准版
	// 注意:此字段可能返回 null,表示取不到有效值。
	Version *string `json:"Version,omitnil,omitempty" name:"Version"`

	// 是否开启企业认证
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductCertify *uint64 `json:"ProductCertify,omitnil,omitempty" name:"ProductCertify"`
}

type RawScanLog added in v1.0.694

type RawScanLog struct {
	// 日志ID
	LogId *int64 `json:"LogId,omitnil,omitempty" name:"LogId"`

	// 微信小程序openid
	// 注意:此字段可能返回 null,表示取不到有效值。
	Openid *string `json:"Openid,omitnil,omitempty" name:"Openid"`

	// 扫码时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 溯源码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 商品ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 批次ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 省份
	// 注意:此字段可能返回 null,表示取不到有效值。
	Province *string `json:"Province,omitnil,omitempty" name:"Province"`

	// 地市
	// 注意:此字段可能返回 null,表示取不到有效值。
	City *string `json:"City,omitnil,omitempty" name:"City"`

	// 区/县
	// 注意:此字段可能返回 null,表示取不到有效值。
	District *string `json:"District,omitnil,omitempty" name:"District"`
}

type ReportBatchCallbackStatusRequest added in v1.0.640

type ReportBatchCallbackStatusRequest struct {
	*tchttp.BaseRequest

	// 业务加密入参。
	BusinessSecurityData *InputEncryptData `json:"BusinessSecurityData,omitnil,omitempty" name:"BusinessSecurityData"`
}

func NewReportBatchCallbackStatusRequest added in v1.0.640

func NewReportBatchCallbackStatusRequest() (request *ReportBatchCallbackStatusRequest)

func (*ReportBatchCallbackStatusRequest) FromJsonString added in v1.0.640

func (r *ReportBatchCallbackStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ReportBatchCallbackStatusRequest) ToJsonString added in v1.0.640

func (r *ReportBatchCallbackStatusRequest) ToJsonString() string

type ReportBatchCallbackStatusRequestParams added in v1.0.640

type ReportBatchCallbackStatusRequestParams struct {
	// 业务加密入参。
	BusinessSecurityData *InputEncryptData `json:"BusinessSecurityData,omitnil,omitempty" name:"BusinessSecurityData"`
}

Predefined struct for user

type ReportBatchCallbackStatusResponse added in v1.0.640

type ReportBatchCallbackStatusResponse struct {
	*tchttp.BaseResponse
	Response *ReportBatchCallbackStatusResponseParams `json:"Response"`
}

func NewReportBatchCallbackStatusResponse added in v1.0.640

func NewReportBatchCallbackStatusResponse() (response *ReportBatchCallbackStatusResponse)

func (*ReportBatchCallbackStatusResponse) FromJsonString added in v1.0.640

func (r *ReportBatchCallbackStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ReportBatchCallbackStatusResponse) ToJsonString added in v1.0.640

func (r *ReportBatchCallbackStatusResponse) ToJsonString() string

type ReportBatchCallbackStatusResponseParams added in v1.0.640

type ReportBatchCallbackStatusResponseParams struct {
	// 业务出参。
	Data *OutputAuthorizedTransfer `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ScanLog added in v1.0.584

type ScanLog struct {
	// 行ID
	LogId *int64 `json:"LogId,omitnil,omitempty" name:"LogId"`

	// 微信openid
	// 注意:此字段可能返回 null,表示取不到有效值。
	Openid *string `json:"Openid,omitnil,omitempty" name:"Openid"`

	// 微信昵称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Nickname *string `json:"Nickname,omitnil,omitempty" name:"Nickname"`

	// 创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 码
	// 注意:此字段可能返回 null,表示取不到有效值。
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 企业ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpId *int64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 商品ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// ip地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`

	// 国家
	// 注意:此字段可能返回 null,表示取不到有效值。
	Country *string `json:"Country,omitnil,omitempty" name:"Country"`

	// 省份
	// 注意:此字段可能返回 null,表示取不到有效值。
	Province *string `json:"Province,omitnil,omitempty" name:"Province"`

	// 城市
	// 注意:此字段可能返回 null,表示取不到有效值。
	City *string `json:"City,omitnil,omitempty" name:"City"`

	// 县/区
	// 注意:此字段可能返回 null,表示取不到有效值。
	District *string `json:"District,omitnil,omitempty" name:"District"`

	// 微信 unionid
	// 注意:此字段可能返回 null,表示取不到有效值。
	Unionid *string `json:"Unionid,omitnil,omitempty" name:"Unionid"`

	// 首次扫码 0:否, 1:是
	// 注意:此字段可能返回 null,表示取不到有效值。
	First *int64 `json:"First,omitnil,omitempty" name:"First"`

	// 批次ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 扫码类型 0:无效扫码 1: 小程序扫码 2: 商家扫码
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 商户名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 产品名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductName *string `json:"ProductName,omitnil,omitempty" name:"ProductName"`

	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductLogo *string `json:"ProductLogo,omitnil,omitempty" name:"ProductLogo"`

	// 风险状态
	// 0: 未知, 1:通过, 2:失败/风险, 3:存疑
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 是否开启验证
	// 0:否, 1:是
	Verify *int64 `json:"Verify,omitnil,omitempty" name:"Verify"`
}

type ScanStat added in v1.0.584

type ScanStat struct {
	// 安心码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 扫码次数
	Pv *uint64 `json:"Pv,omitnil,omitempty" name:"Pv"`

	// 扫码人数
	Uv *uint64 `json:"Uv,omitnil,omitempty" name:"Uv"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// 商户名称
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 产品名称
	ProductName *string `json:"ProductName,omitnil,omitempty" name:"ProductName"`
}

type TraceCode

type TraceCode struct {
	// 二维码
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码包ID
	PackId *string `json:"PackId,omitnil,omitempty" name:"PackId"`

	// 批次ID
	BatchId *string `json:"BatchId,omitnil,omitempty" name:"BatchId"`

	// 所属商户ID
	MerchantId *string `json:"MerchantId,omitnil,omitempty" name:"MerchantId"`

	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

	// 码状态 0: 冻结 1: 激活
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 修改时间
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// 商户名称
	MerchantName *string `json:"MerchantName,omitnil,omitempty" name:"MerchantName"`

	// 产品名称
	ProductName *string `json:"ProductName,omitnil,omitempty" name:"ProductName"`

	// 渠道商ID
	AgentId *uint64 `json:"AgentId,omitnil,omitempty" name:"AgentId"`

	// 码层级 0: 最小级, 1: 一级, 2: 二级
	Level *uint64 `json:"Level,omitnil,omitempty" name:"Level"`

	// 码层级详情
	// 注意:此字段可能返回 null,表示取不到有效值。
	PackSpec []*PackSpec `json:"PackSpec,omitnil,omitempty" name:"PackSpec"`

	// 场景码
	// 注意:此字段可能返回 null,表示取不到有效值。
	SceneCode *uint64 `json:"SceneCode,omitnil,omitempty" name:"SceneCode"`

	// 流水码
	// 注意:此字段可能返回 null,表示取不到有效值。
	SerialCode *uint64 `json:"SerialCode,omitnil,omitempty" name:"SerialCode"`
}

type TraceData

type TraceData struct {
	// 溯源ID
	TraceId *string `json:"TraceId,omitnil,omitempty" name:"TraceId"`

	// 企业ID
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 码类型 0: 批次, 1: 码, 2: 生产任务
	Type *uint64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 码值,跟码类型一一对应
	// 注意:此字段可能返回 null,表示取不到有效值。
	Code *string `json:"Code,omitnil,omitempty" name:"Code"`

	// 排序,在Phase相同情况下,值越小排名靠前
	Rank *uint64 `json:"Rank,omitnil,omitempty" name:"Rank"`

	// 溯源阶段 0:商品 1:通用 2:生产溯源 3:销售溯源
	Phase *uint64 `json:"Phase,omitnil,omitempty" name:"Phase"`

	// 溯源环节名称
	PhaseName *string `json:"PhaseName,omitnil,omitempty" name:"PhaseName"`

	// 溯源时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	TraceTime *string `json:"TraceTime,omitnil,omitempty" name:"TraceTime"`

	// 创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 上链状态 0: 未上链 1: 上链中 2: 已上链 -1: 异常
	// 注意:此字段可能返回 null,表示取不到有效值。
	ChainStatus *uint64 `json:"ChainStatus,omitnil,omitempty" name:"ChainStatus"`

	// 上链时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	ChainTime *string `json:"ChainTime,omitnil,omitempty" name:"ChainTime"`

	// 上链数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	ChainData *ChainData `json:"ChainData,omitnil,omitempty" name:"ChainData"`

	// 溯源阶段配置
	// 注意:此字段可能返回 null,表示取不到有效值。
	PhaseData *PhaseData `json:"PhaseData,omitnil,omitempty" name:"PhaseData"`

	// 溯源阶段状态 0: 无效, 1: 有效
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 无
	TraceItems []*TraceItem `json:"TraceItems,omitnil,omitempty" name:"TraceItems"`
}

type TraceItem

type TraceItem struct {
	// 字段名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 字段值
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`

	// 字段类型
	// text:文本类型,
	// longtext:长文本类型, banner:单图片类型, image:多图片类型,
	// video:视频类型,
	// mp:小程序类型
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// 多个值
	Values []*string `json:"Values,omitnil,omitempty" name:"Values"`

	// 只读
	ReadOnly *bool `json:"ReadOnly,omitnil,omitempty" name:"ReadOnly"`

	// 扫码展示
	Hidden *bool `json:"Hidden,omitnil,omitempty" name:"Hidden"`

	// 类型标识
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// 扩展字段
	Ext *string `json:"Ext,omitnil,omitempty" name:"Ext"`

	// 额外属性
	Attrs []*TraceItem `json:"Attrs,omitnil,omitempty" name:"Attrs"`

	// 子页面,只读
	List []*TraceData `json:"List,omitnil,omitempty" name:"List"`
}

type UsageQuota added in v1.0.553

type UsageQuota struct {
	// 企业ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CorpId *uint64 `json:"CorpId,omitnil,omitempty" name:"CorpId"`

	// 商户配额
	// 注意:此字段可能返回 null,表示取不到有效值。
	FactoryCnt *int64 `json:"FactoryCnt,omitnil,omitempty" name:"FactoryCnt"`

	// 商品数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	ItemCnt *int64 `json:"ItemCnt,omitnil,omitempty" name:"ItemCnt"`

	// 溯源码量
	// 注意:此字段可能返回 null,表示取不到有效值。
	TrackCnt *int64 `json:"TrackCnt,omitnil,omitempty" name:"TrackCnt"`

	// 营销码额度
	// 注意:此字段可能返回 null,表示取不到有效值。
	SaleCnt *int64 `json:"SaleCnt,omitnil,omitempty" name:"SaleCnt"`

	// 区块链上链次数
	// 注意:此字段可能返回 null,表示取不到有效值。
	ChainCnt *int64 `json:"ChainCnt,omitnil,omitempty" name:"ChainCnt"`

	// 营销风控次数
	// 注意:此字段可能返回 null,表示取不到有效值。
	RiskCnt *int64 `json:"RiskCnt,omitnil,omitempty" name:"RiskCnt"`

	// 时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
}

Jump to

Keyboard shortcuts

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