member

package
v0.0.0-...-33ecd2b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : account
  • author : jarryliu
  • date : 2015-07-24 08:50
  • description :
  • history :

*

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccount

func NewAccount(value *member.AccountValue, rep member.IMemberRep) member.IAccount

func NewMember

func NewMember(val *member.ValueMember, rep member.IMemberRep, partnerRep partner.IPartnerRep) member.IMember

Types

type Account

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

func (*Account) ChargeBalance

func (this *Account) ChargeBalance(chargeType int, title string, tradeNo string, amount float32) error

充值 @title 充值标题说明 @no 充值订单编号 @amount 金额

func (*Account) ChargeFlowBalance

func (this *Account) ChargeFlowBalance(title string, tradeNo string, amount float32) error

流通账户余额充值,如扣除,amount传入负数金额

func (*Account) ConfirmApplyCash

func (this *Account) ConfirmApplyCash(id int, pass bool, remark string) error

确认提现

func (*Account) FinishApplyCash

func (this *Account) FinishApplyCash(id int, tradeNo string) error

完成提现

func (*Account) FinishBackBalance

func (this *Account) FinishBackBalance(id int, tradeNo string) error

完成退款

func (*Account) Freezes

func (this *Account) Freezes(title string, tradeNo string, amount float32, referId int) error

冻结余额

func (*Account) FreezesPresent

func (this *Account) FreezesPresent(title string, tradeNo string, amount float32, referId int) error

冻结赠送金额

func (*Account) GetBalanceInfo

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

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

func (*Account) GetBalanceInfoByNo

func (this *Account) GetBalanceInfoByNo(no string) *member.BalanceInfoValue

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

func (*Account) GetDomainId

func (this *Account) GetDomainId() int

获取领域对象编号

func (*Account) GetValue

func (this *Account) GetValue() *member.AccountValue

获取账户值

func (*Account) OrderDiscount

func (this *Account) OrderDiscount(tradeNo string, amount float32) error

订单抵扣消费

func (*Account) PresentBalance

func (this *Account) PresentBalance(title string, tradeNo string, amount float32) error

赠送金额

func (*Account) RequestApplyCash

func (this *Account) RequestApplyCash(applyType int, title string,
	amount float32, commission float32) error

请求提现

func (*Account) RequestBackBalance

func (this *Account) RequestBackBalance(backType int, title string,
	amount float32) error

退款

func (*Account) Save

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

保存

func (*Account) SaveBalanceInfo

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

保存余额变动信息

func (*Account) TransferBalance

func (this *Account) TransferBalance(kind int, amount float32,
	tradeNo string, toTitle, fromTitle string) error

转账余额到其他账户

func (*Account) TransferFlow

func (this *Account) TransferFlow(kind int, amount float32, commission float32,
	tradeNo string, toTitle string, fromTitle string) error

转账活动账户,kind为转账类型,如 KindBalanceTransfer等 commission手续费

func (*Account) TransferFlowTo

func (this *Account) TransferFlowTo(memberId int, kind int,
	amount float32, commission float32, tradeNo string,
	toTitle string, fromTitle string) error

将活动金转给其他人

func (*Account) TransferPresent

func (this *Account) TransferPresent(kind int, amount float32, commission float32,
	tradeNo string, toTitle string, fromTitle string) error

转账返利账户,kind为转账类型,如 KindBalanceTransfer等 commission手续费

func (*Account) Unfreezes

func (this *Account) Unfreezes(title string, tradeNo string, amount float32, referId int) error

解冻金额

func (*Account) UnfreezesPresent

func (this *Account) UnfreezesPresent(title string, tradeNo string, amount float32, referId int) error

解冻赠送金额

type Member

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

func (*Member) AddExp

func (this *Member) AddExp(exp int) error

增加经验值

func (*Member) AddIntegral

func (this *Member) AddIntegral(partnerId int, backType int,
	integral int, log string) error

 增加积分 todo:partnerId 不需要

func (*Member) CreateDeliver

func (this *Member) CreateDeliver(v *member.DeliverAddress) (member.IDeliver, error)

创建配送地址

func (*Member) DeleteDeliver

func (this *Member) DeleteDeliver(deliverId int) error

删除配送地址

func (*Member) GetAccount

func (this *Member) GetAccount() member.IAccount

获取账户

func (*Member) GetAggregateRootId

func (this *Member) GetAggregateRootId() int

获取聚合根编号

func (*Member) GetBank

func (this *Member) GetBank() member.BankInfo

获取提现银行信息

func (*Member) GetDeliver

func (this *Member) GetDeliver(deliverId int) member.IDeliver

获取配送地址

func (*Member) GetDeliverAddress

func (this *Member) GetDeliverAddress() []member.IDeliver

获取配送地址

func (*Member) GetLevel

func (this *Member) GetLevel() *valueobject.MemberLevel

获取等级

func (*Member) GetRelation

func (this *Member) GetRelation() *member.MemberRelation

获取会员关联

func (*Member) GetValue

func (this *Member) GetValue() member.ValueMember

获取值

func (*Member) Invitation

func (this *Member) Invitation() member.IInvitationManager

邀请管理

func (*Member) Lock

func (this *Member) Lock() error

锁定会员

func (*Member) ModifyPassword

func (this *Member) ModifyPassword(newPwd, oldPwd string) error

修改密码,旧密码可为空

func (*Member) ModifyTradePassword

func (this *Member) ModifyTradePassword(newPwd, oldPwd string) error

修改交易密码,旧密码可为空

func (*Member) PhoneIsExist

func (this *Member) PhoneIsExist(phone string) bool

手机号码是否占用

func (*Member) Save

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

保存

func (*Member) SaveBank

func (this *Member) SaveBank(v *member.BankInfo) error

保存提现银行信息

func (*Member) SaveIntegralLog

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

保存积分记录

func (*Member) SaveRelation

func (this *Member) SaveRelation(r *member.MemberRelation) error

创建并初始化

func (*Member) SetValue

func (this *Member) SetValue(v *member.ValueMember) error

设置值

func (*Member) Unlock

func (this *Member) Unlock() error

解锁会员

func (*Member) UsrIsExist

func (this *Member) UsrIsExist() bool

用户是否已经存在

Jump to

Keyboard shortcuts

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