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 ¶
- func NewPartnerAdvertisement(partnerId int, rep ad.IAdvertisementRep) ad.IPartnerAdvertisement
- type Advertisement
- func (this *Advertisement) GetDomainId() int
- func (this *Advertisement) GetValue() *ad.ValueAdvertisement
- func (this *Advertisement) Name() string
- func (this *Advertisement) Save() (int, error)
- func (this *Advertisement) SetValue(v *ad.ValueAdvertisement) error
- func (this *Advertisement) System() bool
- func (this *Advertisement) Type() int
- type GalleryAd
- type PartnerAdvertisement
- func (this *PartnerAdvertisement) CreateAdvertisement(v *ad.ValueAdvertisement) ad.IAdvertisement
- func (this *PartnerAdvertisement) DeleteAdvertisement(advertisementId int) error
- func (this *PartnerAdvertisement) GetAggregateRootId() int
- func (this *PartnerAdvertisement) GetById(id int) ad.IAdvertisement
- func (this *PartnerAdvertisement) GetByName(name string) ad.IAdvertisement
- func (this *PartnerAdvertisement) InitInternalAdvertisements()
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 ¶
type Advertisement struct { Rep ad.IAdvertisementRep Value *ad.ValueAdvertisement }
func (*Advertisement) SetValue ¶
func (this *Advertisement) SetValue(v *ad.ValueAdvertisement) error
设置值
type GalleryAd ¶
type GalleryAd struct { *Advertisement // contains filtered or unexported fields }
func (*GalleryAd) GetEnabledAdValue ¶
func (this *GalleryAd) GetEnabledAdValue() ad.ValueGallery
获取可用的广告数据
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()
初始化默认的广告位
Click to show internal directories.
Click to hide internal directories.