ad

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ 56x.net.
  • name : partner_ad
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : gallery
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : hyper_link.go
  • author : jarryliu
  • date : 2016-05-25 10:50
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : image_ad
  • author : jarryliu
  • date : 2016-05-25 11:29
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdManager

func NewAdManager(rep ad.IAdRepo) ad.IAdvertisementManager

func NewAdPosition

func NewAdPosition(repo ad.IAdRepo, v *ad.Position) ad.IAdPosition

Types

type GalleryAd

type GalleryAd struct {
	// contains filtered or unexported fields
}

func (GalleryAd) AddClickTimes

func (a GalleryAd) AddClickTimes(times int) error

增加展现次数

func (GalleryAd) AddShowDays

func (a GalleryAd) AddShowDays(days int) error

增加展现次数

func (GalleryAd) AddShowTimes

func (a GalleryAd) AddShowTimes(times int) error

增加展现次数

func (*GalleryAd) DeleteItem

func (g *GalleryAd) DeleteItem(id int64) error

删除图片项

func (*GalleryAd) Dto

func (g *GalleryAd) Dto() *ad.AdDto

转换为数据传输对象

func (*GalleryAd) GetAdValue

func (g *GalleryAd) GetAdValue() ad.SwiperAd

获取广告数据

func (GalleryAd) GetDomainId

func (a GalleryAd) GetDomainId() int64

获取领域对象编号

func (*GalleryAd) GetEnabledAdValue

func (g *GalleryAd) GetEnabledAdValue() ad.SwiperAd

获取可用的广告数据

func (*GalleryAd) GetImage

func (g *GalleryAd) GetImage(id int64) *ad.Image

获取图片项

func (GalleryAd) GetValue

func (a GalleryAd) GetValue() *ad.Ad

获取值

func (GalleryAd) Name

func (a GalleryAd) Name() string

广告名称

func (GalleryAd) Save

func (a GalleryAd) Save() (int64, error)

保存广告

func (*GalleryAd) SaveImage

func (g *GalleryAd) SaveImage(v *ad.Image) (int64, error)

保存广告图片

func (GalleryAd) SetValue

func (a GalleryAd) SetValue(v *ad.Ad) error

设置值

func (GalleryAd) System

func (a GalleryAd) System() bool

是否为系统内置的广告

func (GalleryAd) Type

func (a GalleryAd) Type() int

广告类型

type HyperLinkAdImpl

type HyperLinkAdImpl struct {
	// contains filtered or unexported fields
}

func (HyperLinkAdImpl) AddClickTimes

func (a HyperLinkAdImpl) AddClickTimes(times int) error

增加展现次数

func (HyperLinkAdImpl) AddShowDays

func (a HyperLinkAdImpl) AddShowDays(days int) error

增加展现次数

func (HyperLinkAdImpl) AddShowTimes

func (a HyperLinkAdImpl) AddShowTimes(times int) error

增加展现次数

func (*HyperLinkAdImpl) Dto

func (h *HyperLinkAdImpl) Dto() *ad.AdDto

转换为数据传输对象

func (HyperLinkAdImpl) GetDomainId

func (a HyperLinkAdImpl) GetDomainId() int64

获取领域对象编号

func (HyperLinkAdImpl) GetValue

func (a HyperLinkAdImpl) GetValue() *ad.Ad

获取值

func (HyperLinkAdImpl) Name

func (a HyperLinkAdImpl) Name() string

广告名称

func (*HyperLinkAdImpl) Save

func (h *HyperLinkAdImpl) Save() (int64, error)

保存广告

func (*HyperLinkAdImpl) SetData

func (h *HyperLinkAdImpl) SetData(d *ad.HyperLink) error

func (HyperLinkAdImpl) SetValue

func (a HyperLinkAdImpl) SetValue(v *ad.Ad) error

设置值

func (HyperLinkAdImpl) System

func (a HyperLinkAdImpl) System() bool

是否为系统内置的广告

func (HyperLinkAdImpl) Type

func (a HyperLinkAdImpl) Type() int

广告类型

type ImageAdImpl

type ImageAdImpl struct {
	// contains filtered or unexported fields
}

func (ImageAdImpl) AddClickTimes

func (a ImageAdImpl) AddClickTimes(times int) error

增加展现次数

func (ImageAdImpl) AddShowDays

func (a ImageAdImpl) AddShowDays(days int) error

增加展现次数

func (ImageAdImpl) AddShowTimes

func (a ImageAdImpl) AddShowTimes(times int) error

增加展现次数

func (*ImageAdImpl) Dto

func (i *ImageAdImpl) Dto() *ad.AdDto

转换为数据传输对象

func (ImageAdImpl) GetDomainId

func (a ImageAdImpl) GetDomainId() int64

获取领域对象编号

func (ImageAdImpl) GetValue

func (a ImageAdImpl) GetValue() *ad.Ad

获取值

func (ImageAdImpl) Name

func (a ImageAdImpl) Name() string

广告名称

func (*ImageAdImpl) Save

func (i *ImageAdImpl) Save() (int64, error)

保存广告

func (*ImageAdImpl) SetData

func (i *ImageAdImpl) SetData(d *ad.Image) error

func (ImageAdImpl) SetValue

func (a ImageAdImpl) SetValue(v *ad.Ad) error

设置值

func (ImageAdImpl) System

func (a ImageAdImpl) System() bool

是否为系统内置的广告

func (ImageAdImpl) Type

func (a ImageAdImpl) Type() int

广告类型

Jump to

Keyboard shortcuts

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