Documentation ¶
Index ¶
- type AnalyseOrdersGoods
- type CollageRecord
- type OrdersService
- func (service OrdersService) AddCartOrders(UserID uint64, GoodsID, SpecificationID uint64, Quantity uint) error
- func (service OrdersService) AddCartOrdersByShoppingCartIDs(Session *gweb.Session, UserID uint64, IDs []uint64) error
- func (service OrdersService) AddOrders(orders *dao.Orders, list []dao.OrdersGoodsInfo) error
- func (service OrdersService) AddOrdersPackage(TotalMoney uint64, UserID uint64) (error, dao.OrdersPackage)
- func (service OrdersService) AfterSettlementUserBrokerage(tx *gorm.DB, orders dao.Orders) error
- func (service OrdersService) AnalyseOrdersGoodsList(UserID uint64, addressee dao.Address, PostType int, AllList []dao.OrdersGoods) (error, []AnalyseOrdersGoods, uint64)
- func (service OrdersService) AnalysisOrdersStatus(OrdersID uint64)
- func (service OrdersService) AskRefund(OrdersGoodsID uint64, RefundInfo dao.RefundInfo) (error, string)
- func (service OrdersService) BuyCollageOrders(Session *gweb.Session, UserID, GoodsID, SpecificationID uint64, Quantity uint) error
- func (service OrdersService) BuyOrders(Session *gweb.Session, UserID, GoodsID, SpecificationID uint64, Quantity uint) error
- func (service OrdersService) Cancel(OrdersID uint64) (error, string)
- func (service OrdersService) CancelOk(OrdersID, Type uint64) (error, string)
- func (service OrdersService) ChangeOrdersPayMoney(PayMoney float64, OrdersID uint64) (Success result.ActionResultCode, Message string)
- func (service OrdersService) Deliver(ShipName, ShipNo string, OrdersID uint64) error
- func (service OrdersService) FindOrdersGoodsByCollageUser(CollageNo string) []dao.User
- func (service OrdersService) FindOrdersGoodsByOrdersID(DB *gorm.DB, OrdersID uint64) ([]dao.OrdersGoods, error)
- func (service OrdersService) FirstSettlementUserBrokerage(tx *gorm.DB, orders dao.Orders) error
- func (service OrdersService) GetOrdersByID(ID uint64) dao.Orders
- func (service OrdersService) GetOrdersByOrderNo(OrderNo string) dao.Orders
- func (service OrdersService) GetOrdersByOrdersPackageNo(OrdersPackageNo string) []dao.Orders
- func (service OrdersService) GetOrdersPackageByOrderNo(OrderNo string) dao.OrdersPackage
- func (service OrdersService) GetSupplyOrdersByOrderNo(OrderNo string) dao.SupplyOrders
- func (service OrdersService) ListCollageRecord(UserID uint64, Index int) []CollageRecord
- func (service OrdersService) ListOrders(UserID, OID uint64, PostType int, Status []string, Limit int, Offset int) (List []interface{}, TotalRecords int)
- func (service OrdersService) ListOrdersStatusCount(UserID uint64, Status []string) (TotalRecords int)
- func (service OrdersService) MinusSettlementUserBrokerage(tx *gorm.DB, orders dao.Orders) error
- func (service OrdersService) OrderNotify(total_fee uint64, out_trade_no, pay_time, attach string) (Success bool, Message string)
- func (service OrdersService) OrdersStockManager(orders dao.Orders, isMinus bool)
- func (service OrdersService) ProcessingOrders(tx *gorm.DB, orders dao.Orders, pay_time string) (Success bool, Message string)
- func (service OrdersService) RefundComplete(OrdersGoodsID, RefundType uint64) (error, string)
- func (service OrdersService) RefundInfo(OrdersGoodsID uint64, ShipName, ShipNo string) (error, string)
- func (service OrdersService) RefundNo(OrdersGoodsID uint64) (error, string)
- func (service OrdersService) RefundOk(OrdersGoodsID uint64) (error, string)
- func (service OrdersService) Situation(StartTime, EndTime int64) interface{}
- func (service OrdersService) TakeDeliver(OrdersID uint64) (error, string)
- type ShoppingCartService
- func (service ShoppingCartService) DeleteByUserIDAndGoodsIDAndSpecificationID(UserID, GoodsID, SpecificationID uint64) error
- func (service ShoppingCartService) DeleteListByIDs(UserID uint64, IDs []uint64) error
- func (service ShoppingCartService) FindShoppingCartByUserID(UserID uint64) []dao.ShoppingCart
- func (service ShoppingCartService) FindShoppingCartListDetails(UserID uint64) (error, []AnalyseOrdersGoods, uint64)
- func (service ShoppingCartService) GetGSID(UserID uint64, GSID uint64) dao.ShoppingCart
- func (service ShoppingCartService) GetGSIDs(UserID uint64, GSIDs []uint64) []dao.ShoppingCart
- func (service ShoppingCartService) UpdateByUserIDAndID(UserID uint64, GSID uint64, Quantity uint) error
- type TransfersService
- type VerificationService
- func (service VerificationService) GetVerificationByVerificationNo(VerificationNo string) dao.Verification
- func (service VerificationService) VerificationCardItem(DB *gorm.DB, VerificationNo string, Quantity uint, user *dao.User, ...) error
- func (service VerificationService) VerificationSelf(StoreID, StoreStockID, Quantity uint64) *result.ActionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyseOrdersGoods ¶
type CollageRecord ¶
type CollageRecord struct { OrdersID uint64 `gorm:"column:OrdersID"` No string `gorm:"column:No"` UserID uint64 `gorm:"column:UserID"` Collager uint64 `gorm:"column:Collager"` Favoured string `gorm:"column:Favoured"` Goods string `gorm:"column:Goods"` Specification string `gorm:"column:Specification"` Status string `gorm:"column:Status"` IsPay uint64 `gorm:"column:IsPay"` Quantity uint64 `gorm:"column:Quantity"` CreatedAt time.Time `gorm:"column:CreatedAt"` COUNT uint64 `gorm:"column:COUNT"` IsPaySUM uint64 `gorm:"column:SUM"` }
type OrdersService ¶
type OrdersService struct { dao.BaseDao Goods goods.GoodsService ShoppingCart ShoppingCartService TimeSell activity.TimeSellService Collage activity.CollageService Settlement activity.SettlementService ExpressTemplate express.ExpressTemplateService FullCut activity.FullCutService Wx wechat.WxService Journal journal.JournalService CardItem activity.CardItemService Organization company.OrganizationService Configuration configuration.ConfigurationService User user.UserService }
func (OrdersService) AddCartOrders ¶
func (service OrdersService) AddCartOrders(UserID uint64, GoodsID, SpecificationID uint64, Quantity uint) error
func (OrdersService) AddCartOrdersByShoppingCartIDs ¶
func (service OrdersService) AddCartOrdersByShoppingCartIDs(Session *gweb.Session, UserID uint64, IDs []uint64) error
从购买车提交的订单,通过 ShoppingCart ID,生成 OrdersGoods 列表,添加到 play.SessionConfirmOrders
func (OrdersService) AddOrders ¶
func (service OrdersService) AddOrders(orders *dao.Orders, list []dao.OrdersGoodsInfo) error
func (OrdersService) AddOrdersPackage ¶
func (service OrdersService) AddOrdersPackage(TotalMoney uint64, UserID uint64) (error, dao.OrdersPackage)
func (service OrdersService) AddOrderBrokerageTemp(UserID uint64, OrderNo string, Amount int64) error { var orderbrokerage dao.OrderBrokerageTemp orderbrokerage.OrderNo = OrderNo orderbrokerage.Brokerage = uint64(Amount) orderbrokerage.UserID = UserID err := service.Add(dao.Orm(), &orderbrokerage) return err }
func (OrdersService) AfterSettlementUserBrokerage ¶
如果订单未完成,或是退款,扣除相应的冻结金额,不用结算,佣金
func (OrdersService) AnalyseOrdersGoodsList ¶
func (service OrdersService) AnalyseOrdersGoodsList(UserID uint64, addressee dao.Address, PostType int, AllList []dao.OrdersGoods) (error, []AnalyseOrdersGoods, uint64)
订单分析,
func (OrdersService) AnalysisOrdersStatus ¶
func (service OrdersService) AnalysisOrdersStatus(OrdersID uint64)
检查订单状态
func (OrdersService) AskRefund ¶
func (service OrdersService) AskRefund(OrdersGoodsID uint64, RefundInfo dao.RefundInfo) (error, string)
func (OrdersService) BuyCollageOrders ¶
func (service OrdersService) BuyCollageOrders(Session *gweb.Session, UserID, GoodsID, SpecificationID uint64, Quantity uint) error
拼单购买
func (OrdersService) BuyOrders ¶
func (service OrdersService) BuyOrders(Session *gweb.Session, UserID, GoodsID, SpecificationID uint64, Quantity uint) error
从商品外直接购买,生成OrdersGoods,添加到 play.SessionConfirmOrders
func (OrdersService) Cancel ¶
func (service OrdersService) Cancel(OrdersID uint64) (error, string)
申请取消
func (OrdersService) CancelOk ¶
func (service OrdersService) CancelOk(OrdersID, Type uint64) (error, string)
func (OrdersService) ChangeOrdersPayMoney ¶
func (service OrdersService) ChangeOrdersPayMoney(PayMoney float64, OrdersID uint64) (Success result.ActionResultCode, Message string)
func (OrdersService) Deliver ¶
func (service OrdersService) Deliver(ShipName, ShipNo string, OrdersID uint64) error
发货
func (OrdersService) FindOrdersGoodsByCollageUser ¶
func (service OrdersService) FindOrdersGoodsByCollageUser(CollageNo string) []dao.User
func (OrdersService) FindOrdersGoodsByOrdersID ¶
func (service OrdersService) FindOrdersGoodsByOrdersID(DB *gorm.DB, OrdersID uint64) ([]dao.OrdersGoods, error)
func (OrdersService) FirstSettlementUserBrokerage ¶
func (OrdersService) GetOrdersByID ¶
func (service OrdersService) GetOrdersByID(ID uint64) dao.Orders
func (OrdersService) GetOrdersByOrderNo ¶
func (service OrdersService) GetOrdersByOrderNo(OrderNo string) dao.Orders
func (OrdersService) GetOrdersByOrdersPackageNo ¶
func (service OrdersService) GetOrdersByOrdersPackageNo(OrdersPackageNo string) []dao.Orders
func (OrdersService) GetOrdersPackageByOrderNo ¶
func (service OrdersService) GetOrdersPackageByOrderNo(OrderNo string) dao.OrdersPackage
func (OrdersService) GetSupplyOrdersByOrderNo ¶
func (service OrdersService) GetSupplyOrdersByOrderNo(OrderNo string) dao.SupplyOrders
func (OrdersService) ListCollageRecord ¶
func (service OrdersService) ListCollageRecord(UserID uint64, Index int) []CollageRecord
func (OrdersService) ListOrders ¶
func (OrdersService) ListOrdersStatusCount ¶
func (service OrdersService) ListOrdersStatusCount(UserID uint64, Status []string) (TotalRecords int)
func (OrdersService) MinusSettlementUserBrokerage ¶
func (OrdersService) OrderNotify ¶
func (service OrdersService) OrderNotify(total_fee uint64, out_trade_no, pay_time, attach string) (Success bool, Message string)
func (service OrdersService) OrderNotify(result util.Map) (Success bool, Message string) {
func (OrdersService) OrdersStockManager ¶
func (service OrdersService) OrdersStockManager(orders dao.Orders, isMinus bool)
func (OrdersService) ProcessingOrders ¶
func (OrdersService) RefundComplete ¶
func (service OrdersService) RefundComplete(OrdersGoodsID, RefundType uint64) (error, string)
func (OrdersService) RefundInfo ¶
func (service OrdersService) RefundInfo(OrdersGoodsID uint64, ShipName, ShipNo string) (error, string)
func (OrdersService) RefundNo ¶
func (service OrdersService) RefundNo(OrdersGoodsID uint64) (error, string)
func (OrdersService) RefundOk ¶
func (service OrdersService) RefundOk(OrdersGoodsID uint64) (error, string)
func (OrdersService) Situation ¶
func (service OrdersService) Situation(StartTime, EndTime int64) interface{}
func (OrdersService) TakeDeliver ¶
func (service OrdersService) TakeDeliver(OrdersID uint64) (error, string)
确认收货
type ShoppingCartService ¶
type ShoppingCartService struct { dao.BaseDao Goods goods.GoodsService TimeSell activity.TimeSellService Organization company.OrganizationService }
func (ShoppingCartService) DeleteByUserIDAndGoodsIDAndSpecificationID ¶
func (service ShoppingCartService) DeleteByUserIDAndGoodsIDAndSpecificationID(UserID, GoodsID, SpecificationID uint64) error
func (ShoppingCartService) DeleteListByIDs ¶
func (service ShoppingCartService) DeleteListByIDs(UserID uint64, IDs []uint64) error
func (ShoppingCartService) FindShoppingCartByUserID ¶
func (service ShoppingCartService) FindShoppingCartByUserID(UserID uint64) []dao.ShoppingCart
func (ShoppingCartService) FindShoppingCartListDetails ¶
func (service ShoppingCartService) FindShoppingCartListDetails(UserID uint64) (error, []AnalyseOrdersGoods, uint64)
func (ShoppingCartService) GetGSID ¶
func (service ShoppingCartService) GetGSID(UserID uint64, GSID uint64) dao.ShoppingCart
func (ShoppingCartService) GetGSIDs ¶
func (service ShoppingCartService) GetGSIDs(UserID uint64, GSIDs []uint64) []dao.ShoppingCart
func (ShoppingCartService) UpdateByUserIDAndID ¶
func (service ShoppingCartService) UpdateByUserIDAndID(UserID uint64, GSID uint64, Quantity uint) error
type TransfersService ¶
func (TransfersService) StoreTransfers ¶
func (service TransfersService) StoreTransfers(StoreID uint64, UserID uint64, ReUserName, IP string) error
func (TransfersService) UserTransfers ¶
func (service TransfersService) UserTransfers(UserID uint64, ReUserName, IP string) error
type VerificationService ¶
type VerificationService struct { dao.BaseDao CardItem activity.CardItemService Journal journal.JournalService Settlement activity.SettlementService Orders OrdersService ScoreGoods activity.ScoreGoodsService Voucher activity.VoucherService User user.UserService Store company.StoreService Goods goods.GoodsService }
func (VerificationService) GetVerificationByVerificationNo ¶
func (service VerificationService) GetVerificationByVerificationNo(VerificationNo string) dao.Verification
func (VerificationService) VerificationCardItem ¶
func (service VerificationService) VerificationCardItem(DB *gorm.DB, VerificationNo string, Quantity uint, user *dao.User, store *dao.Store) error
核销卡卷
func (VerificationService) VerificationSelf ¶
func (service VerificationService) VerificationSelf(StoreID, StoreStockID, Quantity uint64) *result.ActionResult
Click to show internal directories.
Click to hide internal directories.