功能特性: - 用户端充值记录页面,从使用日志中分离 - 充值记录中的去开发票功能 - 管理员发票管理页面 - 发票申请、处理、邮件通知功能 - 侧边栏菜单更新 - UI优化和控制台清理 - Docker部署配置 - 生产环境安全配置
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package dto
|
|
|
|
type UpstreamDTO struct {
|
|
ID int `json:"id,omitempty"`
|
|
Name string `json:"name" binding:"required"`
|
|
BaseURL string `json:"base_url" binding:"required"`
|
|
Endpoint string `json:"endpoint"`
|
|
}
|
|
|
|
type UpstreamRequest struct {
|
|
ChannelIDs []int64 `json:"channel_ids"`
|
|
Upstreams []UpstreamDTO `json:"upstreams"`
|
|
Timeout int `json:"timeout"`
|
|
}
|
|
|
|
// TestResult 上游测试连通性结果
|
|
type TestResult struct {
|
|
Name string `json:"name"`
|
|
Status string `json:"status"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|
|
|
|
// DifferenceItem 差异项
|
|
// Current 为本地值,可能为 nil
|
|
// Upstreams 为各渠道的上游值,具体数值 / "same" / nil
|
|
|
|
type DifferenceItem struct {
|
|
Current interface{} `json:"current"`
|
|
Upstreams map[string]interface{} `json:"upstreams"`
|
|
Confidence map[string]bool `json:"confidence"`
|
|
}
|
|
|
|
type SyncableChannel struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
BaseURL string `json:"base_url"`
|
|
Status int `json:"status"`
|
|
} |