mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 10:16:15 +00:00
6bb47d4b00
- Add full admin REST API: auth, API keys, chains, chain tokens, wallets, orders, RPC nodes, settings, dashboard stats, notifications - Add JWT-based admin authentication and API key auth middleware - Add multi-chain listeners: BSC, ETH, Polygon, Plasma, EVM WebSocket - Add RPC node health check job with automatic failover - Add Telegram notification channel for order events - Add installer for first-run database initialization - Add new DB models: admin_user, api_key, chain, chain_token, rpc_node, settings, notification_channel - Add order statistics aggregation (daily/monthly/by-chain) - Serve built admin SPA from embedded www/ assets - Add comprehensive test coverage for all new features
16 lines
489 B
Go
16 lines
489 B
Go
package request
|
|
|
|
const (
|
|
OrderByFuncDesc = "DESC"
|
|
OrderByFuncAsc = "OrderByFuncASC"
|
|
)
|
|
|
|
var OrderByFuncList = []string{OrderByFuncDesc, OrderByFuncAsc}
|
|
|
|
type BaseRequest struct {
|
|
Page int `json:"page" example:"1"` // 页数
|
|
PageSize int `json:"page_size" example:"20"` // 每页条数
|
|
OrderField string `json:"order_field" example:"created_at"` // 排序字段
|
|
OrderFunc string `json:"order_func" enums:"DESC,ASC" example:"DESC"` // 排序方法
|
|
}
|