enum

package
v1.3.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GT     Operator = "GT"
	GTE             = "GTE"
	LT              = "LT"
	LTE             = "LTE"
	EQ              = "EQ"
	NOT_EQ          = "NOT_EQ"
	IN              = "IN"
	NOT_IN          = "NOT_IN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AType added in v1.2.8

type AType string

Atype 表明用户的转化数据

const (
	// AType_ACTIVATE 激活
	AType_ACTIVATE AType = "activate"
	// ATYPE_REGISTER 注册
	AType_REGISTER AType = "register"
	// ATYPE_ORDERS 付费(成单)
	AType_ORDERS AType = "orders"
	// ATYPE_RETAIN_1DAY 次日留存
	AType_RETAIN_1DAY AType = "retain_1day"
	// AType_USER_DEFINED 客户自定义
	AType_USER_DEFINED AType = "user_defined"
	// AType_ECBuy 商品下单成功
	AType_ECBuy AType = "ec_buy"
	// AType_DEEP_PAGE_ACCESS 深度页面访问
	AType_DEEP_PAGE_ACCESS AType = "deep_page_access"
	// ATYPE_CREDT_GRANTING 授信
	AType_CREDT_GRANTING AType = "credit_granting"
	// AType_DEEPLINK 应用调起
	AType_DEEPLINK AType = "deep_link"
	// AType_FEED_DEEPLINK 应用调起
	AType_FEED_DEEPLINK AType = "feed_deeplink"
	// AType_PAY_TO_READ 付费阅读
	AType_PAY_TO_READ AType = "pay_to_read"
	// AType_ENTER_BOOKSTORE_READ 进入书城阅读
	AType_ENTER_BOOKSTORE_READ AType = "enter_bookstore_read"
	// AType_ADD_TO_DESKTOP 添加到桌面
	AType_ADD_TO_DESKTOP AType = "add_to_desktop"
	// AType_LOGIN  登录
	AType_LOGIN AType = "log_in"
	// AType_ORDER_SUBMIT_SUCCESS 订单提交成功
	AType_ORDER_SUBMIT_SUCCESS AType = "order_submit_success"
	// AType_PAY_TO_WATCH 付费观剧
	AType_PAY_TO_WATCH AType = "pay_to_watch"
	// AType_KEY_ACTION 关键行为
	AType_KEY_ACTION AType = "key_action"
	// AType_DERIVED_EVENT 衍生事件
	AType_DERIVED_EVENT AType = "derived_event"
)

type ActType added in v1.2.8

type ActType int

ActType 请求类型

const (
	// ActType_CLICK 点击请求
	ActType_CLICK ActType = 2
	// ActType_IMPRESSION 曝光请求
	ActType_IMPRESSION ActType = 3
)

type AudienceStatus added in v1.3.4

type AudienceStatus Enum[int]

AudienceStatusEnum 类型

func (*AudienceStatus) UnmarshalJSON added in v1.3.4

func (e *AudienceStatus) UnmarshalJSON(b []byte) error

func (AudienceStatus) Values added in v1.3.4

func (e AudienceStatus) Values() []AudienceStatus

type BsType added in v1.3.4

type BsType Enum[int]

BsType 该字段仅支持用于Filter中筛选数据使用。

func (*BsType) UnmarshalJSON added in v1.3.4

func (e *BsType) UnmarshalJSON(b []byte) error

func (BsType) Values added in v1.3.4

func (e BsType) Values() []BsType

type DeepConvertType added in v1.3.4

type DeepConvertType Enum[int]

DeepConvertType 深度转化

func (*DeepConvertType) UnmarshalJSON added in v1.3.4

func (e *DeepConvertType) UnmarshalJSON(b []byte) error

func (DeepConvertType) Values added in v1.3.4

func (e DeepConvertType) Values() []DeepConvertType

type Device added in v1.3.4

type Device Enum[int]

Device 推广设备

func (*Device) UnmarshalJSON added in v1.3.4

func (e *Device) UnmarshalJSON(b []byte) error

UnmarshalJSON implement json Unmarshal interface

func (Device) Values added in v1.3.4

func (e Device) Values() []Device

type Enum added in v1.3.4

type Enum[T int | int64] struct {
	// contains filtered or unexported fields
}

func EnumFromKey added in v1.3.4

func EnumFromKey[T int | int64](key T) Enum[T]

func UnmarshalJSON added in v1.3.4

func UnmarshalJSON[T int | int64](b []byte) (Enum[T], error)

UnmarshalJSON implement json Unmarshal interface

func (Enum[T]) Key added in v1.3.4

func (e Enum[T]) Key() T

func (*Enum[T]) SetKey added in v1.3.4

func (e *Enum[T]) SetKey(key T)

func (*Enum[T]) SetValue added in v1.3.4

func (e *Enum[T]) SetValue(value string)

func (Enum[T]) String added in v1.3.4

func (e Enum[T]) String() string

func (Enum[T]) Value added in v1.3.4

func (e Enum[T]) Value() string

func (Enum[T]) Values added in v1.3.4

func (e Enum[T]) Values() []Enum[T]

type FeedFlowType added in v1.3.4

type FeedFlowType Enum[int]

FeedFlowType

func (*FeedFlowType) UnmarshalJSON added in v1.3.4

func (e *FeedFlowType) UnmarshalJSON(b []byte) error

func (FeedFlowType) Values added in v1.3.4

func (e FeedFlowType) Values() []FeedFlowType

type FeedMaterialStyle added in v1.3.4

type FeedMaterialStyle Enum[int]

FeedMaterialStyle 该字段仅支持用于Filter中筛选数据使用。

func (*FeedMaterialStyle) UnmarshalJSON added in v1.3.4

func (e *FeedMaterialStyle) UnmarshalJSON(b []byte) error

func (FeedMaterialStyle) Values added in v1.3.4

func (e FeedMaterialStyle) Values() []FeedMaterialStyle

type FeedSubject added in v1.3.4

type FeedSubject Enum[int]

FeedSubjectEnum 该字段仅支持用于Filter中筛选数据使用。

func (*FeedSubject) UnmarshalJSON added in v1.3.4

func (e *FeedSubject) UnmarshalJSON(b []byte) error

func (FeedSubject) Values added in v1.3.4

func (e FeedSubject) Values() []FeedSubject

type IEnum added in v1.3.4

type IEnum[T int | int64] interface {
	Values() []Enum[T]
	Key() T
	Value() string
}

type MarketingTarget added in v1.3.4

type MarketingTarget Enum[int]

MarketingTarget 营销目标

func (*MarketingTarget) UnmarshalJSON added in v1.3.4

func (e *MarketingTarget) UnmarshalJSON(b []byte) error

UnmarshalJSON implement json Unmarshal interface

func (MarketingTarget) Values added in v1.3.4

func (e MarketingTarget) Values() []MarketingTarget

type MixWmatch added in v1.3.4

type MixWmatch Enum[int]

MixWmatchEnum 匹配模式

func (*MixWmatch) UnmarshalJSON added in v1.3.4

func (e *MixWmatch) UnmarshalJSON(b []byte) error

UnmarshalJSON implement json Unmarshal interface

func (MixWmatch) Values added in v1.3.4

func (e MixWmatch) Values() []MixWmatch

type OcpcTransType added in v1.3.4

type OcpcTransType Enum[int]

OcpcTransType 目标转化

func (*OcpcTransType) UnmarshalJSON added in v1.3.4

func (e *OcpcTransType) UnmarshalJSON(b []byte) error

func (OcpcTransType) Values added in v1.3.4

func (e OcpcTransType) Values() []OcpcTransType

type Operator

type Operator string

Operator 支持:GT GTE LT LTE EQ NOT_EQ IN NOT_IN

type PicScale added in v1.3.4

type PicScale Enum[int]

PicScale 图片比例

func (*PicScale) UnmarshalJSON added in v1.3.4

func (e *PicScale) UnmarshalJSON(b []byte) error

func (PicScale) Values added in v1.3.4

func (e PicScale) Values() []PicScale

type ProductSegment added in v1.3.4

type ProductSegment Enum[int]

ProductSegment 组件类型

func (*ProductSegment) UnmarshalJSON added in v1.3.4

func (e *ProductSegment) UnmarshalJSON(b []byte) error

func (ProductSegment) Values added in v1.3.4

func (e ProductSegment) Values() []ProductSegment

type QueryStatus added in v1.3.4

type QueryStatus Enum[int]

QueryStatus 账户添加状态

func (*QueryStatus) UnmarshalJSON added in v1.3.4

func (e *QueryStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON implement json Unmarshal interface

func (QueryStatus) Values added in v1.3.4

func (e QueryStatus) Values() []QueryStatus

type ReportType

type ReportType int

ReportType 报告类型

const (
	// ReportTypeFeedOverall 信息流整体账户报告
	ReportTypeFeedOverall ReportType = 2172649
	// ReportTypeFeedAccount 信息流账户推广报告
	ReportTypeFeedAccount ReportType = 2149145
	// ReportTypeFeedCampaign 信息流计划推广报告
	ReportTypeFeedCampaign ReportType = 2276038
	// ReportTypeFeedAdgroup 信息流单元推广报告
	ReportTypeFeedAdgroup ReportType = 2330652
	// ReportTypeFeedProduct 信息流商品报告
	ReportTypeFeedProduct ReportType = 2094829
	// ReportTypeFeedCreative 信息流创意报告
	ReportTypeFeedCreative ReportType = 2094816
	// ReportTypeFeedVideo 信息流视频报告
	ReportTypeFeedVideo ReportType = 114718
	// ReportTypeFeedImage 信息流图片报告
	ReportTypeFeedImage ReportType = 2094817
	// ReportTypeFeedLandingPage 信息流落地页报告
	ReportTypeFeedLandingPage ReportType = 6098145
	// ReportTypeFeedVisitor 信息流访客报告
	ReportTypeFeedVisitor ReportType = 6759418
	// ReportTypeSearchOverall 搜索整体账户报告
	ReportTypeSearchOverall ReportType = 170026
	// ReportTypeSearchAccount 搜索账户推广报告
	ReportTypeSearchAccount ReportType = 2208157
	// ReportTypeSearchCampaign 搜索计划推广报告
	ReportTypeSearchCampaign ReportType = 2290316
	// ReportTypeSearchAdgroup 搜索单元推广报告
	ReportTypeSearchAdgroup ReportType = 2284618
	// ReportTypeSearchCreative 搜索创意报告
	ReportTypeSearchCreative ReportType = 2665235
	// ReportTypeSearchKeyword 搜索关键词报告
	ReportTypeSearchKeyword ReportType = 2602783
	// ReportTypeSearchQueryWord 搜索查询词报告
	ReportTypeSearchQueryWord ReportType = 2307838
	// ReportTypeSearchProduct 搜索商品报告
	ReportTypeSearchProduct ReportType = 248654
	// ReportTypeSearchAudience 搜索人群报告
	ReportTypeSearchAudience ReportType = 9718404
	// ReportTypeSearchLandingPage  搜索落地页报告
	ReportTypeSearchLandingPage ReportType = 5381679
	// ReportTypeSearchVisitor  搜索访客报告
	ReportTypeSearchVisitor ReportType = 4017932
)

type ScoreLevel added in v1.3.4

type ScoreLevel Enum[int]

ScoreLevel 落地页体验

func (*ScoreLevel) UnmarshalJSON added in v1.3.4

func (e *ScoreLevel) UnmarshalJSON(b []byte) error

UnmarshalJSON implement json Unmarshal interface

func (ScoreLevel) Values added in v1.3.4

func (e ScoreLevel) Values() []ScoreLevel

type SegmentType added in v1.3.4

type SegmentType Enum[int]

SegmentType 比例

func (*SegmentType) UnmarshalJSON added in v1.3.4

func (e *SegmentType) UnmarshalJSON(b []byte) error

func (SegmentType) Values added in v1.3.4

func (e SegmentType) Values() []SegmentType

type SortRule

type SortRule string

SortRule 排序

const (
	ASC  SortRule = "ASC"
	DESC SortRule = "DESC"
)

type TargetingType added in v1.3.4

type TargetingType Enum[int]

TargetingType 购买方式

func (*TargetingType) UnmarshalJSON added in v1.3.4

func (e *TargetingType) UnmarshalJSON(b []byte) error

UnmarshalJSON implement json Unmarshal interface

func (TargetingType) Values added in v1.3.4

func (e TargetingType) Values() []TargetingType

type TimeUnit

type TimeUnit string

TimeUnit 时间单位

const (
	TimeUnitHOUR    TimeUnit = "HOUR"
	TimeUnitDAY     TimeUnit = "DAY"
	TimeUnitWEEK    TimeUnit = "WEEK"
	TimeUnitMONTH   TimeUnit = "MONTH"
	TimeUnitSUMMARY TimeUnit = "SUMMARY"
)

type WMatchId added in v1.3.4

type WMatchId Enum[int]

WMatchId 触发模式

func (*WMatchId) UnmarshalJSON added in v1.3.4

func (e *WMatchId) UnmarshalJSON(b []byte) error

func (WMatchId) Values added in v1.3.4

func (e WMatchId) Values() []WMatchId

type WinfoIdType added in v1.3.4

type WinfoIdType Enum[int]

WinfoIdTypeEnum 定向类型

func (*WinfoIdType) UnmarshalJSON added in v1.3.4

func (e *WinfoIdType) UnmarshalJSON(b []byte) error

UnmarshalJSON implement json Unmarshal interface

func (WinfoIdType) Values added in v1.3.4

func (e WinfoIdType) Values() []WinfoIdType

Jump to

Keyboard shortcuts

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