示例#1
0
func (this *memberRep) GetMember(memberId int) (member.IMember, error) {
	e := &member.ValueMember{}
	err := this.Connector.GetOrm().Get(memberId, e)
	if err != nil {
		return nil, err
	}
	return memberImpl.NewMember(e, this), err
}
示例#2
0
// 创建会员
func (this *memberRep) CreateMember(v *member.ValueMember) member.IMember {
	return memberImpl.NewMember(v, this)
}
示例#3
0
文件: member_rep.go 项目: zoe527/go2o
// 创建会员
func (this *MemberRep) CreateMember(v *member.ValueMember) member.IMember {
	return memberImpl.NewMember(v, this, this._partnerRep)
}