partner

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2016 License: GPL-2.0 Imports: 15 Imported by: 0

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

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) Get

func (this *KvManager) Get(k string) string

获取键值

func (*KvManager) GetInt

func (this *KvManager) GetInt(k string) int

获取int类型的键值

func (*KvManager) Gets

func (this *KvManager) Gets(k []string) map[string]string

获取多项

func (*KvManager) GetsByChar

func (this *KvManager) GetsByChar(keyword string) map[string]string

根据关键字获取字典

func (*KvManager) Set

func (this *KvManager) Set(k, v string)

设置

func (*KvManager) Sets

func (this *KvManager) Sets(v map[string]string) error

设置多项

type LevelManager

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

func (*LevelManager) DeleteLevel

func (this *LevelManager) DeleteLevel(id int) error

删除等级

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) ConfManager

func (this *Partner) ConfManager() partner.IConfManager

返回设置服务

func (*Partner) CreateShop

func (this *Partner) CreateShop(v *partner.ValueShop) partner.IShop

新建商店

func (*Partner) DeleteShop

func (this *Partner) DeleteShop(shopId int) error

删除门店

func (*Partner) GetAggregateRootId

func (this *Partner) GetAggregateRootId() int

func (*Partner) GetApiInfo

func (this *Partner) GetApiInfo() partner.ApiInfo

获取API信息

func (*Partner) GetBusinessInShops

func (this *Partner) GetBusinessInShops() []partner.IShop

获取营业中的商店

func (*Partner) GetMajorHost

func (this *Partner) GetMajorHost() string

获取商户的域名

func (*Partner) GetSaleConf

func (this *Partner) GetSaleConf() partner.SaleConf

获取销售配置

func (*Partner) GetShop

func (this *Partner) GetShop(shopId int) partner.IShop

获取商店

func (*Partner) GetShops

func (this *Partner) GetShops() []partner.IShop

获取所有商店

func (*Partner) GetSiteConf

func (this *Partner) GetSiteConf() partner.SiteConf

获取站点配置

func (*Partner) GetValue

func (this *Partner) GetValue() partner.ValuePartner

func (*Partner) KvManager

func (this *Partner) KvManager() partner.IKvManager

获取键值管理器

func (*Partner) LevelManager

func (this *Partner) LevelManager() partner.ILevelManager

获取会员管理服务

func (*Partner) MemberKvManager

func (this *Partner) MemberKvManager() partner.IKvManager

获取用户键值管理器

func (*Partner) MssManager

func (this *Partner) MssManager() mss.IMssManager

消息系统管理器

func (*Partner) RegisterPerm

func (this *Partner) RegisterPerm(isInvitation bool) error

注册权限验证,如果没有权限注册,返回错误

func (*Partner) Save

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

保存

func (*Partner) SaveApiInfo

func (this *Partner) SaveApiInfo(v *partner.ApiInfo) error

保存API信息

func (*Partner) SaveSaleConf

func (this *Partner) SaveSaleConf(v *partner.SaleConf) error

保存销售配置

func (*Partner) SaveSiteConf

func (this *Partner) SaveSiteConf(v *partner.SiteConf) error

保存站点配置

func (*Partner) SetValue

func (this *Partner) SetValue(v *partner.ValuePartner) error

func (*Partner) UserManager

func (this *Partner) UserManager() user.IUserManager

返回用户服务

type Shop

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

func (*Shop) GetDomainId

func (this *Shop) GetDomainId() int

func (*Shop) GetValue

func (this *Shop) GetValue() partner.ValueShop

func (*Shop) Save

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

func (*Shop) SetValue

func (this *Shop) SetValue(v *partner.ValueShop) error

Directories

Path Synopsis
*
*
*
*

Jump to

Keyboard shortcuts

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