mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
Enable full resource management via API and support data plane synchronization. - Add CRUD handlers for Providers, Models, and Keys using DTOs - Implement LogWriter service for asynchronous, batched audit logging - Update SyncService to snapshot full configuration state to Redis - Register new API routes and initialize background services - Add configuration options for logging performance tuning
11 lines
292 B
Go
11 lines
292 B
Go
package dto
|
|
|
|
// KeyDTO defines payload for key creation/update.
|
|
type KeyDTO struct {
|
|
ProviderID uint `json:"provider_id"`
|
|
KeySecret string `json:"key_secret"`
|
|
Balance float64 `json:"balance"`
|
|
Status string `json:"status"`
|
|
Weight int `json:"weight"`
|
|
}
|