包含 webapp(Next.js 用户端)、webapp-back(Go 后端)、 antdesign(管理后台)、landingpage(营销落地页)、 数据库 SQL 和配置文件。
15 lines
727 B
Go
15 lines
727 B
Go
package lending
|
|
|
|
// Routing is now handled in main.go
|
|
// All lending routes are registered directly in main.go:
|
|
//
|
|
// GET /api/lending/position/:address - Get user lending position
|
|
// GET /api/lending/stats - Get lending market statistics
|
|
// GET /api/lending/markets - Get lending markets configuration
|
|
// POST /api/lending/supply - Supply USDC
|
|
// POST /api/lending/withdraw - Withdraw USDC
|
|
// POST /api/lending/supply-collateral - Supply collateral (YT tokens)
|
|
// POST /api/lending/withdraw-collateral - Withdraw collateral
|
|
// POST /api/lending/borrow - Borrow USDC
|
|
// POST /api/lending/repay - Repay USDC
|