Documentation ¶
Overview ¶
*
- Copyright 2015 @ z3q.net.
- name : conf_manager
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : kv_manager
- author : jarryliu
- date : 2015-07-26 22:44
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : conf_manager
- author : jarryliu
- date : -- :
- description :
- history :
Index ¶
- func NewLevelManager(partnerId int, rep member.IMemberRep) partner.ILevelManager
- func NewPartner(v *partner.ValuePartner, rep partner.IPartnerRep, userRep user.IUserRep, ...) (partner.IPartner, error)
- type ConfManager
- type KvManager
- func (this *KvManager) Get(k string) string
- func (this *KvManager) GetInt(k string) int
- func (this *KvManager) Gets(k []string) map[string]string
- func (this *KvManager) GetsByChar(keyword string) map[string]string
- func (this *KvManager) Set(k, v string)
- func (this *KvManager) Sets(v map[string]string) error
- type LevelManager
- func (this *LevelManager) DeleteLevel(id int) error
- func (this *LevelManager) GetLevelById(id int) *valueobject.MemberLevel
- func (this *LevelManager) GetLevelByValue(value int) *valueobject.MemberLevel
- func (this *LevelManager) GetLevelSet() []*valueobject.MemberLevel
- func (this *LevelManager) GetLevelValueByExp(exp int) int
- func (this *LevelManager) GetNextLevel(value int) *valueobject.MemberLevel
- func (this *LevelManager) InitDefaultLevels() error
- func (this *LevelManager) SaveLevel(v *valueobject.MemberLevel) (int, error)
- type Partner
- func (this *Partner) ConfManager() partner.IConfManager
- func (this *Partner) CreateShop(v *partner.ValueShop) partner.IShop
- func (this *Partner) DeleteShop(shopId int) error
- func (this *Partner) GetAggregateRootId() int
- func (this *Partner) GetApiInfo() partner.ApiInfo
- func (this *Partner) GetBusinessInShops() []partner.IShop
- func (this *Partner) GetMajorHost() string
- func (this *Partner) GetSaleConf() partner.SaleConf
- func (this *Partner) GetShop(shopId int) partner.IShop
- func (this *Partner) GetShops() []partner.IShop
- func (this *Partner) GetSiteConf() partner.SiteConf
- func (this *Partner) GetValue() partner.ValuePartner
- func (this *Partner) KvManager() partner.IKvManager
- func (this *Partner) LevelManager() partner.ILevelManager
- func (this *Partner) MemberKvManager() partner.IKvManager
- func (this *Partner) MssManager() mss.IMssManager
- func (this *Partner) RegisterPerm(isInvitation bool) error
- func (this *Partner) Save() (int, error)
- func (this *Partner) SaveApiInfo(v *partner.ApiInfo) error
- func (this *Partner) SaveSaleConf(v *partner.SaleConf) error
- func (this *Partner) SaveSiteConf(v *partner.SiteConf) error
- func (this *Partner) SetValue(v *partner.ValuePartner) error
- func (this *Partner) UserManager() user.IUserManager
- type Shop
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLevelManager ¶
func NewLevelManager(partnerId int, rep member.IMemberRep) partner.ILevelManager
func NewPartner ¶
func NewPartner(v *partner.ValuePartner, rep partner.IPartnerRep, userRep user.IUserRep, memberRep member.IMemberRep, mssRep mss.IMssRep) (partner.IPartner, error)
Types ¶
type ConfManager ¶
type ConfManager struct {
// contains filtered or unexported fields
}
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 (this *LevelManager) GetLevelById(id int) *valueobject.MemberLevel
获取等级
func (*LevelManager) GetLevelByValue ¶
func (this *LevelManager) GetLevelByValue(value int) *valueobject.MemberLevel
根据等级值获取等级
func (*LevelManager) GetLevelSet ¶
func (this *LevelManager) GetLevelSet() []*valueobject.MemberLevel
获取等级设置
func (*LevelManager) GetLevelValueByExp ¶
func (this *LevelManager) GetLevelValueByExp(exp int) int
根据经验值获取等级
func (*LevelManager) GetNextLevel ¶
func (this *LevelManager) GetNextLevel(value int) *valueobject.MemberLevel
获取下一个等级
func (*LevelManager) InitDefaultLevels ¶
func (this *LevelManager) InitDefaultLevels() error
初始化默认等级
func (*LevelManager) SaveLevel ¶
func (this *LevelManager) SaveLevel(v *valueobject.MemberLevel) (int, error)
保存等级
type Partner ¶
type Partner struct {
// contains filtered or unexported fields
}
func (*Partner) CreateShop ¶
新建商店
func (*Partner) GetAggregateRootId ¶
func (*Partner) GetBusinessInShops ¶
获取营业中的商店
func (*Partner) GetValue ¶
func (this *Partner) GetValue() partner.ValuePartner
func (*Partner) MemberKvManager ¶
func (this *Partner) MemberKvManager() partner.IKvManager
获取用户键值管理器
func (*Partner) RegisterPerm ¶
注册权限验证,如果没有权限注册,返回错误
type Shop ¶
type Shop struct {
// contains filtered or unexported fields
}
func (*Shop) GetDomainId ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.