Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MockGiftExchangeService = newMockGiftExchangeService()
View Source
var MockInventoryService = newMockInventoryService()
View Source
var MockPointsService = newMockPointsService()
View Source
var MockShippingService = newMockShippingService()
Functions ¶
This section is empty.
Types ¶
type GiftExchangeRequest ¶
积分兑换礼品请求
type IGiftExchangeService ¶
type IGiftExchangeService interface { // 兑换礼品, 并返回物流单号 Exchange(request *GiftExchangeRequest) (error, string) }
礼品兑换服务
type IInventoryService ¶
type IInventoryService interface { GetGift(goodsID int) *GiftInfo GetStock(goodsID int) (error, int) SaveStock(goodsID int, num int) error }
库存服务
Click to show internal directories.
Click to hide internal directories.