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 ¶
- func NewAdvertisementRep(c db.Connector) ad.IAdvertisementRep
- func NewContentRep(c db.Connector) content.IContentRep
- func NewDeliverRep(c db.Connector) delivery.IDeliveryRep
- func NewGoodsRep(c db.Connector) sale.IGoodsRep
- func NewMssRep(conn db.Connector) mss.IMssRep
- func NewPartnerRep(c db.Connector, userRep user.IUserRep, memberRep member.IMemberRep, ...) partner.IPartnerRep
- func NewPersonFinanceRepository(conn db.Connector, mRep member.IMemberRep) personfinance.IPersonFinanceRepository
- func NewPromotionRep(c db.Connector, goodsRep sale.IGoodsRep, memberRep member.IMemberRep) promotion.IPromotionRep
- func NewSaleRep(c db.Connector, saleTagRep sale.ISaleTagRep, goodsRep sale.IGoodsRep, ...) sale.ISaleRep
- func NewShoppingRep(c db.Connector, ptRep partner.IPartnerRep, saleRep sale.ISaleRep, ...) shopping.IShoppingRep
- func NewTagSaleRep(c db.Connector) sale.ISaleTagRep
- func NewUserRep(c db.Connector) user.IUserRep
- type MemberRep
- func (this *MemberRep) CheckPhoneBind(phone string, memberId int) bool
- func (this *MemberRep) CheckUsrExist(usr string, memberId int) bool
- func (this *MemberRep) CreateMember(v *member.ValueMember) member.IMember
- func (this *MemberRep) DeleteDeliver(memberId, deliverId int) error
- func (this *MemberRep) DeleteMemberLevel(partnerId, id int) error
- func (this *MemberRep) GetAccount(memberId int) *member.AccountValue
- func (this *MemberRep) GetBalanceInfo(id int) *member.BalanceInfoValue
- func (this *MemberRep) GetBalanceInfoByNo(tradeNo string) *member.BalanceInfoValue
- func (this *MemberRep) GetBankInfo(memberId int) *member.BankInfo
- func (this *MemberRep) GetDeliverAddress(memberId int) []*member.DeliverAddress
- func (this *MemberRep) GetInvitationMeMember(memberId int) *member.ValueMember
- func (this *MemberRep) GetLevel(partnerId, levelValue int) *valueobject.MemberLevel
- func (this *MemberRep) GetLevelValueByExp(partnerId int, exp int) int
- func (this *MemberRep) GetMember(memberId int) member.IMember
- func (this *MemberRep) GetMemberIdByInvitationCode(code string) int
- func (this *MemberRep) GetMemberIdByUser(user string) int
- func (this *MemberRep) GetMemberLatestUpdateTime(id int) int64
- func (this *MemberRep) GetMemberLevels(partnerId int) []*valueobject.MemberLevel
- func (this *MemberRep) GetMemberValueByPhone(phone string) *member.ValueMember
- func (this *MemberRep) GetMemberValueByUsr(usr string) *member.ValueMember
- func (this *MemberRep) GetMyInvitationMembers(memberId int) []*member.ValueMember
- func (this *MemberRep) GetNextLevel(partnerId, levelVal int) *valueobject.MemberLevel
- func (this *MemberRep) GetRelation(memberId int) *member.MemberRelation
- func (this *MemberRep) GetSingleDeliverAddress(memberId, deliverId int) *member.DeliverAddress
- func (this *MemberRep) GetSubInvitationNum(memberIds string) map[int]int
- func (this *MemberRep) LockMember(id int, state int) error
- func (this *MemberRep) SaveAccount(v *member.AccountValue) (int, error)
- func (this *MemberRep) SaveBalanceInfo(v *member.BalanceInfoValue) (int, error)
- func (this *MemberRep) SaveBankInfo(v *member.BankInfo) error
- func (this *MemberRep) SaveDeliver(v *member.DeliverAddress) (int, error)
- func (this *MemberRep) SaveGrowAccount(memberId int, balance, totalAmount, growEarnings, totalGrowEarnings float32, ...) error
- func (this *MemberRep) SaveIntegralLog(l *member.IntegralLog) error
- func (this *MemberRep) SaveMember(v *member.ValueMember) (int, error)
- func (this *MemberRep) SaveMemberLevel(partnerId int, v *valueobject.MemberLevel) (int, error)
- func (this *MemberRep) SaveRelation(v *member.MemberRelation) error
- func (this *MemberRep) SetPartnerRep(partnerRep partner.IPartnerRep)
- type MssRep
- func (this *MssRep) DeleteMailTemplate(partnerId, id int) error
- func (this *MssRep) GetMailTemplate(partnerId, id int) *mss.MailTemplate
- func (this *MssRep) GetMailTemplates(partnerId int) []*mss.MailTemplate
- func (this *MssRep) JoinMailTaskToQueen(v *mss.MailTask) error
- func (this *MssRep) SaveMailTemplate(v *mss.MailTemplate) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeliverRep ¶
func NewDeliverRep(c db.Connector) delivery.IDeliveryRep
func NewPartnerRep ¶
func NewPartnerRep(c db.Connector, userRep user.IUserRep, memberRep member.IMemberRep, mssRep mss.IMssRep) partner.IPartnerRep
func NewPersonFinanceRepository ¶
func NewPersonFinanceRepository(conn db.Connector, mRep member.IMemberRep) personfinance.IPersonFinanceRepository
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
Types ¶
type MemberRep ¶
func NewMemberRep ¶
func (*MemberRep) CheckPhoneBind ¶
手机号码是否使用
func (*MemberRep) CheckUsrExist ¶
用户名是否存在
func (*MemberRep) CreateMember ¶
func (this *MemberRep) CreateMember(v *member.ValueMember) member.IMember
创建会员
func (*MemberRep) DeleteDeliver ¶
删除配送地址
func (*MemberRep) DeleteMemberLevel ¶
删除会员等级
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 (*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 (*MemberRep) GetMemberIdByInvitationCode ¶
根据邀请码获取会员编号
func (*MemberRep) GetMemberIdByUser ¶
func (*MemberRep) GetMemberLatestUpdateTime ¶
获取会员最后更新时间
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 (*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 (*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 (*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 (*MssRep) SaveMailTemplate ¶
func (this *MssRep) SaveMailTemplate(v *mss.MailTemplate) (int, error)
保存邮箱模版
Click to show internal directories.
Click to hide internal directories.