creativeword

package
v1.19.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package creativeword 动态创意词包管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// Name 创意词包名称
	Name string `json:"name,omitempty"`
	// DefaultWord 默认词
	DefaultWord string `json:"default_word,omitempty"`
	// Words 替换词
	Words []string `json:"words,omitempty"`
}

CreateRequest 创建动态创意词包 API Request

func (CreateRequest) Encode

func (r CreateRequest) Encode() []byte

Encode implement PostRequest interface

type CreateResponse

type CreateResponse struct {
	model.BaseResponse
	// Data json返回值
	Data struct {
		// CreativeWordID 创意词包ID
		CreativeWordID uint64 `json:"creative_word_id,omitempty"`
	} `json:"data,omitempty"`
}

CreateResponse 创建动态创意词包 API Response

type CreativeWord

type CreativeWord struct {
	// ID 创意词包ID
	ID uint64 `json:"creative_word_id,omitempty"`
	// Name 创意词包名称
	Name string `json:"name,omitempty"`
	// DefaultWord 默认词
	DefaultWord string `json:"default_word,omitempty"`
	// Words 替换词
	Words []string `json:"words,omitempty"`
	// ContentType 创意词包类型
	ContentType enum.CreativeWordType `json:"content_type,omitempty"`
	// MaxWordLen 替换词最大长度
	MaxWordLen int `json:"max_word_len,omitempty"`
	// MinWordLen 替换词最小长度
	MinWordLen int `json:"min_word_len,omitempty"`
	// Status 创意词包状态
	Status enum.CreativeWordStatus `json:"status,omitempty"`
	// UserRate 创意词包人群覆盖率;取值范围: 0-1
	UserRate float64 `json:"user_rate,omitempty"`
}

CreativeWord 创意词包

type DeleteRequest

type DeleteRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CreativeWordID 创意词包id
	CreativeWordID uint64 `json:"creative_word_id,omitempty"`
}

DeleteRequest 删除动态创意词包 API Request

func (DeleteRequest) Encode

func (r DeleteRequest) Encode() []byte

Encode implement PostRequest interface

type DeleteResponse

type DeleteResponse struct {
	model.BaseResponse
	// Data json返回值
	Data struct {
		// CreativeWordID 创意词包ID
		CreativeWordID uint64 `json:"creative_word_id,omitempty"`
	} `json:"data,omitempty"`
}

DeleteResponse 删除动态创意词包 API Response

type SelectRequest

type SelectRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CreativeWordIDs 创意词包id列表,如不填默认返回所有创意词包
	CreativeWordIDs []uint64 `json:"creative_word_ids,omitempty"`
}

SelectRequest 查询动态创意词包 API Request

func (SelectRequest) Encode

func (r SelectRequest) Encode() string

Encode implement GetRequest interface

type SelectResponse

type SelectResponse struct {
	model.BaseResponse
	Data struct {
		// List 创意词包列表
		List []CreativeWord `json:"creative_word,omitempty"`
	} `json:"data,omitempty"`
}

SelectResponse 查询动态创意词包 API Response

type UpdateRequest

type UpdateRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CreativeWordID 创意词包id
	CreativeWordID uint64 `json:"creative_word_id,omitempty"`
	// Name 创意词包名称
	Name string `json:"name,omitempty"`
	// DefaultWord 默认词
	DefaultWord string `json:"default_word,omitempty"`
	// Words 替换词
	Words []string `json:"words,omitempty"`
}

UpdateRequest 更新动态创意词包 API Request

func (UpdateRequest) Encode

func (r UpdateRequest) Encode() []byte

Encode implement PostRequest interface

type UpdateResponse

type UpdateResponse struct {
	model.BaseResponse
	// Data json返回值
	Data struct {
		// CreativeWordID 创意词包ID
		CreativeWordID uint64 `json:"creative_word_id,omitempty"`
	} `json:"data,omitempty"`
}

UpdateResponse 更新动态创意词包 API Response

Jump to

Keyboard shortcuts

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