repository

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: 38 Imported by: 0

Documentation

Overview

*

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

*

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

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2015-02-16 10:28
  • description :
  • history :

*

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

*

  • Copyright 2015 @ z3q.net.
  • name : mss_rep
  • author : jarryliu
  • date : 2015-07-27 09:03
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : personfinance_rep
  • author : jarryliu
  • date : 2016-04-01 09:30
  • description :
  • history :

*

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

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2015-02-15 10:22
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdvertisementRep

func NewAdvertisementRep(c db.Connector) ad.IAdvertisementRep

广告仓储

func NewContentRep

func NewContentRep(c db.Connector) content.IContentRep

内容仓储

func NewDeliverRep

func NewDeliverRep(c db.Connector) delivery.IDeliveryRep

func NewGoodsRep

func NewGoodsRep(c db.Connector) sale.IGoodsRep

商品仓储

func NewMssRep

func NewMssRep(conn db.Connector) mss.IMssRep

func NewPartnerRep

func NewPartnerRep(c db.Connector, userRep user.IUserRep, memberRep member.IMemberRep,
	mssRep mss.IMssRep) partner.IPartnerRep

func NewPromotionRep

func NewPromotionRep(c db.Connector, goodsRep sale.IGoodsRep,
	memberRep member.IMemberRep) promotion.IPromotionRep

func NewSaleRep

func NewSaleRep(c db.Connector, saleTagRep sale.ISaleTagRep, goodsRep sale.IGoodsRep, promRep promotion.IPromotionRep) sale.ISaleRep

func NewShoppingRep

func NewShoppingRep(c db.Connector, ptRep partner.IPartnerRep,
	saleRep sale.ISaleRep, goodsRep sale.IGoodsRep, promRep promotion.IPromotionRep,
	memRep member.IMemberRep, deliverRep delivery.IDeliveryRep) shopping.IShoppingRep

func NewTagSaleRep

func NewTagSaleRep(c db.Connector) sale.ISaleTagRep

func NewUserRep

func NewUserRep(c db.Connector) user.IUserRep

Types

type MemberRep

type MemberRep struct {
	db.Connector
	// contains filtered or unexported fields
}

func NewMemberRep

func NewMemberRep(c db.Connector) *MemberRep

func (*MemberRep) CheckPhoneBind

func (this *MemberRep) CheckPhoneBind(phone string, memberId int) bool

手机号码是否使用

func (*MemberRep) CheckUsrExist

func (this *MemberRep) CheckUsrExist(usr string, memberId int) bool

用户名是否存在

func (*MemberRep) CreateMember

func (this *MemberRep) CreateMember(v *member.ValueMember) member.IMember

创建会员

func (*MemberRep) DeleteDeliver

func (this *MemberRep) DeleteDeliver(memberId, deliverId int) error

删除配送地址

func (*MemberRep) DeleteMemberLevel

func (this *MemberRep) DeleteMemberLevel(partnerId, id int) error

删除会员等级

func (*MemberRep) GetAccount

func (this *MemberRep) GetAccount(memberId int) *member.AccountValue

获取账户

func (*MemberRep) GetBalanceInfo

func (this *MemberRep) GetBalanceInfo(id int) *member.BalanceInfoValue

根据编号获取余额变动信息

func (*MemberRep) GetBalanceInfoByNo

func (this *MemberRep) GetBalanceInfoByNo(tradeNo string) *member.BalanceInfoValue

根据号码获取余额变动信息

func (*MemberRep) GetBankInfo

func (this *MemberRep) GetBankInfo(memberId int) *member.BankInfo

获取银行信息

func (*MemberRep) GetDeliverAddress

func (this *MemberRep) GetDeliverAddress(memberId int) []*member.DeliverAddress

获取全部配送地址

func (*MemberRep) GetInvitationMeMember

func (this *MemberRep) GetInvitationMeMember(memberId int) *member.ValueMember

获取推荐我的人

func (*MemberRep) GetLevel

func (this *MemberRep) GetLevel(partnerId, levelValue int) *valueobject.MemberLevel

func (*MemberRep) GetLevelValueByExp

func (this *MemberRep) GetLevelValueByExp(partnerId int, exp int) int

获取积分对应的等级

func (*MemberRep) GetMember

func (this *MemberRep) GetMember(memberId int) member.IMember

获取会员

func (*MemberRep) GetMemberIdByInvitationCode

func (this *MemberRep) GetMemberIdByInvitationCode(code string) int

根据邀请码获取会员编号

func (*MemberRep) GetMemberIdByUser

func (this *MemberRep) GetMemberIdByUser(user string) int

func (*MemberRep) GetMemberLatestUpdateTime

func (this *MemberRep) GetMemberLatestUpdateTime(id int) int64

获取会员最后更新时间

func (*MemberRep) GetMemberLevels

func (this *MemberRep) GetMemberLevels(partnerId int) []*valueobject.MemberLevel

获取会员等级

func (*MemberRep) GetMemberValueByPhone

func (this *MemberRep) GetMemberValueByPhone(phone string) *member.ValueMember

根据手机号码获取会员

func (*MemberRep) GetMemberValueByUsr

func (this *MemberRep) GetMemberValueByUsr(usr string) *member.ValueMember

根据用户名获取会员

func (*MemberRep) GetMyInvitationMembers

func (this *MemberRep) GetMyInvitationMembers(memberId int) []*member.ValueMember

邀请

func (*MemberRep) GetNextLevel

func (this *MemberRep) GetNextLevel(partnerId, levelVal int) *valueobject.MemberLevel

获取下一个等级

func (*MemberRep) GetRelation

func (this *MemberRep) GetRelation(memberId int) *member.MemberRelation

获取会员关联

func (*MemberRep) GetSingleDeliverAddress

func (this *MemberRep) GetSingleDeliverAddress(memberId, deliverId int) *member.DeliverAddress

获取配送地址

func (*MemberRep) GetSubInvitationNum

func (this *MemberRep) GetSubInvitationNum(memberIds string) map[int]int

获取下级会员数量

func (*MemberRep) LockMember

func (this *MemberRep) LockMember(id int, state int) error

锁定会员

func (*MemberRep) SaveAccount

func (this *MemberRep) SaveAccount(v *member.AccountValue) (int, error)

保存账户,传入会员编号

func (*MemberRep) SaveBalanceInfo

func (this *MemberRep) SaveBalanceInfo(v *member.BalanceInfoValue) (int, error)

保存余额变动信息

func (*MemberRep) SaveBankInfo

func (this *MemberRep) SaveBankInfo(v *member.BankInfo) error

保存银行信息

func (*MemberRep) SaveDeliver

func (this *MemberRep) SaveDeliver(v *member.DeliverAddress) (int, error)

保存地址

func (*MemberRep) SaveGrowAccount

func (this *MemberRep) SaveGrowAccount(memberId int, balance, totalAmount,
	growEarnings, totalGrowEarnings float32, updateTime int64) error

保存理财账户信息

func (*MemberRep) SaveIntegralLog

func (this *MemberRep) SaveIntegralLog(l *member.IntegralLog) error

保存积分记录

func (*MemberRep) SaveMember

func (this *MemberRep) SaveMember(v *member.ValueMember) (int, error)

保存会员

func (*MemberRep) SaveMemberLevel

func (this *MemberRep) SaveMemberLevel(partnerId int, v *valueobject.MemberLevel) (int, error)

保存等级

func (*MemberRep) SaveRelation

func (this *MemberRep) SaveRelation(v *member.MemberRelation) error

保存绑定

func (*MemberRep) SetPartnerRep

func (this *MemberRep) SetPartnerRep(partnerRep partner.IPartnerRep)

type MssRep

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

func (*MssRep) DeleteMailTemplate

func (this *MssRep) DeleteMailTemplate(partnerId, id int) error

删除邮件模板

func (*MssRep) GetMailTemplate

func (this *MssRep) GetMailTemplate(partnerId, id int) *mss.MailTemplate

获取邮箱模板

func (*MssRep) GetMailTemplates

func (this *MssRep) GetMailTemplates(partnerId int) []*mss.MailTemplate

获取所有的邮箱模版

func (*MssRep) JoinMailTaskToQueen

func (this *MssRep) JoinMailTaskToQueen(v *mss.MailTask) error

加入到发送对列

func (*MssRep) SaveMailTemplate

func (this *MssRep) SaveMailTemplate(v *mss.MailTemplate) (int, error)

保存邮箱模版

Jump to

Keyboard shortcuts

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