transaction

package
v0.0.0-...-5c42bcd Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatTicketService

type ChatTicketService struct {
}

func (*ChatTicketService) CreateChatTicket

func (chatTicketService *ChatTicketService) CreateChatTicket(chatTicket *transaction.ChatTicket) (err error)

CreateChatTicket 创建ChatTicket记录

func (*ChatTicketService) DeleteChatTicket

func (chatTicketService *ChatTicketService) DeleteChatTicket(chatTicket transaction.ChatTicket) (err error)

DeleteChatTicket 删除ChatTicket记录

func (*ChatTicketService) DeleteChatTicketByIds

func (chatTicketService *ChatTicketService) DeleteChatTicketByIds(ids request.IdsReq, deleted_by uint) (err error)

DeleteChatTicketByIds 批量删除ChatTicket记录

func (*ChatTicketService) GetChatTicket

func (chatTicketService *ChatTicketService) GetChatTicket(id uint) (chatTicket transaction.ChatTicket, err error)

GetChatTicket 根据id获取ChatTicket记录

func (*ChatTicketService) GetChatTicketInfoList

func (chatTicketService *ChatTicketService) GetChatTicketInfoList(info openfishReq.ChatTicketSearch) (list []transaction.ChatTicket, total int64, err error)

GetChatTicketInfoList 分页获取ChatTicket记录

func (*ChatTicketService) HandleCheckIn

func (chatTicketService *ChatTicketService) HandleCheckIn(wallets *transaction.Wallets) (err error)

func (*ChatTicketService) HandleValidateChatTicket

func (chatTicketService *ChatTicketService) HandleValidateChatTicket(ticketValue string, wallets *transaction.Wallets) (err error)

HandleValidateChatTicket 验证鱼币兑换码

func (*ChatTicketService) UpdateChatTicket

func (chatTicketService *ChatTicketService) UpdateChatTicket(chatTicket transaction.ChatTicket) (err error)

UpdateChatTicket 更新ChatTicket记录

type HistoryService

type HistoryService struct {
}

func (*HistoryService) CreateTransactionHistory

func (historyService *HistoryService) CreateTransactionHistory(transactionHistory *transaction.TransactionHistory) (err error)

CreateTransactionHistory 创建TransactionHistory记录

func (*HistoryService) DeleteTransactionHistory

func (historyService *HistoryService) DeleteTransactionHistory(transactionHistory transaction.TransactionHistory) (err error)

DeleteTransactionHistory 删除TransactionHistory记录

func (*HistoryService) DeleteTransactionHistoryByIds

func (historyService *HistoryService) DeleteTransactionHistoryByIds(ids request.IdsReq, deletedBy uint) (err error)

DeleteTransactionHistoryByIds 批量删除TransactionHistory记录

func (*HistoryService) GetTodayTransactionHistoryByCurrentUser

func (historyService *HistoryService) GetTodayTransactionHistoryByCurrentUser(userId uint) (count int64, err error)

func (*HistoryService) GetTransactionHistory

func (historyService *HistoryService) GetTransactionHistory(id uint) (transactionHistory transaction.TransactionHistory, err error)

GetTransactionHistory 根据id获取TransactionHistory记录

func (*HistoryService) GetTransactionHistoryInfoList

func (historyService *HistoryService) GetTransactionHistoryInfoList(info openfishReq.TransactionHistorySearch) (list []transaction.TransactionHistory, total int64, err error)

GetTransactionHistoryInfoList 分页获取TransactionHistory记录

func (*HistoryService) UpdateTransactionHistory

func (historyService *HistoryService) UpdateTransactionHistory(transactionHistory transaction.TransactionHistory) (err error)

UpdateTransactionHistory 更新TransactionHistory记录

type ProductService

type ProductService struct {
}

func (*ProductService) CreateProduct

func (productService *ProductService) CreateProduct(product *transaction.Product) (err error)

CreateProduct 创建Product记录

func (*ProductService) DeleteProduct

func (productService *ProductService) DeleteProduct(product transaction.Product) (err error)

DeleteProduct 删除Product记录

func (*ProductService) DeleteProductByIds

func (productService *ProductService) DeleteProductByIds(ids request.IdsReq) (err error)

DeleteProductByIds 批量删除Product记录

func (*ProductService) GetProduct

func (productService *ProductService) GetProduct(id uint) (product transaction.Product, err error)

GetProduct 根据id获取Product记录

func (*ProductService) GetProductInfoList

func (productService *ProductService) GetProductInfoList(info openfishReq.ProductSearch) (list []transaction.Product, total int64, err error)

GetProductInfoList 分页获取Product记录

func (*ProductService) UpdateProduct

func (productService *ProductService) UpdateProduct(product transaction.Product) (err error)

UpdateProduct 更新Product记录

type RedeemService

type RedeemService struct {
}

func (*RedeemService) CheckRedeemCode

func (redeemService *RedeemService) CheckRedeemCode(code string, userId uint) (redeemCode transaction.RedeemCode, err error)

CheckRedeemCode 检查兑换码是否有效

func (*RedeemService) GenerateRedeemCode

func (redeemService *RedeemService) GenerateRedeemCode(req request.RedeemCodeRequest) (err error)

GenerateRedeemCode 生成兑换码

func (*RedeemService) GetRedeemCodeList

func (redeemService *RedeemService) GetRedeemCodeList(info request.RedeemCodeSearch) (list []transaction.RedeemCode, total int64, err error)

GetRedeemCodeList 获取兑换码列表

func (*RedeemService) RedeemFishCoin

func (redeemService *RedeemService) RedeemFishCoin(redeemCode *transaction.RedeemCode, wallets *transaction.Wallets) (err error)

RedeemFishCoin 兑换鱼币

type SubscribeService

type SubscribeService struct {
}

func (*SubscribeService) RenewalSubscription

func (subscribeService *SubscribeService) RenewalSubscription(userPlan *transaction.SubscriptionUser, plan *transaction.SubscriptionPlan) (err error)

RenewalSubscription 续费订阅

type SubscriptionPlanService

type SubscriptionPlanService struct {
}

func (*SubscriptionPlanService) CreateSubscriptionPlan

func (subscriptionPlanService *SubscriptionPlanService) CreateSubscriptionPlan(subscriptionPlan *transaction.SubscriptionPlan) (err error)

CreateSubscriptionPlan 创建SubscriptionPlan记录

func (*SubscriptionPlanService) DeleteSubscriptionPlan

func (subscriptionPlanService *SubscriptionPlanService) DeleteSubscriptionPlan(subscriptionPlan transaction.SubscriptionPlan) (err error)

DeleteSubscriptionPlan 删除SubscriptionPlan记录

func (*SubscriptionPlanService) DeleteSubscriptionPlanByIds

func (subscriptionPlanService *SubscriptionPlanService) DeleteSubscriptionPlanByIds(ids request.IdsReq) (err error)

DeleteSubscriptionPlanByIds 批量删除SubscriptionPlan记录

func (*SubscriptionPlanService) GetCurrentSubscriptionPlan

func (subscriptionPlanService *SubscriptionPlanService) GetCurrentSubscriptionPlan(id, planId uint) (subscriptionUser transaction.SubscriptionUser, err error)

GetCurrentSubscriptionPlan 查询当前用户订阅计划

func (*SubscriptionPlanService) GetSubscriptionPlan

func (subscriptionPlanService *SubscriptionPlanService) GetSubscriptionPlan(id uint) (subscriptionPlan transaction.SubscriptionPlan, err error)

GetSubscriptionPlan 根据id获取SubscriptionPlan记录

func (*SubscriptionPlanService) GetSubscriptionPlanByTag

func (subscriptionPlanService *SubscriptionPlanService) GetSubscriptionPlanByTag(tag uint) (subscriptionPlan []transaction.SubscriptionPlan, err error)

GetSubscriptionPlanByTag 根据tag获取SubscriptionPlan记录

func (*SubscriptionPlanService) GetSubscriptionPlanInfoList

func (subscriptionPlanService *SubscriptionPlanService) GetSubscriptionPlanInfoList(info transactionRequest.SubscriptionPlanSearch) (list []transaction.SubscriptionPlan, total int64, err error)

GetSubscriptionPlanInfoList 分页获取SubscriptionPlan记录

func (*SubscriptionPlanService) UpdateSubscriptionPlan

func (subscriptionPlanService *SubscriptionPlanService) UpdateSubscriptionPlan(subscriptionPlan transaction.SubscriptionPlan) (err error)

UpdateSubscriptionPlan 更新SubscriptionPlan记录

type WalletsService

type WalletsService struct {
}

func (*WalletsService) CreateWallets

func (walletsService *WalletsService) CreateWallets(wallets *transaction.Wallets) (err error)

CreateWallets 创建Wallets记录

func (*WalletsService) DeleteWallets

func (walletsService *WalletsService) DeleteWallets(wallets transaction.Wallets) (err error)

DeleteWallets 删除Wallets记录

func (*WalletsService) DeleteWalletsByIds

func (walletsService *WalletsService) DeleteWalletsByIds(ids request.IdsReq) (err error)

DeleteWalletsByIds 批量删除Wallets记录

func (*WalletsService) GetCurrentUserWallets

func (walletsService *WalletsService) GetCurrentUserWallets(userId uint) (wallets transaction.Wallets, err error)

GetCurrentUserWallets 获取当前用户钱包

func (*WalletsService) GetWallets

func (walletsService *WalletsService) GetWallets(id uint) (wallets transaction.Wallets, err error)

GetWallets 根据id获取Wallets记录

func (*WalletsService) GetWalletsInfoList

func (walletsService *WalletsService) GetWalletsInfoList(info openfishReq.WalletsSearch) (list []transaction.Wallets, total int64, err error)

GetWalletsInfoList 分页获取Wallets记录

func (*WalletsService) UpdateWallets

func (walletsService *WalletsService) UpdateWallets(wallets transaction.Wallets) (err error)

UpdateWallets 更新Wallets记录

Jump to

Keyboard shortcuts

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