repos

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: GPL-2.0 Imports: 71 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ 56x.net.
  • name : ad_rep
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : after_sales_repo.go
  • author : jarryliu
  • date : 2016-07-17 08:36
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : cart_repo.go
  • author : jarryliu
  • date : 2016-06-29 22:54
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : category_repo.go
  • author : jarryliu
  • date : 2016-06-04 13:01
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : content_rep
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2014 @ 56x.net.
  • name :
  • author : jarryliu
  • date : 2015-02-16 10:28
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : express_rep
  • author : jarryliu
  • date : 2016-07-05 18:33
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : goods_rep
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : mss_rep
  • author : jarryliu
  • date : 2015-07-27 09:03
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : notify_repo.go
  • author : jarryliu
  • date : 2016-07-06 18:45
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : payment_repo.go
  • author : jarryliu
  • date : 2016-07-03 12:52
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : personfinance_rep
  • author : jarryliu
  • date : 2016-04-01 09:30
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : rep
  • author : jarryliu
  • date : 2016-05-24 10:14
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : tag_rep
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : shipment_rep
  • author : jarryliu
  • date : 2016-07-15 10:28
  • description :
  • history :

*

  • Copyright 2014 @ 56x.net.
  • name :
  • author : jarryliu
  • date : 2015-02-15 10:22
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : default
  • author : jarryliu
  • date : 2016-07-23 11:21
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : value_rep
  • author : jarryliu
  • date : 2016-05-27 15:32
  • description :
  • history :

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRegistry = valueobject.Registry_{

		MerchantTakeOutCashFree: true,

		OrderReceiveAlertMessage: "确认收货后,款项将转给商户。请在收货前确保已经商品没有损坏和缺少!",

		MemberExperienceEnabled: true,

		MemberProfileNotCompletedMessage: "您的个人资料未完善,是否立即完善?",

		MemberNotTrustedMessage: "您尚未实名认证!",

		MemberCheckPhoneFormat: true,

		PresentIntegralNumOfRegister: 0,
		MemberReferLayer:             3,

		MemberImRequired: false,

		MemberTakeOutOn: true,

		TakeOutMustTrust: true,

		MemberDefaultPersonRemark: "什么也没留下",

		GoodsDefaultImage: "res/nopic.gif",

		GoodsMinProfitRate: 0,

		CacheAdMaxAge: 3600,

		ShopIncorrectAliasWords: "shop|master|o2o|super|www|sys|system|mall|mch|system|passport|api|image|static|img",
	}

	// 移动应用配置
	DefaultMoAppConf = valueobject.MoAppConf{

		AppName: DefaultRegistry.RegistryData["PlatformName"],

		AppIcon: DefaultRegistry.RegistryData["RetailSiteLogo"],

		Description: "移动应用正在开发中",

		ShowTplPath: "app.html",

		AndroidVersion: "1.0",

		AndroidReleaseUrl: "",

		IosVersion: "1.0",

		IosReleaseUrl: "",

		WpVersion: "1.0",

		WpReleaseUrl: "",
	}

	DefaultGlobMchSaleConf = valueobject.GlobMchSaleConf{

		FxSalesEnabled: false,

		CashBackPercent: 0.1,

		CashBackTg1Percent: 0.5,

		CashBackTg2Percent: 0.3,

		CashBackMemberPercent: 0.2,

		AutoSetupOrder: 1,

		OrderTimeOutMinute: 1440,

		OrderConfirmAfterMinute: 10,

		OrderTimeOutReceiveHour: 168,
	}
)
View Source
var (
	DefaultCacheSeconds int64 = 3600
)
View Source
var (
	Repo = &RepoFactory{}
)

Functions

func NewAdvertisementRepo

func NewAdvertisementRepo(o orm.Orm, storage storage.Interface) ad.IAdRepo

广告仓储

func NewAfterSalesRepo

func NewAfterSalesRepo(o orm.Orm, orderRepo order.IOrderRepo,
	memberRepo member.IMemberRepo, paymentRepo payment.IPaymentRepo) afterSales.IAfterSalesRepo

func NewCartRepo

func NewCartRepo(o orm.Orm, memberRepo member.IMemberRepo,
	_mchRepo merchant.IMerchantRepo,
	itemRepo item.IGoodsItemRepo) cart.ICartRepo

func NewCategoryRepo

func NewCategoryRepo(o orm.Orm, registryRepo registry.IRegistryRepo,
	storage storage.Interface) product.ICategoryRepo

func NewContentRepo

func NewContentRepo(o orm.Orm) content.IArchiveRepo

内容仓储

func NewDeliverRepo

func NewDeliverRepo(o orm.Orm) delivery.IDeliveryRepo

func NewExpressRepo

func NewExpressRepo(o orm.Orm, valRepo valueobject.IValueRepo) express.IExpressRepo

func NewGoodsItemRepo

func NewGoodsItemRepo(o orm.Orm, catRepo product.ICategoryRepo,
	proRepo product.IProductRepo, proMRepo promodel.IProductModelRepo,
	itemWsRepo item.IItemWholesaleRepo, expressRepo express.IExpressRepo,
	registryRepo registry.IRegistryRepo, shopRepo shop.IShopRepo) *itemRepoImpl

商品仓储

func NewItemWholesaleRepo

func NewItemWholesaleRepo(o orm.Orm) item.IItemWholesaleRepo

func NewMerchantRepo

func NewMerchantRepo(o orm.Orm, storage storage.Interface,
	wsRepo wholesaler.IWholesaleRepo, itemRepo item.IGoodsItemRepo,
	shopRepo shop.IShopRepo, userRepo user.IUserRepo, memberRepo member.IMemberRepo, mssRepo mss.IMssRepo,
	walletRepo wallet.IWalletRepo, valRepo valueobject.IValueRepo, registryRepo registry.IRegistryRepo) merchant.IMerchantRepo

func NewMssRepo

func NewMssRepo(o orm.Orm, notifyRepo notify.INotifyRepo,
	registryRepo registry.IRegistryRepo,
	valRepo valueobject.IValueRepo) mss.IMssRepo

func NewNotifyRepo

func NewNotifyRepo(o orm.Orm, registryRepo registry.IRegistryRepo) notify.INotifyRepo

func NewOrderRepo

func NewOrderRepo(sto storage.Interface, o orm.Orm,
	mchRepo merchant.IMerchantRepo, payRepo payment.IPaymentRepo,
	proRepo product.IProductRepo, cartRepo cart.ICartRepo, goodsRepo item.IGoodsItemRepo,
	promRepo promotion.IPromotionRepo, memRepo member.IMemberRepo,
	deliverRepo delivery.IDeliveryRepo, expressRepo express.IExpressRepo,
	shipRepo shipment.IShipmentRepo,
	valRepo valueobject.IValueRepo, registryRepo registry.IRegistryRepo) order.IOrderRepo

func NewPaymentRepo

func NewPaymentRepo(sto storage.Interface, o orm.Orm, mmRepo member.IMemberRepo,
	orderRepo order.IOrderRepo, registryRepo registry.IRegistryRepo) payment.IPaymentRepo

func NewProModelRepo

func NewProModelRepo(o orm.Orm) promodel.IProductModelRepo

Create new ProBrandRepo

func NewProductRepo

func NewProductRepo(o orm.Orm, pmRepo promodel.IProductModelRepo,
	valRepo valueobject.IValueRepo) product.IProductRepo

func NewPromotionRepo

func NewPromotionRepo(o orm.Orm, goodsRepo item.IGoodsItemRepo,
	memberRepo member.IMemberRepo) promotion.IPromotionRepo

func NewRegistryRepo

func NewRegistryRepo(conn orm.Orm, s storage.Interface) registry.IRegistryRepo

func NewShipmentRepo

func NewShipmentRepo(o orm.Orm, expRepo express.IExpressRepo) *shipmentRepo

func NewShopRepo

func NewShopRepo(o orm.Orm, storage storage.Interface,
	valueRepo valueobject.IValueRepo, registryRepo registry.IRegistryRepo) shop.IShopRepo

func NewTagSaleRepo

func NewTagSaleRepo(o orm.Orm,
	valRepo valueobject.IValueRepo) item.ISaleLabelRepo

func NewUserRepo

func NewUserRepo(o orm.Orm) user.IUserRepo

func NewValueRepo

func NewValueRepo(confPath string, o orm.Orm, storage storage.Interface) valueobject.IValueRepo

func NewWalletRepo

func NewWalletRepo(o orm.Orm) wallet.IWalletRepo

func NewWholesaleRepo

func NewWholesaleRepo(o orm.Orm) *wholesaleRepo

Create new WsWholesalerRepo

func PrefixDel

func PrefixDel(sto storage.Interface, prefix string) error

删除指定前缀的缓存

Types

type MemberRepoImpl

type MemberRepoImpl struct {
	db.Connector
	// contains filtered or unexported fields
}

func NewMemberRepo

func NewMemberRepo(sto storage.Interface, o orm.Orm,
	walletRepo wallet.IWalletRepo, mssRepo mss.IMssRepo,
	valRepo valueobject.IValueRepo, registryRepo registry.IRegistryRepo) *MemberRepoImpl

func (*MemberRepoImpl) AddTodayTakeOutTimes

func (m *MemberRepoImpl) AddTodayTakeOutTimes(memberId int64) error

增加会员当天提现次数

func (*MemberRepoImpl) BankCards

func (m *MemberRepoImpl) BankCards(memberId int64) []member.BankCard

获取银行信息

func (*MemberRepoImpl) CancelFavorite

func (m *MemberRepoImpl) CancelFavorite(memberId int64, favType int, referId int64) error

取消收藏

func (*MemberRepoImpl) CheckPhoneBind

func (m *MemberRepoImpl) CheckPhoneBind(phone string, memberId int64) bool

手机号码是否使用

func (*MemberRepoImpl) CheckUserExist

func (m *MemberRepoImpl) CheckUserExist(user string, memberId int64) bool

用户名是否存在

func (*MemberRepoImpl) CreateMember

func (m *MemberRepoImpl) CreateMember(v *member.Member) member.IMember

创建会员

func (*MemberRepoImpl) CreateMemberById

func (m *MemberRepoImpl) CreateMemberById(memberId int64) member.IMember

创建会员,仅作为某些操作使用,不保存

func (*MemberRepoImpl) DeleteAddress

func (m *MemberRepoImpl) DeleteAddress(memberId, deliverId int64) error

DeleteAddress 删除配送地址

func (*MemberRepoImpl) DeleteLockInfos

func (m *MemberRepoImpl) DeleteLockInfos(memberId int64) error

func (*MemberRepoImpl) DeleteMember

func (m *MemberRepoImpl) DeleteMember(id int64) error

删除会员

func (*MemberRepoImpl) DeleteMemberLevel_New

func (m *MemberRepoImpl) DeleteMemberLevel_New(id int) error

删除会员等级

func (*MemberRepoImpl) Favored

func (m *MemberRepoImpl) Favored(memberId int64, favType int, referId int64) bool

是否已收藏

func (*MemberRepoImpl) Favorite

func (m *MemberRepoImpl) Favorite(memberId int64, favType int, referId int64) error

收藏,typeId 为类型编号, referId为关联的ID

func (*MemberRepoImpl) GetAccount

func (m *MemberRepoImpl) GetAccount(memberId int64) *member.Account

GetAccount 获取账户

func (*MemberRepoImpl) GetDeliverAddress

func (m *MemberRepoImpl) GetDeliverAddress(memberId int64) []*member.ConsigneeAddress

GetDeliverAddress 获取全部配送地址

func (*MemberRepoImpl) GetInvitationMeMember

func (m *MemberRepoImpl) GetInvitationMeMember(memberId int64) *member.Member

获取推荐我的人

func (*MemberRepoImpl) GetInviteChildren

func (m *MemberRepoImpl) GetInviteChildren(id int64) []int64

获取会员邀请的会员编号列表

func (*MemberRepoImpl) GetLevelUpLog

func (m *MemberRepoImpl) GetLevelUpLog(id int) *member.LevelUpLog

获取会员升级记录

func (*MemberRepoImpl) GetLevelValueByExp

func (m *MemberRepoImpl) GetLevelValueByExp(mchId int64, exp int64) int

获取积分对应的等级

func (*MemberRepoImpl) GetManager

func (m *MemberRepoImpl) GetManager() member.IMemberManager

获取管理服务

func (*MemberRepoImpl) GetMember

func (m *MemberRepoImpl) GetMember(memberId int64) member.IMember

获取会员

func (*MemberRepoImpl) GetMemberByUser

func (m *MemberRepoImpl) GetMemberByUser(user string) *member.Member

根据用户名获取会员

func (*MemberRepoImpl) GetMemberIdByCode

func (m *MemberRepoImpl) GetMemberIdByCode(code string) int64

根据编码获取会员

func (*MemberRepoImpl) GetMemberIdByEmail

func (m *MemberRepoImpl) GetMemberIdByEmail(email string) int64

根据邮箱地址获取会员编号

func (*MemberRepoImpl) GetMemberIdByInviteCode

func (m *MemberRepoImpl) GetMemberIdByInviteCode(code string) int64

根据邀请码获取会员编号

func (*MemberRepoImpl) GetMemberIdByPhone

func (m *MemberRepoImpl) GetMemberIdByPhone(phone string) int64

根据手机号获取会员编号

func (*MemberRepoImpl) GetMemberIdByUser

func (m *MemberRepoImpl) GetMemberIdByUser(user string) int64

func (*MemberRepoImpl) GetMemberLatestUpdateTime

func (m *MemberRepoImpl) GetMemberLatestUpdateTime(memberId int64) int64

获取会员最后更新时间

func (*MemberRepoImpl) GetMemberLevels_New

func (m *MemberRepoImpl) GetMemberLevels_New() []*member.Level

获取会员等级

func (*MemberRepoImpl) GetMemberNumByLevel_New

func (m *MemberRepoImpl) GetMemberNumByLevel_New(id int) int

获取等级对应的会员数

func (*MemberRepoImpl) GetMemberPagedCoupon

func (m *MemberRepoImpl) GetMemberPagedCoupon(memberId int64, start, end int, where string) (total int, rows []*dto.SimpleCoupon)

获取会员分页的优惠券列表

func (*MemberRepoImpl) GetMemberValueByPhone

func (m *MemberRepoImpl) GetMemberValueByPhone(phone string) *member.Member

根据手机号码获取会员

func (*MemberRepoImpl) GetMyInvitationMembers

func (m *MemberRepoImpl) GetMyInvitationMembers(memberId int64, begin, end int) (
	total int, rows []*dto.InvitationMember)

GetMyInvitationMembers 邀请

func (*MemberRepoImpl) GetProfile

func (m *MemberRepoImpl) GetProfile(memberId int64) *member.Profile

获取资料或初始化

func (*MemberRepoImpl) GetRelation

func (m *MemberRepoImpl) GetRelation(memberId int64) *member.InviteRelation

获取会员关联

func (*MemberRepoImpl) GetSingleDeliverAddress

func (m *MemberRepoImpl) GetSingleDeliverAddress(memberId, deliverId int64) *member.ConsigneeAddress

GetSingleDeliverAddress 获取配送地址

func (*MemberRepoImpl) GetSubInvitationNum

func (m *MemberRepoImpl) GetSubInvitationNum(memberId int64, memberIdArr []int32) map[int32]int

获取下级会员数量

func (*MemberRepoImpl) GetTodayTakeOutTimes

func (m *MemberRepoImpl) GetTodayTakeOutTimes(memberId int64) int

获取会员每日提现次数

func (*MemberRepoImpl) GetWalletLog

func (m *MemberRepoImpl) GetWalletLog(id int32) *member.WalletAccountLog

func (*MemberRepoImpl) ReceiptsCodes

func (m *MemberRepoImpl) ReceiptsCodes(memberId int64) []member.ReceiptsCode

func (*MemberRepoImpl) RegisterUnlockJob

func (m *MemberRepoImpl) RegisterUnlockJob(v *member.MmLockInfo)

存储自动解锁信息到任务队列

func (*MemberRepoImpl) RemoveBankCard

func (m *MemberRepoImpl) RemoveBankCard(memberId int64, cardNo string) error

func (*MemberRepoImpl) SaveAccount

func (m *MemberRepoImpl) SaveAccount(v *member.Account) (int64, error)

SaveAccount 保存账户,传入会员编号

func (*MemberRepoImpl) SaveBalanceLog

func (m *MemberRepoImpl) SaveBalanceLog(v *member.BalanceLog) (int32, error)

SaveBalanceLog 保存余额日志

func (*MemberRepoImpl) SaveBankCard

func (m *MemberRepoImpl) SaveBankCard(v *member.BankCard) error

保存银行信息

func (*MemberRepoImpl) SaveDeliver

func (m *MemberRepoImpl) SaveDeliver(v *member.ConsigneeAddress) (int64, error)

SaveDeliver 保存地址

func (*MemberRepoImpl) SaveFlowAccountInfo

func (m *MemberRepoImpl) SaveFlowAccountInfo(v *member.FlowAccountLog) (int32, error)

保存余额变动信息

func (*MemberRepoImpl) SaveGrowAccount

func (m *MemberRepoImpl) SaveGrowAccount(memberId int64, balance, totalAmount,
	growEarnings, totalGrowEarnings float32, updateTime int64) error

保存理财账户信息

func (*MemberRepoImpl) SaveIntegralLog

func (m *MemberRepoImpl) SaveIntegralLog(v *member.IntegralLog) error

SaveIntegralLog 保存积分记录

func (*MemberRepoImpl) SaveLevelUpLog

func (m *MemberRepoImpl) SaveLevelUpLog(v *member.LevelUpLog) (int32, error)

SaveLevelUpLog 保存会员升级记录

func (*MemberRepoImpl) SaveLockHistory

func (m *MemberRepoImpl) SaveLockHistory(v *member.MmLockHistory) (int, error)

func (*MemberRepoImpl) SaveLockInfo

func (m *MemberRepoImpl) SaveLockInfo(v *member.MmLockInfo) (int, error)

func (*MemberRepoImpl) SaveMember

func (m *MemberRepoImpl) SaveMember(v *member.Member) (int64, error)

保存会员

func (*MemberRepoImpl) SaveMemberLevel_New

func (m *MemberRepoImpl) SaveMemberLevel_New(v *member.Level) (int, error)

保存会员等级

func (*MemberRepoImpl) SaveMmBuyerGroup

func (m *MemberRepoImpl) SaveMmBuyerGroup(v *member.BuyerGroup) (int, error)

Save MmBuyerGroup

func (*MemberRepoImpl) SaveProfile

func (m *MemberRepoImpl) SaveProfile(v *member.Profile) error

保存资料

func (*MemberRepoImpl) SaveReceiptsCode

func (m *MemberRepoImpl) SaveReceiptsCode(v *member.ReceiptsCode, memberId int64) (int, error)

func (*MemberRepoImpl) SaveRelation

func (m *MemberRepoImpl) SaveRelation(v *member.InviteRelation) (err error)

保存绑定

func (*MemberRepoImpl) SaveWalletAccountLog

func (m *MemberRepoImpl) SaveWalletAccountLog(v *member.WalletAccountLog) (int32, error)

保存钱包账户日志

func (*MemberRepoImpl) SelectMmBuyerGroup

func (m *MemberRepoImpl) SelectMmBuyerGroup(where string, v ...interface{}) []*member.BuyerGroup

Select MmBuyerGroup

type OrderRepImpl

type OrderRepImpl struct {
	Storage storage.Interface
	db.Connector
	// contains filtered or unexported fields
}

func (*OrderRepImpl) CreateNormalSubOrder

func (o *OrderRepImpl) CreateNormalSubOrder(v *order.NormalSubOrder) order.ISubOrder

生成空白订单,并保存返回对象

func (*OrderRepImpl) CreateOrder

func (o *OrderRepImpl) CreateOrder(val *order.Order) order.IOrder

生成订单

func (*OrderRepImpl) GetFreeOrderNo

func (o *OrderRepImpl) GetFreeOrderNo(vendorId int64) string

获取可用的订单号

func (*OrderRepImpl) GetNormalOrderById

func (o *OrderRepImpl) GetNormalOrderById(orderId int64) *order.NormalOrder

根据编号获取订单

func (*OrderRepImpl) GetNormalSubOrders

func (o *OrderRepImpl) GetNormalSubOrders(orderId int64) []*order.NormalSubOrder

获取订单的所有子订单

func (*OrderRepImpl) GetOrder

func (o *OrderRepImpl) GetOrder(where string, arg ...interface{}) *order.Order

Get OrderList

func (*OrderRepImpl) GetOrderId

func (o *OrderRepImpl) GetOrderId(orderNo string, subOrder bool) int64

获取订单编号

func (*OrderRepImpl) GetOrderItemBySnapshotId

func (o *OrderRepImpl) GetOrderItemBySnapshotId(orderId int64, snapshotId int32) *order.SubOrderItem

根据商品快照获取订单项

func (*OrderRepImpl) GetOrderItemDtoBySnapshotId

func (o *OrderRepImpl) GetOrderItemDtoBySnapshotId(orderId int64, snapshotId int32) *dto.OrderItem

根据商品快照获取订单项数据传输对象

func (*OrderRepImpl) GetOrderPromotionBinds

func (o *OrderRepImpl) GetOrderPromotionBinds(orderNo string) []*order.OrderPromotionBind

获取订单的促销绑定

func (*OrderRepImpl) GetSubOrder

func (o *OrderRepImpl) GetSubOrder(id int64) *order.NormalSubOrder

获取子订单

func (*OrderRepImpl) GetSubOrderByOrderNo

func (o *OrderRepImpl) GetSubOrderByOrderNo(orderNo string) order.ISubOrder

func (*OrderRepImpl) GetSubOrderItems

func (o *OrderRepImpl) GetSubOrderItems(orderId int64) []*order.SubOrderItem

获取订单项

func (*OrderRepImpl) GetSubOrderLogs

func (o *OrderRepImpl) GetSubOrderLogs(orderId int64) []*order.OrderLog

获取订单的操作记录

func (*OrderRepImpl) GetTradeOrder

func (o *OrderRepImpl) GetTradeOrder(where string, v ...interface{}) *order.TradeOrder

Get OrderTradeOrder

func (*OrderRepImpl) GetWholesaleOrder

func (o *OrderRepImpl) GetWholesaleOrder(where string, v ...interface{}) *order.WholesaleOrder

Get WholesaleOrder

func (*OrderRepImpl) Manager

func (o *OrderRepImpl) Manager() order.IOrderManager

func (*OrderRepImpl) SaveNormalOrder

func (o *OrderRepImpl) SaveNormalOrder(v *order.NormalOrder) (int, error)

func (*OrderRepImpl) SaveNormalSubOrderLog

func (o *OrderRepImpl) SaveNormalSubOrderLog(v *order.OrderLog) error

保存订单日志

func (*OrderRepImpl) SaveOrder

func (o *OrderRepImpl) SaveOrder(v *order.Order) (int, error)

Save OrderList

func (*OrderRepImpl) SaveOrderCouponBind

func (o *OrderRepImpl) SaveOrderCouponBind(val *order.OrderCoupon) error

保存订单优惠券绑定

func (*OrderRepImpl) SaveOrderItem

func (o *OrderRepImpl) SaveOrderItem(subOrderId int64, v *order.SubOrderItem) (int32, error)

保存子订单的商品项,并返回编号和错误

func (*OrderRepImpl) SavePromotionBindForOrder

func (o *OrderRepImpl) SavePromotionBindForOrder(v *order.OrderPromotionBind) (int32, error)

保存订单的促销绑定

func (*OrderRepImpl) SaveSubOrder

func (o *OrderRepImpl) SaveSubOrder(v *order.NormalSubOrder) (int, error)

保存子订单

func (*OrderRepImpl) SaveTradeOrder

func (o *OrderRepImpl) SaveTradeOrder(v *order.TradeOrder) (int, error)

Save OrderTradeOrder

func (*OrderRepImpl) SaveWholesaleItem

func (o *OrderRepImpl) SaveWholesaleItem(v *order.WholesaleItem) (int, error)

Save WholesaleItem

func (*OrderRepImpl) SaveWholesaleOrder

func (o *OrderRepImpl) SaveWholesaleOrder(v *order.WholesaleOrder) (int, error)

Save WholesaleOrder

func (*OrderRepImpl) SelectWholesaleItem

func (o *OrderRepImpl) SelectWholesaleItem(where string, v ...interface{}) []*order.WholesaleItem

Select WholesaleItem

func (*OrderRepImpl) SetPaymentRepo

func (o *OrderRepImpl) SetPaymentRepo(payRepo payment.IPaymentRepo)

type RepoFactory

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

func (*RepoFactory) GetAdRepo

func (r *RepoFactory) GetAdRepo() ad.IAdRepo

func (*RepoFactory) GetAfterSalesRepo

func (r *RepoFactory) GetAfterSalesRepo() afterSales.IAfterSalesRepo

func (*RepoFactory) GetCartRepo

func (r *RepoFactory) GetCartRepo() cart.ICartRepo

func (*RepoFactory) GetCategoryRepo

func (r *RepoFactory) GetCategoryRepo() product.ICategoryRepo

func (*RepoFactory) GetContentRepo

func (r *RepoFactory) GetContentRepo() content.IArchiveRepo

func (*RepoFactory) GetDeliveryRepo

func (r *RepoFactory) GetDeliveryRepo() delivery.IDeliveryRepo

func (*RepoFactory) GetExpressRepo

func (r *RepoFactory) GetExpressRepo() express.IExpressRepo

func (*RepoFactory) GetItemRepo

func (r *RepoFactory) GetItemRepo() item.IGoodsItemRepo

func (*RepoFactory) GetItemWholesaleRepo

func (r *RepoFactory) GetItemWholesaleRepo() item.IItemWholesaleRepo

func (*RepoFactory) GetMemberRepo

func (r *RepoFactory) GetMemberRepo() member.IMemberRepo

func (*RepoFactory) GetMerchantRepo

func (r *RepoFactory) GetMerchantRepo() merchant.IMerchantRepo

func (*RepoFactory) GetMssRepo

func (r *RepoFactory) GetMssRepo() mss.IMssRepo

func (*RepoFactory) GetNotifyRepo

func (r *RepoFactory) GetNotifyRepo() notify.INotifyRepo

func (*RepoFactory) GetOrderRepo

func (r *RepoFactory) GetOrderRepo() order.IOrderRepo

func (*RepoFactory) GetOrm

func (r *RepoFactory) GetOrm() orm.Orm

func (*RepoFactory) GetPaymentRepo

func (r *RepoFactory) GetPaymentRepo() payment.IPaymentRepo

func (*RepoFactory) GetPersonFinanceRepository

func (r *RepoFactory) GetPersonFinanceRepository() personfinance.IPersonFinanceRepository

func (*RepoFactory) GetProModelRepo

func (r *RepoFactory) GetProModelRepo() promodel.IProductModelRepo

func (*RepoFactory) GetProductRepo

func (r *RepoFactory) GetProductRepo() product.IProductRepo

func (*RepoFactory) GetPromotionRepo

func (r *RepoFactory) GetPromotionRepo() promotion.IPromotionRepo

func (*RepoFactory) GetRegistryRepo

func (r *RepoFactory) GetRegistryRepo() registry.IRegistryRepo

func (*RepoFactory) GetSaleLabelRepo

func (r *RepoFactory) GetSaleLabelRepo() item.ISaleLabelRepo

func (*RepoFactory) GetShipmentRepo

func (r *RepoFactory) GetShipmentRepo() shipment.IShipmentRepo

func (*RepoFactory) GetShopRepo

func (r *RepoFactory) GetShopRepo() shop.IShopRepo

func (*RepoFactory) GetUserRepo

func (r *RepoFactory) GetUserRepo() user.IUserRepo

func (*RepoFactory) GetValueRepo

func (r *RepoFactory) GetValueRepo() valueobject.IValueRepo

func (*RepoFactory) GetWalletRepo

func (r *RepoFactory) GetWalletRepo() wallet.IWalletRepo

func (*RepoFactory) GetWholesaleRepo

func (r *RepoFactory) GetWholesaleRepo() wholesaler.IWholesaleRepo

func (*RepoFactory) Init

func (r *RepoFactory) Init(o orm.Orm, sto storage.Interface) *RepoFactory

type WalletRepoImpl

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

func (*WalletRepoImpl) BatchDeleteWalletLog_

func (w *WalletRepoImpl) BatchDeleteWalletLog_(where string, v ...interface{}) (int64, error)

Batch Delete WalletLog

func (*WalletRepoImpl) BatchDeleteWallet_

func (w *WalletRepoImpl) BatchDeleteWallet_(where string, v ...interface{}) (int64, error)

Batch Delete Wallet

func (*WalletRepoImpl) CheckWalletUserMatch

func (w *WalletRepoImpl) CheckWalletUserMatch(userId int64, walletType int, walletId int64) bool

func (*WalletRepoImpl) CreateWallet

func (w *WalletRepoImpl) CreateWallet(userId int64,
	userName string, walletType int,
	walletName string, flag int) wallet.IWallet

func (*WalletRepoImpl) DeleteWalletLog_

func (w *WalletRepoImpl) DeleteWalletLog_(primary interface{}) error

Delete WalletLog

func (*WalletRepoImpl) DeleteWallet_

func (w *WalletRepoImpl) DeleteWallet_(primary interface{}) error

Delete Wallet

func (*WalletRepoImpl) GetLog

func (w *WalletRepoImpl) GetLog(walletId int64, logId int64) *wallet.WalletLog

func (*WalletRepoImpl) GetWallet

func (w *WalletRepoImpl) GetWallet(walletId int64) wallet.IWallet

func (*WalletRepoImpl) GetWalletByCode

func (w *WalletRepoImpl) GetWalletByCode(code string) wallet.IWallet

func (*WalletRepoImpl) GetWalletByUserId

func (w *WalletRepoImpl) GetWalletByUserId(userId int64, walletType int) wallet.IWallet

func (*WalletRepoImpl) GetWalletBy_

func (w *WalletRepoImpl) GetWalletBy_(where string, v ...interface{}) *wallet.Wallet

GetBy Wallet

func (*WalletRepoImpl) GetWalletLogBy_

func (w *WalletRepoImpl) GetWalletLogBy_(where string, v ...interface{}) *wallet.WalletLog

GetWalletLogBy_ GetBy WalletLog

func (*WalletRepoImpl) GetWalletLog_

func (w *WalletRepoImpl) GetWalletLog_(primary interface{}) *wallet.WalletLog

GetWalletLog_ Get WalletLog

func (*WalletRepoImpl) PagingWalletLog

func (w *WalletRepoImpl) PagingWalletLog(walletId int64, nodeId int, begin int, over int, where string, sort string) (total int, list []*wallet.WalletLog)

func (*WalletRepoImpl) SaveWalletLog_

func (w *WalletRepoImpl) SaveWalletLog_(v *wallet.WalletLog) (int, error)

SaveWalletLog_ Save WalletLog

func (*WalletRepoImpl) SaveWallet_

func (w *WalletRepoImpl) SaveWallet_(v *wallet.Wallet) (int, error)

Save Wallet

func (*WalletRepoImpl) SelectWalletLog_

func (w *WalletRepoImpl) SelectWalletLog_(where string, v ...interface{}) []*wallet.WalletLog

SelectWalletLog_ Select WalletLog

func (*WalletRepoImpl) SelectWallet_

func (w *WalletRepoImpl) SelectWallet_(where string, v ...interface{}) []*wallet.Wallet

Select Wallet

Jump to

Keyboard shortcuts

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