MCPcopy Index your code
hub / github.com/dujiao-next/dujiao-next

github.com/dujiao-next/dujiao-next @v1.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.0 ↗ · + Follow
5,943 symbols 22,819 edges 585 files 2,893 documented · 49%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Dujiao-Next API

Dujiao-Next API is the backend service for the Dujiao-Next ecosystem. It provides public APIs, user/auth APIs, order and payment workflows, and admin APIs.

Tech Stack

  • Go
  • Gin
  • GORM
  • SQLite / PostgreSQL

What This Service Does

  • Serves REST APIs for user, order, and payment flows
  • Handles payment callbacks/webhooks
  • Supports product, fulfillment, and configuration management

Quick Start

go mod tidy
go run cmd/server/main.go

The default health check endpoint is:

  • GET /health

Online Documentation

  • https://dujiao-next.com

Star History

Star History Chart

Extension points exported contracts — how you extend this code

Provider (Interface)
Provider 是所有支付网关 adapter 的核心 interface。 [13 implementers]
internal/payment/provider/types.go
AuthzAuditLogRepository (Interface)
AuthzAuditLogRepository 权限审计日志数据访问接口 [10 implementers]
internal/repository/authz_audit_log_repository.go
MarkupReapplier (Interface)
MarkupReapplier 在连接定价配置(汇率/加价/取整)变更后,按新配置重算该连接已映射商品的本地售价。 由 ProductMappingService 实现,通过 setter 注入以避免与本服务的循环依赖。 [2 implementers]
internal/service/site_connection_service.go
Service (Interface)
Service 服务接口 [2 implementers]
internal/app/service.go
Adapter (Interface)
Adapter 上游站点适配器接口 [1 implementers]
internal/upstream/adapter.go
RateLimitKeyFunc (FuncType)
RateLimitKeyFunc 生成限流 key 的函数
internal/router/rate_limit.go
CallbackVerifier (Interface)
CallbackVerifier 可选能力:验证同步回调表单(alipay/epay/epusdt/bepusdt/tokenpay/okpay 实现)。 [6 implementers]
internal/payment/provider/types.go
AdminLoginLogRepository (Interface)
AdminLoginLogRepository 后台登录日志仓储 [25 implementers]
internal/repository/admin_login_log_repository.go

Core symbols most depended-on inside this repo

NewMoneyFromDecimal
called by 1240
internal/models/money.go
RespondError
called by 1081
internal/http/handlers/shared/error.go
Is
called by 776
internal/service/password_policy.go
Create
called by 666
internal/repository/post_repository.go
String
called by 490
internal/models/money.go
Success
called by 289
internal/http/response/response.go
GetByID
called by 225
internal/repository/post_repository.go
Warnw
called by 177
internal/logger/logger.go

Shape

Method 2,488
Function 2,450
Struct 933
Interface 60
TypeAlias 8
FuncType 4

Languages

Go100%

Modules by API surface

internal/repository/reseller_repository.go112 symbols
internal/repository/order_repository.go78 symbols
internal/repository/affiliate_repository.go64 symbols
internal/service/reseller_pricing_test.go62 symbols
internal/repository/card_secret_repository.go57 symbols
internal/http/handlers/public/public_price_test.go57 symbols
internal/service/notification_service.go50 symbols
internal/dto/reseller.go49 symbols
internal/service/payment_service.go47 symbols
internal/repository/dashboard_repository.go46 symbols
internal/repository/wallet_repository.go43 symbols
internal/http/handlers/public/public.go43 symbols

For agents

$ claude mcp add dujiao-next \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page