Documentation
¶
Overview ¶
create for src 30/11/2017 ( jarrysix@gmail.com )
*
- Copyright 2015 @ 56x.net.
- name : api_manager.go
- author : jarryliu
- date : 2016-05-27 13:28
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : conf_manager
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : kv_manager
- author : jarryliu
- date : 2015-07-26 22:44
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : conf_manager
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : profile_manager
- author : jarryliu
- date : 2016-05-27 10:38
- description :
- history :
Index ¶
- func NewLevelManager(mchId int64, rep merchant.IMerchantRepo) merchant.ILevelManager
- func NewMerchant(v *merchant.Merchant, rep merchant.IMerchantRepo, ...) merchant.IMerchant
- func NewMerchantManager(rep merchant.IMerchantRepo, valRepo valueobject.IValueRepo) merchant.IMerchantManager
- type KvManager
- type LevelManager
- func (l *LevelManager) DeleteLevel(id int32) error
- func (l *LevelManager) GetLevelById(id int32) *merchant.MemberLevel
- func (l *LevelManager) GetLevelByValue(value int32) *merchant.MemberLevel
- func (l *LevelManager) GetLevelSet() []*merchant.MemberLevel
- func (l *LevelManager) GetLevelValueByExp(exp int32) int32
- func (l *LevelManager) GetNextLevel(value int32) *merchant.MemberLevel
- func (l *LevelManager) InitDefaultLevels() error
- func (l *LevelManager) SaveLevel(v *merchant.MemberLevel) (int32, error)
- type SaleManagerImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLevelManager ¶
func NewLevelManager(mchId int64, rep merchant.IMerchantRepo) merchant.ILevelManager
func NewMerchant ¶
func NewMerchant(v *merchant.Merchant, rep merchant.IMerchantRepo, wsRepo wholesaler.IWholesaleRepo, itemRepo item.IItemRepo, shopRepo shop.IShopRepo, userRepo user.IUserRepo, memberRepo member.IMemberRepo, walletRepo wallet.IWalletRepo, valRepo valueobject.IValueRepo, registryRepo registry.IRegistryRepo) merchant.IMerchant
func NewMerchantManager ¶
func NewMerchantManager(rep merchant.IMerchantRepo, valRepo valueobject.IValueRepo) merchant.IMerchantManager
Types ¶
type KvManager ¶
type KvManager struct {
// contains filtered or unexported fields
}
func (*KvManager) GetsByChar ¶
根据关键字获取字典
type LevelManager ¶
type LevelManager struct {
// contains filtered or unexported fields
}
func (*LevelManager) GetLevelById ¶
func (l *LevelManager) GetLevelById(id int32) *merchant.MemberLevel
获取等级
func (*LevelManager) GetLevelByValue ¶
func (l *LevelManager) GetLevelByValue(value int32) *merchant.MemberLevel
根据等级值获取等级
func (*LevelManager) GetLevelSet ¶
func (l *LevelManager) GetLevelSet() []*merchant.MemberLevel
获取等级设置
func (*LevelManager) GetLevelValueByExp ¶
func (l *LevelManager) GetLevelValueByExp(exp int32) int32
根据经验值获取等级
func (*LevelManager) GetNextLevel ¶
func (l *LevelManager) GetNextLevel(value int32) *merchant.MemberLevel
获取下一个等级
func (*LevelManager) SaveLevel ¶
func (l *LevelManager) SaveLevel(v *merchant.MemberLevel) (int32, error)
保存等级
type SaleManagerImpl ¶
type SaleManagerImpl struct {
// contains filtered or unexported fields
}
func (*SaleManagerImpl) MathTradeFee ¶
func (s *SaleManagerImpl) MathTradeFee(tradeType int, amount int) (int, error)
计算交易手续费
Source Files
¶
Click to show internal directories.
Click to hide internal directories.