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 ¶
- func NewAccount(value *member.AccountValue, rep member.IMemberRep) member.IAccount
- func NewMember(val *member.ValueMember, rep member.IMemberRep, partnerRep partner.IPartnerRep) member.IMember
- type Account
- func (this *Account) ChargeBalance(chargeType int, title string, tradeNo string, amount float32) error
- func (this *Account) ChargeFlowBalance(title string, tradeNo string, amount float32) error
- func (this *Account) ConfirmApplyCash(id int, pass bool, remark string) error
- func (this *Account) FinishApplyCash(id int, tradeNo string) error
- func (this *Account) FinishBackBalance(id int, tradeNo string) error
- func (this *Account) Freezes(title string, tradeNo string, amount float32, referId int) error
- func (this *Account) FreezesPresent(title string, tradeNo string, amount float32, referId int) error
- func (this *Account) GetBalanceInfo(id int) *member.BalanceInfoValue
- func (this *Account) GetBalanceInfoByNo(no string) *member.BalanceInfoValue
- func (this *Account) GetDomainId() int
- func (this *Account) GetValue() *member.AccountValue
- func (this *Account) OrderDiscount(tradeNo string, amount float32) error
- func (this *Account) PresentBalance(title string, tradeNo string, amount float32) error
- func (this *Account) RequestApplyCash(applyType int, title string, amount float32, commission float32) error
- func (this *Account) RequestBackBalance(backType int, title string, amount float32) error
- func (this *Account) Save() (int, error)
- func (this *Account) SaveBalanceInfo(v *member.BalanceInfoValue) (int, error)
- func (this *Account) TransferBalance(kind int, amount float32, tradeNo string, toTitle, fromTitle string) error
- func (this *Account) TransferFlow(kind int, amount float32, commission float32, tradeNo string, toTitle string, ...) error
- func (this *Account) TransferFlowTo(memberId int, kind int, amount float32, commission float32, tradeNo string, ...) error
- func (this *Account) TransferPresent(kind int, amount float32, commission float32, tradeNo string, toTitle string, ...) error
- func (this *Account) Unfreezes(title string, tradeNo string, amount float32, referId int) error
- func (this *Account) UnfreezesPresent(title string, tradeNo string, amount float32, referId int) error
- type Member
- func (this *Member) AddExp(exp int) error
- func (this *Member) AddIntegral(partnerId int, backType int, integral int, log string) error
- func (this *Member) CreateDeliver(v *member.DeliverAddress) (member.IDeliver, error)
- func (this *Member) DeleteDeliver(deliverId int) error
- func (this *Member) GetAccount() member.IAccount
- func (this *Member) GetAggregateRootId() int
- func (this *Member) GetBank() member.BankInfo
- func (this *Member) GetDeliver(deliverId int) member.IDeliver
- func (this *Member) GetDeliverAddress() []member.IDeliver
- func (this *Member) GetLevel() *valueobject.MemberLevel
- func (this *Member) GetRelation() *member.MemberRelation
- func (this *Member) GetValue() member.ValueMember
- func (this *Member) Invitation() member.IInvitationManager
- func (this *Member) Lock() error
- func (this *Member) ModifyPassword(newPwd, oldPwd string) error
- func (this *Member) ModifyTradePassword(newPwd, oldPwd string) error
- func (this *Member) PhoneIsExist(phone string) bool
- func (this *Member) Save() (int, error)
- func (this *Member) SaveBank(v *member.BankInfo) error
- func (this *Member) SaveIntegralLog(l *member.IntegralLog) error
- func (this *Member) SaveRelation(r *member.MemberRelation) error
- func (this *Member) SetValue(v *member.ValueMember) error
- func (this *Member) Unlock() error
- func (this *Member) UsrIsExist() bool
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 ¶
流通账户余额充值,如扣除,amount传入负数金额
func (*Account) ConfirmApplyCash ¶
确认提现
func (*Account) FinishApplyCash ¶
完成提现
func (*Account) FinishBackBalance ¶
完成退款
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) OrderDiscount ¶
订单抵扣消费
func (*Account) PresentBalance ¶
赠送金额
func (*Account) RequestApplyCash ¶
func (this *Account) RequestApplyCash(applyType int, title string, amount float32, commission float32) error
请求提现
func (*Account) RequestBackBalance ¶
退款
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手续费
type Member ¶
type Member struct {
// contains filtered or unexported fields
}
func (*Member) AddIntegral ¶
增加积分 todo:partnerId 不需要
func (*Member) CreateDeliver ¶
创建配送地址
func (*Member) ModifyPassword ¶
修改密码,旧密码可为空
func (*Member) ModifyTradePassword ¶
修改交易密码,旧密码可为空
func (*Member) SaveIntegralLog ¶
func (this *Member) SaveIntegralLog(l *member.IntegralLog) error
保存积分记录
func (*Member) SaveRelation ¶
func (this *Member) SaveRelation(r *member.MemberRelation) error
创建并初始化
Click to show internal directories.
Click to hide internal directories.