v3

package
v1.23.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v3 广告升级版预览相关API models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDType

type IDType string

IDType 查询条件

const (
	// ID_TYPE_PROJECT 按广告项目ID搜索
	ID_TYPE_PROJECT IDType = "ID_TYPE_PROJECT"
	// ID_TYPE_PROMOTION 按广告计划ID搜索
	ID_TYPE_PROMOTION IDType = "ID_TYPE_PROMOTION"
)

type QrcodeGetRequest

type QrcodeGetRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// IDType 查询条件
	IDType IDType `json:"id_type,omitempty"`
	// PromotionID 广告ID
	PromotionID uint64 `json:"promotion_id,omitempty"`
	// MaterialID 素材ID,查询素材预览时使用
	MaterialID uint64 `json:"material_id,omitempty"`
}

QrcodeGetRequest 获取广告预览二维码

func (QrcodeGetRequest) Encode

func (r QrcodeGetRequest) Encode() string

Encode implement GetRequest interface

type QrcodeGetResponse

type QrcodeGetResponse struct {
	model.BaseResponse
	// Data json返回值
	Data struct {
		Data *QrcodeGetResponseData `json:"data,omitempty"`
	} `json:"data,omitempty"`
}

QrcodeGetResponse 获取广告预览二维码

type QrcodeGetResponseData

type QrcodeGetResponseData struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// IDType 查询条件
	IDType IDType `json:"id_type,omitempty"`
	// PromotionID 广告ID
	PromotionID uint64 `json:"promotion_id,omitempty"`
	// MaterialID 素材ID,查询素材预览时使用
	MaterialID uint64 `json:"material_id,omitempty"`
	// QrcodeMsgURL 广告预览的二维码信息url
	QrcodeMsgURL string `json:"qrcode_msg_url,omitempty"`
}

QrcodeGetResponseData json返回值

Jump to

Keyboard shortcuts

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