activity

package
v0.0.0-...-ee5d464 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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

type CollageService struct {
	model.BaseDao
}

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

type FullCutService struct {
	model.BaseDao
}

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

type GiveVoucherService struct {
	model.BaseDao
}

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

type RankService struct {
	model.BaseDao
}

func (RankService) AddRank

func (service RankService) AddRank(rank model.Rank) error

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

type TimeSellService struct {
	model.BaseDao
}

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

type VoucherService struct {
	model.BaseDao
}

func (VoucherService) Situation

func (service VoucherService) Situation(StartTime, EndTime int64) interface{}

Jump to

Keyboard shortcuts

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