Documentation
¶
Index ¶
- Constants
- type CardItemService
- func (service CardItemService) AddOrdersGoodsCardItem(DB *gorm.DB, orders model.Orders, OrdersGoodse []model.OrdersGoods) error
- func (service CardItemService) AddScoreGoodsItem(DB *gorm.DB, UserID, ScoreGoodsID dao.PrimaryKey) error
- func (service CardItemService) AddVoucherCardItem(DB *gorm.DB, OrderNo string, UserID, VoucherID dao.PrimaryKey) error
- func (service CardItemService) CancelOrdersGoodsCardItem(DB *gorm.DB, UserID dao.PrimaryKey, ogs []dao.IEntity) error
- func (service CardItemService) FindByUserID(UserID dao.PrimaryKey) []model.CardItem
- func (service CardItemService) ListNewCount(UserID dao.PrimaryKey) (TotalRecords int64)
- type CollageService
- func (service CollageService) AddCollageRecord(OrderNo, OrdersGoodsNo, No string, UserID dao.PrimaryKey) error
- func (service CollageService) DeleteCollage(TimeSellID dao.PrimaryKey) error
- func (service CollageService) FindCollageRecordByUserIDAndNo(UserID dao.PrimaryKey, No string) model.CollageRecord
- func (service CollageService) GetCollageByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) model.Collage
- func (service CollageService) GetCollageByHash(Hash string, OID dao.PrimaryKey) *model.Collage
- func (service CollageService) GetCollageGoodsByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) model.CollageGoods
- func (service CollageService) GetItemByHash(Hash string) model.Collage
- type FullCutService
- type GiveVoucherService
- type RankService
- type ScoreGoodsService
- type SettlementService
- type TimeSellService
- func (service TimeSellService) DeleteTimeSell(TimeSellID dao.PrimaryKey) error
- func (service TimeSellService) GetTimeSellByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) *model.TimeSell
- func (service TimeSellService) GetTimeSellByHash(Hash string, OID dao.PrimaryKey) *model.TimeSell
- func (service TimeSellService) GetTimeSellGoodsByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) model.TimeSellGoods
- type VoucherService
Constants ¶
View Source
const ( //OrdersGoods,Voucher,ScoreGoods CardItem_Type_OrdersGoods = "OrdersGoods" CardItem_Type_Voucher = "Voucher" CardItem_Type_ScoreGoods = "ScoreGoods" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardItemService ¶
type CardItemService struct { model.BaseDao Voucher VoucherService }
func (CardItemService) AddOrdersGoodsCardItem ¶
func (service CardItemService) AddOrdersGoodsCardItem(DB *gorm.DB, orders model.Orders, OrdersGoodse []model.OrdersGoods) error
func (CardItemService) AddScoreGoodsItem ¶
func (service CardItemService) AddScoreGoodsItem(DB *gorm.DB, UserID, ScoreGoodsID dao.PrimaryKey) error
添加Voucher
func (CardItemService) AddVoucherCardItem ¶
func (service CardItemService) AddVoucherCardItem(DB *gorm.DB, OrderNo string, UserID, VoucherID dao.PrimaryKey) error
添加Voucher
func (CardItemService) CancelOrdersGoodsCardItem ¶
func (service CardItemService) CancelOrdersGoodsCardItem(DB *gorm.DB, UserID dao.PrimaryKey, ogs []dao.IEntity) error
func (CardItemService) FindByUserID ¶
func (service CardItemService) FindByUserID(UserID dao.PrimaryKey) []model.CardItem
func (CardItemService) ListNewCount ¶
func (service CardItemService) ListNewCount(UserID dao.PrimaryKey) (TotalRecords int64)
type CollageService ¶
func (CollageService) AddCollageRecord ¶
func (service CollageService) AddCollageRecord(OrderNo, OrdersGoodsNo, No string, UserID dao.PrimaryKey) error
func (CollageService) DeleteCollage ¶
func (service CollageService) DeleteCollage(TimeSellID dao.PrimaryKey) error
func (CollageService) FindCollageRecordByUserIDAndNo ¶
func (service CollageService) FindCollageRecordByUserIDAndNo(UserID dao.PrimaryKey, No string) model.CollageRecord
func (CollageService) GetCollageByGoodsID ¶
func (service CollageService) GetCollageByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) model.Collage
func (CollageService) GetCollageByHash ¶
func (service CollageService) GetCollageByHash(Hash string, OID dao.PrimaryKey) *model.Collage
func (CollageService) GetCollageGoodsByGoodsID ¶
func (service CollageService) GetCollageGoodsByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) model.CollageGoods
func (CollageService) GetItemByHash ¶
func (service CollageService) GetItemByHash(Hash string) model.Collage
type FullCutService ¶
func (FullCutService) FindOrderByAmountASC ¶
func (service FullCutService) FindOrderByAmountASC(DB *gorm.DB, OID dao.PrimaryKey) []model.FullCut
func (FullCutService) FindOrderByAmountDesc ¶
func (service FullCutService) FindOrderByAmountDesc(DB *gorm.DB, OID dao.PrimaryKey) []model.FullCut
type GiveVoucherService ¶
func (GiveVoucherService) AddItem ¶
func (service GiveVoucherService) AddItem(item model.GiveVoucher) error
func (GiveVoucherService) FindASC ¶
func (service GiveVoucherService) FindASC() []model.GiveVoucher
func (GiveVoucherService) FindDESC ¶
func (service GiveVoucherService) FindDESC() []model.GiveVoucher
func (GiveVoucherService) SaveItem ¶
func (service GiveVoucherService) SaveItem(item model.GiveVoucher) error
type RankService ¶
func (RankService) FindDESC ¶
func (service RankService) FindDESC() []model.Rank
type ScoreGoodsService ¶
type ScoreGoodsService struct { model.BaseDao //User user.UserService Journal journal.JournalService CardItem CardItemService }
func (ScoreGoodsService) Exchange ¶
func (service ScoreGoodsService) Exchange(user *model.User, ScoreGoodsID dao.PrimaryKey) error
func (ScoreGoodsService) ListScoreGoods ¶
func (service ScoreGoodsService) ListScoreGoods() []dao.IEntity
func (ScoreGoodsService) Situation ¶
func (service ScoreGoodsService) Situation(StartTime, EndTime int64) interface{}
type SettlementService ¶
type SettlementService struct { model.BaseDao Configuration configuration.ConfigurationService Journal journal.JournalService GiveVoucher GiveVoucherService CardItem CardItemService Wx wechat.WxService MessageNotify wechat.MessageNotify User user.UserService }
func (SettlementService) SettlementUser ¶
func (service SettlementService) SettlementUser(Orm *gorm.DB, ordersGoodsList []*model.OrdersGoods, orders *model.Orders) error
SettlementUser 结算佣金,结算积分,结算成长值,是否送福利卷
type TimeSellService ¶
func (TimeSellService) DeleteTimeSell ¶
func (service TimeSellService) DeleteTimeSell(TimeSellID dao.PrimaryKey) error
func (TimeSellService) GetTimeSellByGoodsID ¶
func (service TimeSellService) GetTimeSellByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) *model.TimeSell
func (TimeSellService) GetTimeSellByHash ¶
func (service TimeSellService) GetTimeSellByHash(Hash string, OID dao.PrimaryKey) *model.TimeSell
func (TimeSellService) GetTimeSellGoodsByGoodsID ¶
func (service TimeSellService) GetTimeSellGoodsByGoodsID(GoodsID dao.PrimaryKey, OID dao.PrimaryKey) model.TimeSellGoods
type VoucherService ¶
func (VoucherService) Situation ¶
func (service VoucherService) Situation(StartTime, EndTime int64) interface{}
Click to show internal directories.
Click to hide internal directories.