MCPcopy Create free account

hub / github.com/TGlimmer/TG_walletbot / functions

Functions2,200 in github.com/TGlimmer/TG_walletbot

MethodListAllActive
ListAllActive 获取所有持有中的投资 (每日派息用)
internal/adapter/repository/finance_repo.go:51
MethodListAllActive
(_ context.Context)
internal/adapter/handler/mock_test.go:463
MethodListAllWithDepositAddress
(_ context.Context)
internal/infrastructure/tron/monitor_test.go:769
MethodListAllWithDepositAddress
(ctx context.Context)
internal/domain/service/mocks/mock_repos.go:130
MethodListAllWithDepositAddress
ListAllWithDepositAddress 获取所有已分配充值地址的钱包 返回去重后的钱包列表 (同一用户 USDT/TRX 共用地址,只取一条)
internal/adapter/repository/wallet_repo.go:122
MethodListAllWithDepositAddress
(_ context.Context)
internal/adapter/handler/mock_test.go:259
MethodListByMasterUserID
ListByMasterUserID 获取主账号的备用账号列表
internal/domain/port/repository.go:215
MethodListByMasterUserID
ListByMasterUserID 获取主账号的备用账号列表
internal/adapter/repository/sub_account_repo.go:42
MethodListByPacketID
(ctx context.Context, packetID uint64)
internal/domain/service/mocks/mock_repos.go:590
MethodListByPacketID
ListByPacketID 获取红包的所有领取记录
internal/adapter/repository/red_packet_repo.go:111
MethodListByPacketID
(ctx context.Context, packetID uint64)
internal/adapter/handler/mock_test.go:409
MethodListByStatus
(ctx context.Context, status int8, offset, limit int)
internal/domain/service/mocks/mock_repos.go:316
MethodListByStatus
(ctx context.Context, status int8, offset, limit int)
internal/domain/service/mocks/mock_repos.go:710
MethodListByStatus
ListByStatus 获取指定状态的提币列表 (管理后台审核用)
internal/domain/port/repository.go:109
MethodListByStatus
ListByStatus 获取指定状态的列表 (管理后台审核用)
internal/domain/port/repository.go:125
MethodListByStatus
ListByStatus 获取指定状态的商户列表 (分页)
internal/domain/port/repository.go:292
MethodListByStatus
ListByStatus 获取指定状态的商户列表 (分页)
internal/adapter/repository/merchant_repo.go:66
MethodListByStatus
ListByStatus 获取指定状态的提币列表
internal/adapter/repository/withdrawal_repo.go:58
MethodListByStatus
ListByStatus 获取指定状态的列表
internal/adapter/repository/cny_withdrawal_repo.go:56
MethodListByStatus
(_ context.Context, _ int8, _, _ int)
internal/adapter/handler/mock_test.go:315
MethodListByStatus
(_ context.Context, _ int8, _, _ int)
internal/adapter/handler/mock_test.go:444
MethodListBySubUserID
ListBySubUserID 获取备用账号关联的主账号列表
internal/domain/port/repository.go:217
MethodListBySubUserID
ListBySubUserID 获取备用账号关联的主账号列表
internal/adapter/repository/sub_account_repo.go:51
MethodListByUserID
ListByUserID 获取用户所有商户列表
internal/domain/service/merchant_service.go:87
MethodListByUserID
(ctx context.Context, userID uint64, offset, limit int)
internal/domain/service/mocks/mock_repos.go:256
MethodListByUserID
(ctx context.Context, userID uint64, filter *port.TransactionFilter, offset, limit int)
internal/domain/service/mocks/mock_repos.go:281
MethodListByUserID
(ctx context.Context, userID uint64, offset, limit int)
internal/domain/service/mocks/mock_repos.go:311
MethodListByUserID
(ctx context.Context, userID uint64, offset, limit int)
internal/domain/service/mocks/mock_repos.go:351
MethodListByUserID
(ctx context.Context, userID uint64, offset, limit int)
internal/domain/service/mocks/mock_repos.go:404
MethodListByUserID
(ctx context.Context, userID uint64, status *int8, offset, limit int)
internal/domain/service/mocks/mock_repos.go:546
MethodListByUserID
(ctx context.Context, userID uint64)
internal/domain/service/mocks/mock_repos.go:610
MethodListByUserID
(ctx context.Context, userID uint64)
internal/domain/service/mocks/mock_repos.go:684
MethodListByUserID
ListByUserID 获取用户交易列表 (分页、筛选)
internal/domain/port/repository.go:72
MethodListByUserID
ListByUserID 获取用户提币列表 (分页)
internal/domain/port/repository.go:107
MethodListByUserID
ListByUserID 获取用户提现列表 (分页)
internal/domain/port/repository.go:123
MethodListByUserID
ListByUserID 获取用户相关的转账列表 (作为发送方或接收方)
internal/domain/port/repository.go:137
MethodListByUserID
ListByUserID 获取用户闪兑列表 (分页)
internal/domain/port/repository.go:147
MethodListByUserID
ListByUserID 获取用户创建的红包列表
internal/domain/port/repository.go:169
MethodListByUserID
ListByUserID 获取用户的封面列表
internal/domain/port/repository.go:191
MethodListByUserID
ListByUserID 获取用户的所有商户列表
internal/domain/port/repository.go:284
MethodListByUserID
ListByUserID 获取用户的所有商户
internal/app/merchant_usecase.go:32
MethodListByUserID
ListByUserID 获取用户交易列表 (分页、筛选)
internal/adapter/repository/transaction_repo.go:38
MethodListByUserID
ListByUserID 获取用户的所有商户列表
internal/adapter/repository/merchant_repo.go:37
MethodListByUserID
ListByUserID 获取用户提币列表 (分页)
internal/adapter/repository/withdrawal_repo.go:44
MethodListByUserID
ListByUserID 获取用户充值列表 (分页)
internal/adapter/repository/deposit_repo.go:56
MethodListByUserID
ListByUserID 获取用户提现列表 (分页)
internal/adapter/repository/cny_withdrawal_repo.go:42
MethodListByUserID
ListByUserID 获取用户相关的转账列表
internal/adapter/repository/transfer_repo.go:42
MethodListByUserID
ListByUserID 获取用户闪兑列表
internal/adapter/repository/exchange_repo.go:37
MethodListByUserID
ListByUserID 获取用户创建的红包列表
internal/adapter/repository/red_packet_repo.go:43
MethodListByUserID
ListByUserID 获取用户的封面列表
internal/adapter/repository/red_packet_repo.go:133
MethodListByUserID
(_ context.Context, _ uint64, _ *port.TransactionFilter, _, _ int)
internal/adapter/handler/mock_test.go:273
MethodListByUserID
(_ context.Context, _ uint64, _, _ int)
internal/adapter/handler/mock_test.go:289
MethodListByUserID
(_ context.Context, _ uint64, _, _ int)
internal/adapter/handler/mock_test.go:312
MethodListByUserID
(_ context.Context, _ uint64, _ *int8, _, _ int)
internal/adapter/handler/mock_test.go:388
MethodListByUserID
(_ context.Context, _ uint64)
internal/adapter/handler/mock_test.go:429
MethodListByUserIDAndStatuses
(ctx context.Context, userID uint64, statuses []int8, offset, limit int)
internal/domain/service/mocks/mock_repos.go:554
MethodListByUserIDAndStatuses
ListByUserIDAndStatuses 获取用户指定多个状态的红包列表
internal/adapter/repository/red_packet_repo.go:60
MethodListByUserIDAndStatuses
(_ context.Context, _ uint64, _ []int8, _, _ int)
internal/adapter/handler/mock_test.go:391
MethodListDepositAddressesCreatedAfter
(_ context.Context, _ time.Time)
internal/infrastructure/tron/monitor_test.go:772
MethodListDepositAddressesCreatedAfter
(ctx context.Context, after time.Time)
internal/domain/service/mocks/mock_repos.go:138
MethodListDepositAddressesCreatedAfter
ListDepositAddressesCreatedAfter 获取指定时间之后创建的充值地址 (增量刷新用) 返回去重后的钱包列表
internal/adapter/repository/wallet_repo.go:133
MethodListDepositAddressesCreatedAfter
(_ context.Context, _ time.Time)
internal/adapter/handler/mock_test.go:262
MethodListExpired
(ctx context.Context)
internal/domain/service/mocks/mock_repos.go:562
MethodListExpired
ListExpired 获取已过期未处理的红包
internal/adapter/repository/red_packet_repo.go:75
MethodListExpired
(_ context.Context)
internal/adapter/handler/mock_test.go:394
MethodListInvestments
ListInvestments 获取投资列表 (分页, 支持 status 筛选)
internal/adapter/handler/admin_finance.go:54
MethodListPending
(ctx context.Context)
internal/domain/service/mocks/mock_repos.go:248
MethodListPending
ListPending 获取待确认的充值列表
internal/adapter/repository/deposit_repo.go:47
MethodListPending
(_ context.Context)
internal/adapter/handler/mock_test.go:286
FunctionLoggingMiddleware
LoggingMiddleware 记录所有请求日志
internal/adapter/telegram/middleware.go:53
FunctionLogin
()
web/src/pages/Login.tsx:17
MethodLogin
Login 管理员登录
internal/adapter/handler/admin_auth.go:38
FunctionMaintenanceMiddleware
MaintenanceMiddleware 维护模式开关
internal/adapter/telegram/middleware.go:78
MethodMarkAsSent
MarkAsSent 标记红包已发送到群聊
internal/app/redpacket_usecase.go:72
MethodMe
Me 获取当前管理员信息
internal/adapter/handler/admin_auth.go:77
FunctionMerchantReview
()
web/src/pages/MerchantReview.tsx:62
FunctionNew
New 根据配置创建 Zap Logger 实例
internal/infrastructure/logger/zap.go:11
FunctionNewRouter
NewRouter 创建路由器
internal/adapter/telegram/router.go:24
FunctionNewSessionService
NewSessionService 创建会话管理服务
pkg/telegram/session.go:26
FunctionNewSubAccountRepo
NewSubAccountRepo 创建备用账号 Repository
internal/adapter/repository/sub_account_repo.go:17
FunctionRateLimitMiddleware
RateLimitMiddleware 基于用户的频率限制
internal/adapter/telegram/middleware.go:95
FunctionRecoveryMiddleware
RecoveryMiddleware 捕获 panic,防止 Bot 崩溃
internal/adapter/telegram/middleware.go:31
FunctionRedPacketManagement
()
web/src/pages/RedPacketManagement.tsx:70
FunctionRegisterDepositWithdrawHandlers
RegisterDepositWithdrawHandlers 注册充值/提币模块到路由器 由 main.go 调用,将 Wallet 模块注册到路由器
internal/adapter/telegram/handler/wallet_callback.go:86
MethodReject
Reject 拒绝提币 (退回余额)
internal/adapter/handler/admin_withdrawal.go:131
MethodRejectMerchant
RejectMerchant 拒绝商户申请 (管理员调用)
internal/app/merchant_usecase.go:82
MethodResetAPIKey
ResetAPIKey 重置商户 API 密钥 (兼容旧接口)
internal/app/merchant_usecase.go:87
MethodResetPIN
ResetPIN 重置用户支付密码
internal/adapter/handler/admin_user.go:140
FunctionS
S 获取全局 SugaredLogger 实例
pkg/logger/logger.go:32
MethodSendDepositNotification
(_ context.Context, telegramID int64, currency, amount, txHash, newBalance string)
internal/infrastructure/tron/monitor_test.go:720
MethodSendDepositNotification
SendDepositNotification 发送充值到账通知 (由链上监控调用)
internal/adapter/telegram/handler/deposit.go:112
MethodSendDepositNotification
SendDepositNotification 发送充值到账通知
internal/adapter/notification/telegram_notifier.go:37
FunctionSendError
SendError 发送友好错误提示
pkg/telegram/message.go:200
FunctionSendMessageWithKeyboard
SendMessageWithKeyboard 发送带内联键盘的消息 (HTML 格式)
pkg/telegram/message.go:32
MethodSendPaymentRequest
(_ context.Context, _ int64, _, _, _ string, _ uint64)
internal/infrastructure/tron/monitor_test.go:732
MethodSendPaymentRequest
SendPaymentRequest 发送收款请求通知
internal/domain/port/notification.go:15
MethodSendPaymentRequest
SendPaymentRequest 发送收款请求通知
internal/adapter/notification/telegram_notifier.go:93
FunctionSendPhoto
SendPhoto 发送图片消息
pkg/telegram/message.go:158
FunctionSendPhotoBytes
SendPhotoBytes 发送图片消息 (字节流)
pkg/telegram/message.go:179
MethodSendSecurityAlert
(_ context.Context, _ int64, _, _ string)
internal/infrastructure/tron/monitor_test.go:734
← previousnext →1,101–1,200 of 2,200, ranked by callers