ad

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2016 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : advertisement
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

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

*

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPartnerAdvertisement

func NewPartnerAdvertisement(partnerId int, rep ad.IAdvertisementRep) ad.IPartnerAdvertisement

Types

type Advertisement struct {
	Rep   ad.IAdvertisementRep
	Value *ad.ValueAdvertisement
}

func (*Advertisement) GetDomainId

func (this *Advertisement) GetDomainId() int

获取领域对象编号

func (*Advertisement) GetValue

func (this *Advertisement) GetValue() *ad.ValueAdvertisement

获取值

func (*Advertisement) Name

func (this *Advertisement) Name() string

广告名称

func (*Advertisement) Save

func (this *Advertisement) Save() (int, error)

保存广告

func (*Advertisement) SetValue

func (this *Advertisement) SetValue(v *ad.ValueAdvertisement) error

设置值

func (*Advertisement) System

func (this *Advertisement) System() bool

是否为系统内置的广告

func (*Advertisement) Type

func (this *Advertisement) Type() int

广告类型

type GalleryAd

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

func (*GalleryAd) DelImage

func (this *GalleryAd) DelImage(id int) error

删除图片项

func (*GalleryAd) GetAdValue

func (this *GalleryAd) GetAdValue() ad.ValueGallery

获取广告数据

func (*GalleryAd) GetEnabledAdValue

func (this *GalleryAd) GetEnabledAdValue() ad.ValueGallery

获取可用的广告数据

func (*GalleryAd) GetImage

func (this *GalleryAd) GetImage(id int) *ad.ValueImage

获取图片项

func (*GalleryAd) SaveImage

func (this *GalleryAd) SaveImage(v *ad.ValueImage) (int, error)

保存广告图片

type PartnerAdvertisement

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

func (*PartnerAdvertisement) CreateAdvertisement

func (this *PartnerAdvertisement) CreateAdvertisement(v *ad.ValueAdvertisement) ad.IAdvertisement

创建广告对象

func (*PartnerAdvertisement) DeleteAdvertisement

func (this *PartnerAdvertisement) DeleteAdvertisement(advertisementId int) error

删除广告

func (*PartnerAdvertisement) GetAggregateRootId

func (this *PartnerAdvertisement) GetAggregateRootId() int

获取聚合根标识

func (*PartnerAdvertisement) GetById

func (this *PartnerAdvertisement) GetById(id int) ad.IAdvertisement

根据编号获取广告

func (*PartnerAdvertisement) GetByName

func (this *PartnerAdvertisement) GetByName(name string) ad.IAdvertisement

根据名称获取广告

func (*PartnerAdvertisement) InitInternalAdvertisements

func (this *PartnerAdvertisement) InitInternalAdvertisements()

初始化默认的广告位

Jump to

Keyboard shortcuts

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